Permalink
Browse files

vim: don't mess with gui elements in fb

  • Loading branch information...
1 parent d0882f0 commit 0de3360b2004cc863f035206358c9d639d751715 @dearieme committed May 1, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 .vimrc
View
8 .vimrc
@@ -38,8 +38,10 @@ set novisualbell
set t_vb=
" Change cursor per mode
-let &t_SI = "\<Esc>]50;CursorShape=1\x7"
-let &t_EI = "\<Esc>]50;CursorShape=0\x7"
+if has("gui_running")
+ let &t_SI = "\<Esc>]50;CursorShape=1\x7"
+ let &t_EI = "\<Esc>]50;CursorShape=0\x7"
+endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Searching
@@ -54,14 +56,14 @@ map ' :set hls!<bar>set hls?<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set t_Co=256
-colorscheme desert256
set encoding=utf8
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
+ colorscheme desert256
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

0 comments on commit 0de3360

Please sign in to comment.