dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit b8d909bed0f1bcc74b3ec56a7fc17aafb99eadcf
parent 2fa23454911ad1b304bc38e5916498f674adf4a5
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 13 Feb 2013 11:07:54 -0800

Only map menubar toggling if gui_running.

Diffstat:
M.vim/.vimrc | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.vim/.vimrc b/.vim/.vimrc @@ -57,15 +57,15 @@ if has("autocmd") au BufNewFile,BufRead *.scala set filetype=scala endif -" Menubar toggling -:let g:toggleMenu = 0 -map <silent> <S-F1> :if g:toggleMenu == 1<CR>:set guioptions-=m<CR>:let g:toggleMenu = 0<CR>:else<CR>:set guioptions+=m<CR>:let g:toggleMenu = 1<CR>:endif<CR> - " Mouse/UI set mouse=a " Enable mouse in all modes if has("gui_running") + set lines=60 columns=120 set showtabline=1 " Show tabs only if > 1 open set guioptions-=T " Hide toolbar set guioptions-=m " Hide menu bar - set lines=60 columns=120 + + " Menubar toggling + :let g:toggleMenu = 0 + map <silent> <S-F1> :if g:toggleMenu == 1<CR>:set guioptions-=m<CR>:let g:toggleMenu = 0<CR>:else<CR>:set guioptions+=m<CR>:let g:toggleMenu = 1<CR>:endif<CR> endif