while editing a file in vim, to do any of the following, get into vim command mode.
1. invoke shell using :sh. Return to vim using exit in shell.
2. see output of a vim command using :!cmd
3. insert the output of a vim command using :!rcmd
this last command is highly useful if we have to insert data from a different file into the current. it saves copy/paste efforts.
Friday, May 1, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment