Filetype specific formatting & helpdoc

This commit is contained in:
Sonny Bakker 2017-11-03 20:42:22 +01:00
parent 7ca47f91c2
commit 3312476bb3
4 changed files with 5 additions and 15 deletions

View file

@ -20,19 +20,9 @@ autocmd BufWritePre * :%s/\s\+$//e
au BufWinLeave *.py mkview au BufWinLeave *.py mkview
au BufWinEnter *.py silent loadview au BufWinEnter *.py silent loadview
au BufNewFile,BufRead *.py " file specific formatting
\ set tabstop=4 | autocmd Filetype python setlocal tabstop=4 softtabstop=4 shiftwidth=4 expandtab autoindent fileformat=unix
\ set softtabstop=4 | autocmd Filetype css,html,htmldjango,javascript setlocal tabstop=2 softtabstop=2 shiftwidth=2
\ 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
" fold methods based on indents " fold methods based on indents
" zo to open folds, zc to close " zo to open folds, zc to close

2
vim/doc/tags Normal file
View file

@ -0,0 +1,2 @@
myhelp myhelp.txt /*myhelp*
myhelp.txt myhelp.txt /*myhelp.txt*

View file

@ -1,2 +0,0 @@
myhelp doc/myhelp.txt /*myhelp*
myhelp.txt doc/myhelp.txt /*myhelp.txt*