Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
|
|
development:vim [2020/03/19 13:06] kalenpw removed |
— (current) |
====== Vim ====== | |
| |
---- | |
===== enter text at end of multiple lines ===== | |
- ''<c-V>'' - Enter Visual Block mode | |
- Use ''j''/''k'' to select the lines | |
- ''$'' - Move cursor to last character | |
- ''A'' - Enter insert mode after last character | |
- Insert desired text | |
- ''<Esc>'' Exit insert mode and finish block append | |
| |
---- | |
===== Hotkeys ===== | |
* ''x'' - delete under cursor | |
* ''viB'' - select curly brace block | |
* ''vib'' - select paren block | |
* ''vi''' - select text within single quote | |
* ''vi"'' - select text within double quote | |
* ''c'' - delete selected and go to insert mode | |
* ''ggVG'' - select entire file | |
* ''cW'' - delete from cursor to end of word | |
* ''r<char>'' - replace under cursor with ''<char>'' | |
* ''f<char>'' - go forward to next instance of ''<char>'' in line '';'' to repeat | |
* ''F<char>'' - go backward to previous instance of ''<char>'' in line '';'' to repeat | |
| |
---- | |
===== Search ===== | |
''$'' needs escaped to be ''\$'' as ''$'' represents end of line | |