- 1. COLON
- 1.1. show line numbers
- 2. Find and replace
- 2.1. replace something
- 2.2. search and delete
- 3. Verb Modifier Objects
- 3.1. delete word
- 3.2. delete word and insert
- 3.3. change the current sentence
- 3.4. change all words inside bracket
- 3.5. delete line
- 4. Visual Block Mode
- 4.1. highlight and delete
- 5. Preset
- 5.1. Copy to clipboard
the way that you do that is this:
":" + set number
use: todolist.jsx
https://stackoverflow.com/questions/1048639/unable-to-replace-a-space-with-a-new-line-in-vim/1048646
:g/George Bush/d
:g/^[0-2][0-3]:[0-5][0-9]$/d
'dw'
'diw' deletes a word that your cursor is on.
S
or
'cis'
'ci['
'dd'
from normal mode
'o'
'Shift + V' , use arrow keys , 'd'
https://stackoverflow.com/questions/9166328/how-to-copy-selected-lines-to-clipboard-in-vim
if has('clipboard')
if has('unnamedplus') " When possible use + register for copy-paste
set clipboard=unnamed,unnamedplus
else " On mac and Windows, use * register for copy-paste
set clipboard=unnamed
endif
endif