Slion.net>Dev>LinuxHome>UsingVi

Using VI

Let's make it clear I'm a practical guy and I like straight forward things, in other word I hate VI. Yet I thought I better teach myself some basic VI usage, that would allow me to edit text file from command line on pretty much every Unix/Linux machine running out there.

To start with finding pratical VI guid on the internet seems quite hard. It's almost like the geeks don't want to teach you how to use it wink It's their little secret. Or maybe I was not looking at the right place. Anyhow here is the most pratical VI guid I found.

And here is what I retained from it:

Now once in vi it displays the content of your file but you can't just enter some text from there you have to use vi commands to perform operations on the content of your file:

You can even do proper copy/paste apparently but it looks like you need a master in vi. Am I being synical? Me? NoOoo?! Anyhow follow the link above to find out how to do that wink

References

Mastering VI