Skip to content

Instantly share code, notes, and snippets.

@zunda
Created September 4, 2009 01:31
Show Gist options
  • Save zunda/180675 to your computer and use it in GitHub Desktop.
Save zunda/180675 to your computer and use it in GitHub Desktop.
set formatoptions=tmvM
set autoindent
set shiftwidth=2
set tabstop=2
set nojoinspaces
set noexpandtab
set ambiwidth=double
set fileencodings=utf-8,euc-jisx0213,ucs-bom,default,latin1
set backspace=indent,eol,start
map Q gq
if has("autocmd")
augroup itsalltext
au!
au BufReadPre,FileReadPre */itsalltext/* set textwidth=65
au BufReadPre,FileReadPre */itsalltext/* set tabstop=2
au BufReadPre,FileReadPre */itsalltext/* set shiftwidth=2
au BufReadPre,FileReadPre */itsalltext/* set expandtab
au BufReadPre,FileReadPre */itsalltext/* set fileencoding=utf-8
au BufReadPre,FileReadPre */itsalltext/* set fileencodings=utf-8
augroup END
augroup w3m
au!
au BufReadPre,FileReadPre */.w3m/* set textwidth=65
au BufReadPre,FileReadPre */.w3m/* set tabstop=2
au BufReadPre,FileReadPre */.w3m/* set shiftwidth=2
au BufReadPre,FileReadPre */.w3m/* set expandtab
augroup END
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment