diff options
author | xyz <gky44px1999@gmail.com> | 2022-10-22 15:46:27 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-10-22 15:46:27 -0700 |
commit | e6351a1ebc3214ea789a0b68ec5a68b140a09c0c (patch) | |
tree | 351eb69a4ecea0ef1b0d8e2409f79a90e54dd8d8 /home/xyz/.config/nvim/init.vim | |
parent | d5914aeedf43f1f3c0c206e55ca8848e0bb49a91 (diff) |
init.vim, I think it is better to uncomment windows specific codes
Diffstat (limited to 'home/xyz/.config/nvim/init.vim')
-rw-r--r-- | home/xyz/.config/nvim/init.vim | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index 008c30a8..c8bb4065 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -97,14 +97,14 @@ set fileencodings=ucs-bom,utf-8,utf-16,gbk,big5,gb18030,latin1 set encoding=utf-8 " some file on win10 display as unix but is dos -"if has('win32') -" set fileformats=dos -" " windows 10 bug, need this to change cursor back to vertical bar after leaving neovim -" " the number after ver seems no effects, maybe because neovim is exited -" " https://github.com/alacritty/alacritty/issues/2839#issuecomment-766421840 -" " use of ! after autocmd see youtube video above, not fully understood -" autocmd! VimLeave * set guicursor=a:ver25 -"endif +if has('win32') + set fileformats=dos + " windows 10 bug, need this to change cursor back to vertical bar after leaving neovim + " the number after ver seems no effects, maybe because neovim is exited + " https://github.com/alacritty/alacritty/issues/2839#issuecomment-766421840 + " use of ! after autocmd see youtube video above, not fully understood + autocmd! VimLeave * set guicursor=a:ver25 +endif " don't generate those three types of files set nobackup |