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.
That'll get your PATH running, and then you can fix the file as needed.
Next time you're playing with the login scripts, I suggest leaving one terminal open, and using a second to test whether or not it works. That way if you screw something up, you still have the original terminal you can use to fix things.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
You may notice that /usr/bin/vi is a symbolic link to /usr/bin/elvis on many systems. If so, you may want to replace that symbolic link to /usr/bin/vim, vi improved.
You can find out if you
Code:
ls -al /usr/bin/vi
lrwxrwxrwx 1 root root 5 Nov 11 2014 /usr/bin/vi -> elvis*
elvis is a clone of the ex/vi editor.
Also, a couple of handy things you can add to your profile that enhance vi (all flavors of vi); add a file to your home directory named .exrc with this content:
Code:
set autoindent showmode showmatch
autoindent. When you type a tab (to indent code and the like), the editor will continue to indent for you until you type a ctrl-D which will undent. You can type multiple tabs (and multiple undents), make for more readable code.
showmode. Shows at the bottom of the screen what mode you're in (edit, replace, etc.). Not real useful but not a complete waste either.
showmatch. When you're typing parens, braces or brackets -- (), {}, [] -- if you miss a closing paren, brace or bracket you'll get a visual indication that you need to add one (or more). Handy if you're doing coding.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.