X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.vimrc;h=aa6fd4ee52cab82ae24126d4f129bfd2125ae63f;hb=ac5097db0a42a03653e905e89d0df0991e0d1b28;hp=a5314d40b1bd0d4d6504fe794bbcf9b52dfc68a2;hpb=d6f72e60db9648bcc7f9f1f009fa412b07efb6b3;p=dotfiles.git diff --git a/.vimrc b/.vimrc index a5314d4..aa6fd4e 100644 --- a/.vimrc +++ b/.vimrc @@ -215,6 +215,8 @@ if has("gui_running") set toolbar=icons,text " how to show the toolbar endif + set guicursor+=n:block " Block cursor in normal mode + set guicursor+=i:ver10 " Solid vertical bar in insert mode set guicursor+=a:blinkon0 " Stop cursor blinking " Make shift-insert work like in Xterm @@ -233,7 +235,8 @@ if has("gui_running") " ---------- else - if (&term =~ "linux") || ($BACKGROUND == 'DARK') || ($BACKGROUND == 'dark') + if (&term =~ "linux") || (&term =~ "cygwin") || (&term =~ "putty") + \ || ($BACKGROUND == 'DARK') || ($BACKGROUND == 'dark') \ || has("win32") " Background of the terminal is black or dark grey set background=dark @@ -772,6 +775,15 @@ if has("spell") endif endfunction autocmd BufReadPost * call SetupSpell() + + function! SaveSpell() + if expand('%') == expand('~/.vim/spell/en.ascii.add') + mkspell! -ascii % + else + mkspell! % + endif + endfunction + autocmd BufWritePost ~/.vim/spell/*.add call SaveSpell() endif