From 735cc3b24e0ef0f0507a72ae1fe2023c2f53a4b2 Mon Sep 17 00:00:00 2001 From: Reed Esau Date: Sat, 30 Jul 2016 18:56:58 -0600 Subject: [PATCH] Additional tips on formatting paragraphs --- README.markdown | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index abfdb7a..aa9e4c1 100644 --- a/README.markdown +++ b/README.markdown @@ -271,17 +271,23 @@ Note that you need not rely on Vim’s autoformat exclusively and can manually reformat paragraphs with standard Vim commands: * `gqip` or `gwip` - format current paragraph -* `vipJ` - unformat (i.e., join all lines with hard line breaks) in current paragraph +* `vapJgwip` - merge two paragraphs (current and next) and format * `ggVGgq` or `:g/^/norm gqq` - format all paragraphs in buffer -* `:%norm vipJ` - unformat all paragraphs in buffer Optionally, you can map these operations to underutilized keys in your `.vimrc`: ```vim nnoremap Q gwip +nnoremap Q vapJgwip ``` +Or you may wish to ‘unformat’, (i.e., remove hard line breaks) when using +soft line wrap. + +* `vipJ` - join all lines in current paragraph +* `:%norm vipJ` - unformat all paragraphs in buffer + ## Default textwidth You can configure the textwidth to be used in **HardPencil** mode when no