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
" ----------
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
" https://vim.fandom.com/wiki/Change_cursor_shape_in_different_modes
let &t_EI.=WrapForScreenTmux("\e[2 q") "EI = NORMAL mode (ELSE)
let &t_SI.=WrapForScreenTmux("\e[6 q") "SI = INSERT mode
- let &t_SR.=WrapForScreenTmux("\e[4 q") "SR = REPLACE mode
+ if v:version >= 800
+ let &t_SR.=WrapForScreenTmux("\e[4 q") "SR = REPLACE mode
+ endif
"Cursor settings:
" 1 -> blinking block
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