Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was going through a book
"The complete idiot's guide to Linux "
good for newbies
i was going through the basics of vi
it says shift+h places teh cursor at the begining of the file
shoft+l takes you to te last line of the current file.
however when i tried it out
i found that shift+h goes one character left and shift+l goes one character right.
Originally posted by wogga I was going through a book
"The complete idiot's guide to Linux "
good for newbies
i was going through the basics of vi
it says shift+h places teh cursor at the begining of the file
shoft+l takes you to te last line of the current file.
however when i tried it out
i found that shift+h goes one character left and shift+l goes one character right.
are there different versions of vi?
There are and at times some distros don't even use or install vi any longer, they might link to another program instead, like joe or jed, etc. One of the many other editors and many vi clones as well out there. What distro are you using?
Originally posted by wogga i am using redhat 9.0
why dont they standardize vi for heavens sake
if you are running RH, then when you vi filename, you are running vim, not vi. that is why some of the commands are not working exactly as they should for vi.
as root you can unalias vi, then when you vi filename you will be in VI, not VIM.
hope that helps a bit.
from what i have seen, all distros come with vi, but more and more are aliasing to vim.
alias does what the word is actually defined as: also known as; otherwise..
Say your name is Andrew but you go by Drew, that can be considered an alias.
So in the world of Linux and Unix, when you alias a command, it just simply means its referring to another command, etc. Its an easy way to make one command function as another.
Say when I type ls -al to list all files in a directory but I'm lazy and wanted to type ls and get the same output, I would do a:
If you do "type -a vi" it should tell you if your vi is an alias to another application.
It could, however, be a symlink to another application, in which case type won't help. If "type -a" comes up with something like "/usr/bin/vi" you can then do "ls -l /usr/bin/vi" to see if it's a link.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.