Fix <Leader>J comment + disable show whitespace and textwidth in mail

This commit is contained in:
Kevin MacMartin 2014-12-10 23:26:38 -05:00
parent d25d0c4763
commit 925b6fd7ef
2 changed files with 5 additions and 4 deletions

View file

@ -19,7 +19,7 @@ if !exists("g:disablelinebreaks")
let g:disablelinebreaks=1
endif
if (g:disablelinebreaks == 1)
autocmd VimEnter * set tw=0
autocmd VimEnter * set textwidth=0
endif
"enable omnicompletion for any filetype without that has syntax highlighting
@ -59,5 +59,6 @@ endif
autocmd VimEnter * if &diff|wincmd H|endif
"disable the whitespace plugin for vimfiler
autocmd BufEnter,FileType vimfiler hi ExtraWhitespace ctermbg=NONE guibg=NONE
autocmd BufEnter,FileType vimfiler,mail hi ExtraWhitespace ctermbg=NONE guibg=NONE
autocmd BufEnter,FileType mail set textwidth=0
"}}}

View file

@ -186,8 +186,8 @@
"
" (formatting)
" <Backspace> | (V) -> deletes currently selected text
" <Leader>J | (N) -> split the line into lines of <=79 chars
" <Leader>J | (V) -> split the selection into lines of <=79 chars
" <Leader>J | (N) -> split document into lines of tw or 80
" <Leader>J | (V) -> split selection into lines of tw or 80
" <Leader>f | (N) -> format document and return to cursor
" <Leader>f | (V) -> format the selection and return to cursor
" <Leader>F | (N) -> format document using :Autoformat