From f558e6cbacb2a9ebf2834987a2356d340a229f9a Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 11 Jun 2015 16:22:34 +0200 Subject: [PATCH] vim: update --- dotfiles/vim/.gvimrc | 17 +++-------------- dotfiles/vim/.vimrc | 3 ++- 2 files changed, 5 insertions(+), 15 deletions(-) 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 -- 2.30.2