]> git.phdru.name Git - dotfiles.git/blobdiff - .vimrc
.vimrc: Change GUI cursor shape in different modes
[dotfiles.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 4bb96bc4ba1914ff8461dd3f50d67f58d5a8911d..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