Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
View Poll Results: Do you use VIM in via the console or gui?
I think gvim sucks. In my recollection, it is butt ugly and strange. I don't like vim either for anything beyond quick editing of system files and the like because I never learned how to work with multiple files or windows; I tried but failed and gave up. Knowing basic vim has been a very valuable lesson though. You have to invest to learn search & replace features and the like, but after that it is okay.
Curious... why not use vim in an xterm/console for source code editing instead of gvim? Console vim has tabs too, along with most other vim features.
I never thought there was tabs in vim. I have been using "split" when editing multiple files even I don't need to see more than one file at the same time.
I use GVIM whenever I can (because I prefer the syntax highlighting of the GUI version over that of the console version.). Whenever I can't use GVIM I use straight VIM of course. The way I use (g)vim doesn't change with the GUI or the console version, I always use the keyboard for everything except clicking on tabs or in split windows.
:wx
I use pure VIM, just because I don't like the looks ov gvim. It's faster to open up in a terminal aswell (yeah I could probably just write gvim, but I'm too lazy ).
Can you by the way use both split and tabs at the same time, or are you limited to one option?
Straight vi(m) in any env.
In regards to hansv, std vim does syntax higlighting if you are in e.g. an xterm i.e. some kind of GUI as opposed to a REAL console i.e. X-Win is not up.
One of the kind readers on this forum introduced me to VIM to solve a problem. I've used the console version ever since, it's fun to use ! I use the KDE desktop all the time, except when I need to do some serious work.
I use pure VIM, just because I don't like the looks ov gvim. It's faster to open up in a terminal aswell (yeah I could probably just write gvim, but I'm too lazy ).
Can you by the way use both split and tabs at the same time, or are you limited to one option?
I just tried what you suggested and it works!
After using these commands:
Code:
:tabnew
:split
I have two tabs and the second tab is displayed with a split so that two windows are on the screen. I can switch to the first tab by doing Ctrl-PgUp.
You do realize that vim has a builtin help system, right? Try ":h tabs" and then look for the bold text "SWITCHING TO ANOTHER TAB PAGE".
Been there and done that before I posted here. I can go to and fro tabs via :tabn and other such commands. But, I cannot get it to respond to Ctrl-PgDn like the helpfile says should work. Maybe there is another command that you need to issue to get ctrl key-combos to work - I don't know.
I don't know if I would even like Ctrl-PgDn over the :tab[some other letter(s)] for tab navigation, but I'd like the chance to experiment between the two.
I looked at the helpfile for split windows, too - and I can't find the command to switch between the windows. I probably glanced over it without realizing it in my tiredness, but that would be a good command for me to learn.
I mainly use the GUI version unless I am in a telnet session and need to look quickly. I will bring up files to my PC to use GUI version because I find it faster to use the mouse for some things and the color syntax is extremely useful.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.