Browse Source

vimrc tweaks

git-svn-id: file:///usr/local/svn/util/trunk@8 29942e26-f7dc-dc11-b955-0002b3153201
master
leto 17 years ago
parent
commit
c9120087f4
  1. 7
      config/.vimrc

7
config/.vimrc

@ -147,8 +147,7 @@ function! TextMode() " Stolen from David Hand
endfunction
function! PerlMode() " Stolen from David Hand
set shiftwidth=4 " sw: a healthy tab stop
set textwidth=72 " tw: wrap at 72 characters
set textwidth=80
set autoindent " ai: indent to match previous line
set cindent " cin: Use C-indenting
set cinkeys=0{,0},!^F,o,O,e " cink: Perl-friendly reindent keys
@ -164,10 +163,8 @@ function! PerlMode() " Stolen from David Hand
endfunction
function! LatexMode()
set shiftwidth=4 " sw: a healthy tab stop
set textwidth=80 " tw: wrap at 72 characters
set textwidth=80
set comments=n:% " com: latex comments
set formatoptions=crql " fo: word wrap, format comments
set nosmartindent " nosi: Smart indent useless when C-indent is on
set showmatch " show matches on parens, bracketc, etc.
endfunction

Loading…
Cancel
Save