GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
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've been using vim for about 2 years now, for my editing needs which are just taking care of my linux systems, writing little programs, and taking notes. I'm not sure if I'm 'used to it', but I can generally get it to do what I want done. I still press 'u' (undo) a lot, and I take frequent trips to the help menu ":help help". There's still features of Vim that I haven't learned to use so well yet (registers, macros, ex commands, vimscript). I think you can grasp the basics in minutes to hours, and depending on how deep you want to go: your time's the limit.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
Originally Posted by frankbell
These should be enough to get you going: x, dd, dw (to delete text); cw (change a word); yy ("yank" or copy a line); p and P (to paste text); u (undo); w ("write") or save text; q (quit vim). You can learn additional commands as you need them.
I can second this. That how I started. The biggest problem is to memorize the commands. So a cheat sheet is a nice addition.
I can recommend, in addition to above, to learn one extra command at a time, and then use it whenever it is appropriate. There are many ways to do something in vi, only one way is the most efficient. So when you are used to the new command you automatically use it, introduce the next new command.
I would place the tabbed editing (:tabe filename, gT, gt high on my list of extras.
And if you end your post in LQ with :wq you know you are tired.
I myself had some trouble with it at first, but now Im just fine with it if using it as a quick way to edit text, conf, and other files in a terminal. Other than that, I use IDEs and real text editors like LibreOffice Writer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.