From c19f359ba80926ca699d5da4d7b8c97f9a4f5c49 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Mon, 12 Aug 2019 11:47:35 +0300 Subject: [PATCH] Add vim swapfile support --- .config/nvim/backup/.keep | 0 .config/nvim/init.vim | 5 +++++ .config/nvim/swap/.keep | 0 .config/nvim/undodir/.keep | 0 4 files changed, 5 insertions(+) create mode 100644 .config/nvim/backup/.keep create mode 100644 .config/nvim/swap/.keep create mode 100644 .config/nvim/undodir/.keep diff --git a/.config/nvim/backup/.keep b/.config/nvim/backup/.keep new file mode 100644 index 0000000..e69de29 diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 17cd36b..a41c778 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,3 +1,8 @@ " show some context lines up/down of the cursor set scrolloff=3 set ignorecase +set cursorline + +" configure reasonable swap file +" https://begriffs.com/posts/2019-07-19-history-use-vim.html?hn=3#backups-and-undo +runtime swap.vim diff --git a/.config/nvim/swap/.keep b/.config/nvim/swap/.keep new file mode 100644 index 0000000..e69de29 diff --git a/.config/nvim/undodir/.keep b/.config/nvim/undodir/.keep new file mode 100644 index 0000000..e69de29