mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 23:06:38 -05:00
Fix <Leader>J comment + disable show whitespace and textwidth in mail
This commit is contained in:
parent
d25d0c4763
commit
925b6fd7ef
2 changed files with 5 additions and 4 deletions
|
@ -19,7 +19,7 @@ if !exists("g:disablelinebreaks")
|
||||||
let g:disablelinebreaks=1
|
let g:disablelinebreaks=1
|
||||||
endif
|
endif
|
||||||
if (g:disablelinebreaks == 1)
|
if (g:disablelinebreaks == 1)
|
||||||
autocmd VimEnter * set tw=0
|
autocmd VimEnter * set textwidth=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"enable omnicompletion for any filetype without that has syntax highlighting
|
"enable omnicompletion for any filetype without that has syntax highlighting
|
||||||
|
@ -59,5 +59,6 @@ endif
|
||||||
autocmd VimEnter * if &diff|wincmd H|endif
|
autocmd VimEnter * if &diff|wincmd H|endif
|
||||||
|
|
||||||
"disable the whitespace plugin for vimfiler
|
"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
|
||||||
"}}}
|
"}}}
|
||||||
|
|
|
@ -186,8 +186,8 @@
|
||||||
"
|
"
|
||||||
" (formatting)
|
" (formatting)
|
||||||
" <Backspace> | (V) -> deletes currently selected text
|
" <Backspace> | (V) -> deletes currently selected text
|
||||||
" <Leader>J | (N) -> split the line into lines of <=79 chars
|
" <Leader>J | (N) -> split document into lines of tw or 80
|
||||||
" <Leader>J | (V) -> split the selection into lines of <=79 chars
|
" <Leader>J | (V) -> split selection into lines of tw or 80
|
||||||
" <Leader>f | (N) -> format document and return to cursor
|
" <Leader>f | (N) -> format document and return to cursor
|
||||||
" <Leader>f | (V) -> format the selection and return to cursor
|
" <Leader>f | (V) -> format the selection and return to cursor
|
||||||
" <Leader>F | (N) -> format document using :Autoformat
|
" <Leader>F | (N) -> format document using :Autoformat
|
||||||
|
|
Loading…
Reference in a new issue