-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim-notes.txt
More file actions
36 lines (27 loc) · 1.39 KB
/
Copy pathvim-notes.txt
File metadata and controls
36 lines (27 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ctrl+ ww - switch between nedrtree and opened file
ctrl+w,q - close split tab
ctrl+w,o - enlarge
ctrl+w,v - open vsplit
:b namehere,:bn,:bn number,:ls - commands to navigate buffers
Comment a block - Use ctrl-V to do a block selection and then hit I followed by //[ESC].
gd will take you to the local declaration.
gD will take you to the global declaration.
g* search for the word under the cursor (like *, but g* on 'rain' will find words like 'rainbow').
g# same as g* but in backward direction.
gg goes to the first line in the buffer (or provide a count before the command for a specific line).
G goes to the last line (or provide a count before the command for a specific line).
http://stackoverflow.com/questions/563616/vim-and-ctags-tips-and-tricks
problem with "not allowed there" might be addressed like that:
https://github.com/Valloric/YouCompleteMe/issues/303
problem with loosing buffer on delete after yank
http://stackoverflow.com/questions/3638542/any-way-to-delete-in-vim-without-overwriting-your-last-yank
"_dd
or - work with named registers: yank with "aY paste with "ap
YouCompleteMe - outputs all paths where c++ standard library includes are located
g++ -E -x c++ - -v < /dev/null
Switch between source/header
:e %<.cpp
reload files when edited outside
:checktime
ZZ, ZQ - exit
map <leader>x 0yy :!xdg-open <C-R>" command to open the line as a link in a browser