split vimrc into vimrc and gvimrc

This commit is contained in:
David Majnemer 2008-12-23 17:34:12 -05:00
parent 717baa880f
commit b4efde19bf
2 changed files with 12 additions and 14 deletions

12
gvimrc Normal file
View file

@ -0,0 +1,12 @@
if has('autocmd')
autocmd GuiEnter * set t_vb= " Disable the visual bell
fi
" Get rid of the annoying UI
set guioptions-=t " Disable menu tear-offs
set guioptions-=T " Disable the toolbar
set guioptions-=m " Disable the menu
set guioptions-=R " Disable the (right) scrollbar
set guioptions-=r " Disable the (right) scrollbar
set guioptions-=l " Disable the (left) scrollbar
set guioptions-=L " Disable the (left) scrollbar

14
vimrc
View file

@ -44,9 +44,6 @@ set visualbell " Turn visual bell on
set t_vb= " Make the visual bell emit nothing
set showcmd " Show the current command
if has('autocmd')
autocmd GuiEnter * set t_vb= " Disable the visual bell in gvim
endif
" ---- Filetypes ----
if has('syntax')
syntax on
@ -160,17 +157,6 @@ if has('mouse')
set mouse=nvi
endif
" Get rid of the annoying UI
if has("gui")
set guioptions-=t " Disable menu tear-offs
set guioptions-=T " Disable the toolbar
set guioptions-=m " Disable the menu
set guioptions-=R " Disable the (right) scrollbar
set guioptions-=r " Disable the (right) scrollbar
set guioptions-=l " Disable the (left) scrollbar
set guioptions-=L " Disable the (left) scrollbar
endif
if has('autocmd')
" unhighlight search when idle
autocmd CursorHold * nohls | redraw