PDA

View Full Version : Vi editor help II



alind
June 27th, 2009, 09:03 PM
i feel a bit shy asking ,
but i am very new to linux ,i am using kubuntu and trying to learn all its features .
i was reading about shell script and was suggested to try vi commands ,i wrote those commands in shell.
but did'nt get it!
whats the relation between shell and vi ?

thanks in advance! :)
Have a nice day!

Martin Witte
June 27th, 2009, 10:00 PM
whats the relation between shell and vi ?

In a shell you can turn on 'vi' options (the command is 'set -o vi'), e.g. meaning that instead of pressing the 'arrow up' key to get the last command you have to press '<ESC> K' - that is the vi way to get one line up. I would recommend to forget about the vi options as long as you're on Linux - the bash options are much more useable.

crush304
June 27th, 2009, 10:54 PM
from the terminal


vimtutor

JordyD
June 28th, 2009, 01:10 AM
I just found a cheatsheet and tried to increase the number of vim commands I was using every day. Afterwards, whenever I find something that I find tedious or I think can be done better, I Google it.

cariboo
June 28th, 2009, 07:20 AM
Moved to a new thread of it own.