creating a file using vim
I'm taking an intro to Linux class and one of our lab exercises is to create a file "practice" using a vim editor.. but the text doesn't give examples and I've yet to find a tutorial. I'm lost. Can anyone tell me how to create a "practice" file using vim?
|
|
|
Code:
vim filename Press i to switch to insert mode before the current position.(This will allow you to type) Type the stuff you want to and Then press ESC and type Code:
:wq w means to write and q means to quit for interactive tutorial: http://www.openvim.com/tutorial.html |
Code:
:x ':wq' is the slow way :) |
Quote:
|
Quote:
On topic: There are also a couple of sites with good video tutorials for using, configuring and extending Vim, like for example http://vimcasts.org/ Can be very helpful to see what a feature actually does, sometimes just reading about it doesn't really help. |
Thanks
Thanks everyone, all the information really helped. I got it down now!
|
All times are GMT -5. The time now is 12:29 PM. |