sudo apt-get install vim i dunno what ubuntu ships with, but there's sommat up with it.
set nocompatible
set autoindent
set smartindent
set tabstop=3
set shiftwidth=3
set showmatch
set vb t_vb=
set ruler
set incsearch
set virtualedit=all
set ruler
" Required for vim-latex
filetype plugin on
" for python
set foldmethod=marker
" for python:
set commentstring=\#\%s
" default fold level.
set foldlevel=5
syntax on " lovely. Use %stopzone to force latex stopzone
" Required for vim-latex
filetype plugin on
" grep will sometimes skip displaying the filename if you
" search in a single file. This will confuse latex-suite.
" Set your grep to always generate a filename.
set grepprg=grep\ -nH\ $*
" Optional. Empty .tex files are plaintex, not tex, resulting
" in vim-latex not being loaded. This changes the default:
let g:tex_flavor='latex'
set foldcolumn=4 " View the code folding column on lhs.
set tw=60 " 78 is the default but with 80 char term and
" some columns lost, it's a bit small. Experience suggests
" 60 is pleasant to read.
set nowrap " turn line wrapping off
set expandtab " tabs -> spaces
set tabstop=3 " 3 spaces in a tab, please.
set spell " Joy! in-line spelling.
" See vimdoc.sourceforge.net/htmldoc/spell.html
" setlocal spell spelllang=en_uk
" there is no uk
"
" no line feed unless ENTER pressed.
" This stops lines being broken when too long.
set formatoptions=l
set lbr
" I hate the latex key mappings. Turn them off:
let Imap_FreezeImap=1
" automatically save and restore folds
au BufWinLeave * mkview
au BufWinEnter * silent loadview
" Increase the maximum number of tabbed files displayable from ten.
set tabpagemax=40
No comments:
Post a Comment