Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 am working on RHEL 4es. I use vi editor for text editing. We have long length data files. To view the file without wrapping i give the command ' set nowrap ' everytime.
Typing this lengthy command everytime is boring. Is there any short cut to cut short this command.
Some times i open the files with vimdiff command. But i was told that this command may currupt the file.
Is it true? Kindly help me.
editing the .vimrc will permanently open all the files with nowrap. But i dont want this. i want a short cut at vi editor i.e., at : instead of typing the lengthy set nowrap command i want to type a simple word... like :sn.
after mapping its working superbly...but when i exit the vi editor...its gone... again i have to map it when i enter freshly into the vi editor... Guide me to map the key permanently.... or some other hint... or shortcut..
Hey! i am unable to find .vimrc in my system(RHEL4ES). We have a separate user like mainsys. In this all our programs files are loaded under prog directory. when i login to mainsys the default path is like this /usr2/project/mainsys/prog. I could find .vimrc of root. But did not use it regularly. how to find .vimrc of mainsys user (group is mainsysgrp)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.