Toggle word wrap
:set nowrap
:set wrap
Block comment
- press
esc
(to leave editing or other mode) - hit
ctrl + v
(visual block mode) - use arrow keys to select relevant text
shift + i
(capital I)- insert text you want, e,g
#
- press
esc
esc
Search and replace
- Will replace all occurrences without confirmation
:%s/search_string/replace_string/g