]> git.phdru.name Git - dotfiles.git/blobdiff - .vimrc
.mc/menu: View (Open)Docs with `libreoffice --cat`
[dotfiles.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index a5314d40b1bd0d4d6504fe794bbcf9b52dfc68a2..aa6fd4ee52cab82ae24126d4f129bfd2125ae63f 100644 (file)
--- 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