softwrap prose
This commit is contained in:
@@ -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 <c-r>=strftime("%Y-%m-%d")<cr>
|
||||
|
||||
Reference in New Issue
Block a user