Vim
Deprecated: ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead in /project/www/devpit.org/mediawiki-1.23.8/includes/cache/MessageCache.php on line 731
Deprecated: ord(): Providing a string that is not one byte long is deprecated. Use ord($str[0]) instead in /project/www/devpit.org/mediawiki-1.23.8/includes/cache/MessageCache.php on line 739
Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /project/www/devpit.org/mediawiki-1.23.8/includes/parser/Preprocessor_DOM.php on line 754
Deprecated: Constant E_STRICT is deprecated since 8.4, the error level was removed in /project/www/devpit.org/mediawiki-1.23.8/includes/GlobalFunctions.php on line 2409
From Devpit
Contents
Formatting Text
Formatting between marks
If you have two marks, say a and b, then to format the code between the two marks do:
:'a,'b!fmt
To add arguments such as column width do the following:
:'a,'b!fmt -40
Formatting by paragraph
Vim delineates paragraphs based upon empty lines e.g.
This is paragraph number one. This is paragraph number two. Notice the space between them.
To auto format a paragraph place the cursor on a line in the paragraph and type the following:
gqap