Re:NVD3 is back
by lloeki on Tuesday November 20, 2012 @03:28AM
(#4808208)
Please people, make things readable [0]:
[0]: Use what's best for you, but I pasted in vim, then 5gqq 8G=G gg>G
[ Parent
| on HN ]
Re:NVD3 is back
by iso-8859-1 on Tuesday November 20, 2012 @06:09AM
(#4808530)
where can I read how that Vim command works?
Re:NVD3 is back
by hahainternet on Tuesday November 20, 2012 @07:26AM
(#4808670)
The numerical prefix repeats commands in vim, so '5gqq' means '5 times, format line'. The default format will wrap the text to an acceptable level, and 5 lines encompasses the 3 text lines plus the whitespace. The command 'gqq' here is a single one, you can read more with ':help gqq'.
8G moves to line 8, and =G is a command combined with a movement. The = command by default will remove any indentation on these lines, and the 'G' movement means 'to the end of the file'. This will remove the indentation from the 2nd and 3rd lines/paragraphs and the signature.
gg means 'move to top' and >G is another action/movement. > indents lines, and G means 'to the end', so this indents every line by one.
Hope that helps.
Re:NVD3 is back
by iso-8859-1 on Monday November 26, 2012 @05:28PM
(#4834386)
Thanks