Toggle word wrap
:set nowrap
:set wrapBlock 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
escesc
Search and replace
- Will replace all occurrences without confirmation
:%s/search_string/replace_string/g