From: Stefan Huber Date: Thu, 11 Jun 2015 14:22:34 +0000 (+0200) Subject: vim: update X-Git-Url: https://git.sthu.org/?p=shutils.git;a=commitdiff_plain;h=f558e6cbacb2a9ebf2834987a2356d340a229f9a vim: update --- diff --git a/dotfiles/vim/.gvimrc b/dotfiles/vim/.gvimrc index a595464..61042d1 100644 --- a/dotfiles/vim/.gvimrc +++ b/dotfiles/vim/.gvimrc @@ -9,24 +9,13 @@ endif set lines=25 set columns=90 +au FileType tex set columns=110 + set cursorline set mousehide "set guioptions-=T - -function SetPresentationFont(mode) - if a:mode - set guifont=Liberation\ Mono\ for\ Powerline\ 12,Monospace\ Bold\ 12 - else - set guifont=Liberation\ Mono\ for\ Powerline\ 10,Monospace\ 8 - endif -endfunction - -:menu Presentation.On :call SetPresentationFont(1) -:menu Presentation.Off :call SetPresentationFont(0) - -"call SetPresentationFont(0) - +set guifont=DejaVu\ Sans\ Mono\ 10,Monospace\ 10 "" {{{ vimrc.local diff --git a/dotfiles/vim/.vimrc b/dotfiles/vim/.vimrc index 04ed529..dcd67bd 100644 --- a/dotfiles/vim/.vimrc +++ b/dotfiles/vim/.vimrc @@ -20,6 +20,7 @@ set hlsearch set cursorline set laststatus=2 +set scrolloff=4 set listchars=tab:»­,trail:·,eol:$ set virtualedit=block @@ -49,7 +50,7 @@ call pathogen#helptags() "Power saving tip: powertop-homepage -let &guicursor = &guicursor . ",a:blinkon0" +"let &guicursor = &guicursor . ",a:blinkon0" "According to vim help -- enable mouse in xterm... set mouse=a