mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 23:06:38 -05:00
<Leader>J only formats the current line in normal mode (rather than the whole
document)
This commit is contained in:
parent
9306287af9
commit
57f3fd3a3b
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@
|
||||||
vnoremap <Backspace> "_x
|
vnoremap <Backspace> "_x
|
||||||
|
|
||||||
"formatting options to apply to the whole document
|
"formatting options to apply to the whole document
|
||||||
nnoremap <silent><expr> <Leader>J ':set tw=79<CR>gggqG:set tw=0<CR>:echo "Document text has been formatted to a width of 79 characters"<CR>'
|
nnoremap <silent><expr> <Leader>J ':set tw=79<CR>Vgq:set tw=0<CR>:echo "Document text has been formatted to a width of 79 characters"<CR>'
|
||||||
vnoremap <silent><expr> <Leader>J '<Esc>:set tw=79<CR>gvgq:set tw=0<CR>:echo "Selected text has been formatted to a width of 79 characters"<CR>'
|
vnoremap <silent><expr> <Leader>J '<Esc>:set tw=79<CR>gvgq:set tw=0<CR>:echo "Selected text has been formatted to a width of 79 characters"<CR>'
|
||||||
nnoremap <Leader>f mzgg=G`z<CR>:echo "The document has been formatted"<CR>
|
nnoremap <Leader>f mzgg=G`z<CR>:echo "The document has been formatted"<CR>
|
||||||
vnoremap <Leader>f mz=`z<CR>:echo "The selection has been formatted"<CR>
|
vnoremap <Leader>f mz=`z<CR>:echo "The selection has been formatted"<CR>
|
||||||
|
|
Loading…
Reference in a new issue