AnalogClock






Sunday, November 25, 2018

vim you should know

If you use vim you should try these:
Use the file browser for local file management.
:browse e .
Equivalent to command line:
vim .
Use the file browser for remote file management.
:browse e scp://hostname/
Equivalent to command line:
vim scp://hostname/
Pipe to 'view -' instead of 'less' when you want syntax highlighting.
Side by side diff with editing
:e file_v1
:vert diffsplit file_v2
Equivalent to command line:
vimdiff -v file_v1 file_v2

No comments: