vimrc zshrc
This commit is contained in:
@@ -92,8 +92,9 @@ augroup foo
|
||||
" +c = autowrap in insert mode only in comments
|
||||
autocmd FileType * setlocal formatoptions-=t formatoptions+=qnjc
|
||||
autocmd FileType * setlocal textwidth=69
|
||||
" markdown paragraph wrap
|
||||
autocmd FileType * setlocal formatoptions+=tn
|
||||
" markdown: 2 space indent
|
||||
autocmd FileType markdown setlocal shiftwidth=2
|
||||
autocmd FileType markdown setlocal tabstop=2
|
||||
" python: pep8 says best textwidth is 80 chars but fuck pep8
|
||||
" but only gently. we'll go with 79
|
||||
autocmd FileType python setlocal textwidth=79
|
||||
@@ -101,7 +102,7 @@ augroup foo
|
||||
autocmd FileType xml setlocal formatoptions-=t
|
||||
" Erlang handle comments beginning with %% | %%% etc
|
||||
autocmd FileType erlang setlocal comments=:%%%%%,:%%%%,:%%%,:%%,:%
|
||||
autocmd FileType erlang setlocal textwidth=55
|
||||
"autocmd FileType erlang setlocal textwidth=55
|
||||
autocmd FileType erlang setlocal formatoptions-=t
|
||||
" handle numbered lists properly in markdown
|
||||
"autocmd FileType markdown setlocal formatoptions+=n
|
||||
|
||||
Reference in New Issue
Block a user