Archive for the ‘vim’ Category

Open a file in an existing gvim instance

Friday, October 24th, 2003

(David Fishburn)

@set vim_instance=GVIM
@rem Override it if necessary
if %2. NEQ . set vim_instance=%2
start gvim.exe --servername %vim_instance% --remote-silent %1

Indent without leaving insert mode

Friday, October 17th, 2003

Either of the following:

1. CTRL-T, and CTRL-D (:h i_CTRL-T to see some more interesting usage of those two keys.)
2. CTRL-O >>, and CTRL-O <<

‘gv’ reselects selections

Tuesday, October 14th, 2003

I definitely need to memorize this tip – always felt frustrated having to go back and do the whole selecting again!

(Bowie Bailey)
You can also use ‘gv’ to reselect the previously highlighted region.
This way you can do multiple operations on the same region without
having to manually re-select it each time.