diff --git a/vim/.config/vim/vimrc b/vim/.config/vim/vimrc index 4e02712..95f32d0 100644 --- a/vim/.config/vim/vimrc +++ b/vim/.config/vim/vimrc @@ -21,7 +21,7 @@ set showbreak=↪\ augroup filetype_wrapping autocmd! " Enable soft wrap for prose - autocmd FileType markdown,text,gitcommit setlocal wrap linebreak breakindent + autocmd FileType markdown,text,gitcommit setlocal wrap linebreak breakindent textwidth=0 " Maintain no wrap for code and structured data autocmd FileType go,python,sh,yaml,json setlocal nowrap augroup END @@ -63,7 +63,7 @@ filetype indent on set ofu=syntaxcomplete#Complete# " au FileType python setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 -au FileType markdown setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 wrap +au FileType markdown setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 wrap textwidth=0 " typing idate inserts the current date iab idate =strftime("%Y-%m-%d")