Filetype specific formatting & helpdoc
This commit is contained in:
parent
7ca47f91c2
commit
3312476bb3
4 changed files with 5 additions and 15 deletions
16
vim/.vimrc
16
vim/.vimrc
|
|
@ -20,19 +20,9 @@ autocmd BufWritePre * :%s/\s\+$//e
|
|||
au BufWinLeave *.py mkview
|
||||
au BufWinEnter *.py silent loadview
|
||||
|
||||
au BufNewFile,BufRead *.py
|
||||
\ set tabstop=4 |
|
||||
\ set softtabstop=4 |
|
||||
\ set shiftwidth=4 |
|
||||
\ set textwidth=79 |
|
||||
\ set expandtab |
|
||||
\ set autoindent |
|
||||
\ set fileformat=unix
|
||||
|
||||
au BufNewFile,BufRead *.js, *.html, *.css
|
||||
\ set tabstop=2 |
|
||||
\ set softtabstop=2 |
|
||||
\ set shiftwidth=2
|
||||
" file specific formatting
|
||||
autocmd Filetype python setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
|
||||
autocmd Filetype css,html,htmldjango,javascript setlocal tabstop=2 softtabstop=2 shiftwidth=2
|
||||
|
||||
" fold methods based on indents
|
||||
" zo to open folds, zc to close
|
||||
|
|
|
|||
2
vim/doc/tags
Normal file
2
vim/doc/tags
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
myhelp myhelp.txt /*myhelp*
|
||||
myhelp.txt myhelp.txt /*myhelp.txt*
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
myhelp doc/myhelp.txt /*myhelp*
|
||||
myhelp.txt doc/myhelp.txt /*myhelp.txt*
|
||||
Loading…
Add table
Add a link
Reference in a new issue