Nvi

The title of this page should be nvi.

Ex command set: for preferences/settings
To set an option during the use of vi, use set . To unset an option you have to use set no, there is no separate command for unsetting an option. Some options have an abreviated name, but if you're using an option a lot you probably want it switched on the whole time. Add it to your .exrc file (the file is not called .virc as would be more logical).
 * :set 
 * :set no
 * :set showmode &mdash; Show insert mode, change mode, etc.
 * :set ruler &mdash; Show current line, current column.
 * :set list &mdash; Show all control characters. ^J (newline) will be shown as $ at end of lines. ^I (tab character) will be shown as ^I. (list=debug program listings?)

The ones I always want switched on:
 * :set showmode
 * :set ruler

The ones I use from time to time:
 * :set list
 * :set number

Ex commands command s (substitute): search and replace

 * 1,$s/regexp/replacement/g
 * %s/regexp/replacement/g

Ignore case when searching

 * http://vim.wikia.com/wiki/Searching#Case_sensitivity
 * set ignorecase

Make search results appear in the middle of the screen

 * http://vim.wikia.com/wiki/Make_search_results_appear_in_the_middle_of_the_screen
 * zz vi command to scroll to get the current line at the centre of the screen
 * set scrolloff=999 &mdash; Set scroll offset option to 999

Highlight all search pattern matches

 * http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches
 * set hlsearch

Disable wrapping search past bottom

 * Google
 * disable "search hit bottom continuing at top"
 * http://vim.1045645.n5.nabble.com/beep-when-quot-search-hit-BOTTOM-continuing-at-TOP-quot-td1187580.html
 * Zie voor korte uitleg de documentatie :help 'wrapscan'
 * set nowrapscan &mdash; Unset search wrapping past the end of the file (i.e. the top/bottom of the file)

Disable highlighting matching parentheses, square and curly brackets

 * Overview of alle brackets
 * square brackets [ ] HIGHLIGHTED BY Vim
 * parentheses HIGHLIGHTED BY Vim
 * braces or curly brackets { } HIGHLIGHTED BY Vim
 * chevrons ⟨ ⟩
 * to switch of highlighting of matching partheses, square brackets and braces:
 * :NoMatchParen
 * :DoMatchParen
 * http://vim.1045645.n5.nabble.com/how-to-disable-the-highlighting-of-parenthesis-matching-td1172446.html