Vim advanced commands
Useful commands to master vim
Tips
All delete commands which are run with d
, may use instead c
. This will do the same delete operation, but will open directly on insert mode afterwards.
Help
Type :help change.txt
Redirect input into a Vim buffer
cat input | vim -
This, ran from bash, outputs the result of a command or a file into a vim buffer, where we can do whatever with it, without modifying the original source.