-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimtips.txt
More file actions
19 lines (19 loc) · 819 Bytes
/
vimtips.txt
File metadata and controls
19 lines (19 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- add a new tip to ~/.vim/vimtips.txt (<C-e><BS>)
- <Leader>b or :Redir to browse output of a command
- try something different
- do something new
- use i_<C-t> and i_<C-d> for insert mode indentation
- macOS: use Command-Shift-/ for menu navigation
- use <C-m> for <CR>
- use <C-h> for <BS>
- use <C-c> for <Esc> (without expanding abbreviations)
- practice using i_C-[, i_C-o, and i_C-c
- use scratch to quickly record notes to be moved elsewhere later
- use taskstack for queuing up todo items even if you're not actively doing them now
- sit up straight
- replace only visual selection with s/\%Vregex\%V/foo/g
- `<C-s>b` to wrap previous `<word>` in backticks and angle brackets
- hope for the best
- drink some water
- Use `autocmd BufWrite <buffer> ...` as a one-time hook in a file editing function
# vim:spell