When vi'ing a file try the following:
Shift+G - go to end of file
:
:i - insert
:A - insert at end of line
cw - while in insert mode - change word (deletes word)
p - paste below line
P - past above line
If you ever get lost in VI or want to get out of Insert mode, hit Esc.
As you may realise i'm no linux engineer, but these small commands have helped me save a lot of time when editing linux configs etc.
More to come soon...
No comments:
Post a Comment