vim: update
authorStefan Huber <shuber@sthu.org>
Thu, 11 Jun 2015 14:22:34 +0000 (16:22 +0200)
committerStefan Huber <shuber@sthu.org>
Thu, 11 Jun 2015 14:22:34 +0000 (16:22 +0200)
dotfiles/vim/.gvimrc
dotfiles/vim/.vimrc

index a595464deec3f8c6341533b1c6c59d59ae786a88..61042d13a1a1d5512189c7077f38f956c016d851 100644 (file)
@@ -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)<CR>
-:menu Presentation.Off :call SetPresentationFont(0)<CR>
-
-"call SetPresentationFont(0)
-
+set guifont=DejaVu\ Sans\ Mono\ 10,Monospace\ 10
 
 
 "" {{{ vimrc.local
index 04ed529a0980814f228ef213cf97e93928e82586..dcd67bdb37d591fc736abacb60976206254cfcd6 100644 (file)
@@ -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