CTRL+Shift+^
Edit the alternate file. Mostly the alternate file is the previously edited file. This is a quick way to toggle between two files.
It works even after a :bd (unload buffer)
Have you ever tried Visual-Block copy/paste?
'a','','c'
'a','','c'
b
b
1. Ctrl+V (start visual block selection)
2. y
3. p
'a','b','c'
'a','b','c'
Multi-line (block) copy/paste!
s/WORD
Erase WORD in the current line.
Substitute can be used as eraser and you can type only the first delimiter, it is enough!
#vim#trick#vimpower#vimly
:g/PATTERN/m$ [move]
:g/PATTERN/t$ [copy]
Move "m" or Copy "t" each occurrences of "PATTERN" at the End "$" of the current file.
#vimtip#vimtrick#vimeditor#vimly
Copy every email occurrence in current file to register.
:%s/[^ ]\+@[^ ]\+/\=setreg('A',submatch(0) . "\n")/n
Upper case register name append values, so remember to clear it. Yeah, I know.. email regex is weird but you get the point! ๐
#vimtrick#vimtip#vimly