
vim
By: a guest on
Aug 18th, 2012 | syntax:
None | size: 3.33 KB | hits: 10 | expires: Never
set number
set noexpandtab
set nocompatible
set autoindent
set ruler
set showcmd
set list
set listchars=tab:>-,trail:-,eol:$
set mouse=a
set shiftwidth=4
set tabstop=4
set textwidth=79
set cc=+1
autocmd BufRead *\.txt map j gj
autocmd BufRead *\.txt map k gk
autocmd BufRead *\.txt map $ g$
autocmd BufRead *\.txt map 0 g0
autocmd BufRead *\.txt set nonu
autocmd BufRead *\.txt set wrap
autocmd BufRead *\.txt set linebreak
autocmd BufRead *\.txt set nolist
"autocmd BufRead *\.tex map j gj
"autocmd BufRead *\.tex map k gk
"autocmd BufRead *\.tex map $ g$
"autocmd BufRead *\.tex map 0 g0
"autocmd BufRead *\.tex set nonu
"autocmd BufRead *\.tex set wrap
"autocmd BufRead *\.tex set linebreak
"autocmd BufRead *\.tex set nolist
autocmd BufRead *\.py set softtabstop=4
autocmd BufRead *\.py set expandtab
autocmd BufRead *\.py set autoindent
autocmd BufRead *\.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
autocmd BufRead *\.pl set tabstop=2
autocmd BufRead *\.pl set softtabstop=2
autocmd BufRead *\.pl set expandtab
cmap w!! %!sudo tee > /dev/null %