ag pattern
ag -G 'h$' -w pattern
ag -G '\.(cc|h)$' pattern
Step out of function
finish
cgdb - a gdb with syntax highlights
- esc and i: switch between windows
- Resize window: +/- (try using shift)
- can use reverse-i-search
highlight multilines
:highlight currawong ctermbg=darkred guibg=darkred
:match currawong /\%12l\|\%34l\|\%5l/
:match currawong /\v.*(%'a|%'b|%'c|%'d).*/
highlight multi-words
:match Search /\<GetMetadata\>\|\<BuildEnum\>\|\<FindFileByName\>/
tip: use ctrl-R then / to paste current search pattern
Go to next/pre diff
]c
[c
Turn off read-only
:set ro!
To avoid whitespace comparison
:set diffopt+=iwhite
set color scheme in .vimrc
:
if &diff
colorscheme elflord