vim
toc
copy contents to/from files
to copy the contents into a file
:r <filename>
or
:"qY # yank out of first file
:"qP # put into second file
or read range of lines
:r! sed -n <n>,<m>p /path/to/file.md
to copy the contents to a new file
:<n>,<m> w <filename>
where <n>
and <m>
are numbers or symbols that designate range of lines
text wrap
(wrap to column) wrap current line
gqq
wrap entire file
gqG
wrap paragraph using visual selection
V}gq
also use visual or visual block with gq
spell
ref_1 check spelling
Spell
move to word
]s [s
and see results
z=
turn off highlighting
set nospell
buffers
- buffer faq
- using vanilla vim answer
- buffers over tabs answer
- open buffer
:e <filename> :new
- view buffers
:ls
- switch buffers
:buffer <num>
ref
- :1: https://www.linux.com/learn/using-spell-checking-vim
- :2: http://vim.wikia.com/wiki/Vim_buffer_FAQ
- :3: https://stackoverflow.com/questions/16082991/vim-switching-between-files-rapidly-using-vanilla-vim-no-plugins
- :4: https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs