vimrc zshrc

This commit is contained in:
2026-09-20 17:54:17 -07:00
parent b94010763d
commit 2077332b17
3 changed files with 24 additions and 251 deletions
+4 -3
View File
@@ -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