diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-07-12 17:59:34 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-07-13 00:14:59 -0700 |
commit | de41085d3dfab0f3fc1a2ee2b96a6bed7c40192d (patch) | |
tree | 13ec504c6eda1dad49de28e908b839b702c6246a /home | |
parent | 0bcc959bb03f433ff2a84741e33a8f6a91a1ecb0 (diff) |
nvim enable swapfile, use defualt; set XDG_STATE_HOME for it to use see nvim `:h directory`
Diffstat (limited to 'home')
-rw-r--r-- | home/xyz/.config/nvim/init.vim | 8 | ||||
-rw-r--r-- | home/xyz/.profile | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index 2d1f3a98..25b84504 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 diff --git a/home/xyz/.profile b/home/xyz/.profile index 18b0d9fb..3a31b363 100644 --- a/home/xyz/.profile +++ b/home/xyz/.profile @@ -3,6 +3,7 @@ export XDG_CONFIG_HOME="$HOME/.config/" export XDG_CACHE_HOME="$HOME/.cache/" export XDG_DATA_HOME="$HOME/.local/share/" +export XDG_STATE_HOME="$HOME/.local/state/" . "$XDG_CONFIG_HOME/user-dirs.dirs" export XDG_DESKTOP_DIR |