Vim Notes
Keybinds/Commands outside normal use that are easy to forget!
Auto complete for file linking
Ctrl-x Ctrl-f
Surround visual selection (with quotes, etc)
Shift-s <char>
Surround word (with quotes, etc)
ysiw
Delete surrounding quotes
ds"
Cterm colours
https://github.com/guns/xterm-color-table.vim
Keybinds
:map
:nmap
:imap
:vmap
Lag fix: Disable syntax (huge files)
:syntax off
Write command output into buffer
:r !figlet hello
Normal commands on current line
Executes the ‘q’ macro by the length-of-the-current-line times.
:exe "norm " . col('$') . "@q"
Normal command on every line
Trim off the line after 4 characters for every line.
:%norm 4ld$
Useful variables
:set commentstring
:set filetype