mirror of
https://github.com/preservim/vim-pencil.git
synced 2025-11-12 11:53:47 -05:00
added gwip command
This commit is contained in:
@@ -152,7 +152,7 @@ with autoformat disabled.
|
|||||||
Note that you need not rely on autoformat exclusively and can manually
|
Note that you need not rely on autoformat exclusively and can manually
|
||||||
reformat paragraphs with standard Vim commands:
|
reformat paragraphs with standard Vim commands:
|
||||||
|
|
||||||
* `gqip` - format current paragraph
|
* `gqip` or `gwip` - format current paragraph
|
||||||
* `vipJ` - unformat current paragraph
|
* `vipJ` - unformat current paragraph
|
||||||
* `ggVGgq` - format all paragraphs in buffer
|
* `ggVGgq` - format all paragraphs in buffer
|
||||||
* `:%norm vipJ` - unformat all paragraphs in buffer
|
* `:%norm vipJ` - unformat all paragraphs in buffer
|
||||||
@@ -161,7 +161,7 @@ Optionally, you can map these sequences to underutilized keys in your
|
|||||||
`.vimrc`:
|
`.vimrc`:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
nnoremap <silent> Q gqip
|
nnoremap <silent> Q gwip
|
||||||
nnoremap <silent> K vipJ
|
nnoremap <silent> K vipJ
|
||||||
nnoremap <silent> <leader>Q ggVGgq
|
nnoremap <silent> <leader>Q ggVGgq
|
||||||
nnoremap <silent> <leader>K :%norm vipJ<cr>
|
nnoremap <silent> <leader>K :%norm vipJ<cr>
|
||||||
|
|||||||
Reference in New Issue
Block a user