From 90080c903084b263c3f493027eed74b50248a8b0 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 12 Jul 2023 17:59:34 -0700 Subject: nvim enable swapfile, use defualt; set XDG_STATE_HOME for it to use see nvim `:h directory` --- home/xyz/.config/nvim/init.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'home/xyz/.config/nvim/init.vim') diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index 8c1f06f3..f16c7fd3 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -109,10 +109,10 @@ if has('win32') autocmd! VimLeave * set guicursor=a:ver25 endif -" don't generate those three types of files -set nobackup -set noswapfile -set noundofile +" if don't want to generate swap file +"set noswapfile +" nvim backup file defualt off, see `:h nobackup` `:set backup?` +" nvim undo file default off, see `:h noundofile` `:set undofile?` " gg=G work for .xml files now,:h matchit-activate " https://stackoverflow.com/questions/21408222/vim-indent-xml-file/28365920#28365920 -- cgit v1.2.3-70-g09d2