LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


View Poll Results: Do you use VIM in via the console or gui?
I use the console version 92 91.09%
I use the gui version (GVIM) 9 8.91%
Voters: 101. You may not vote on this poll

Reply
  Search this Thread
Old 03-31-2008, 09:09 PM   #31
ak_random
Member
 
Registered: Jun 2007
Location: Silicon Valley, CA
Distribution: Xubuntu
Posts: 83

Rep: Reputation: 15

Quote:
Originally Posted by Su-Shee View Post
And yes, I constantly type Esc:wq either - especially here in the forum's textarea or even to close a Firefox tab..
For your browser's text edit area, you may want to give this a try:
https://addons.mozilla.org/en-US/firefox/addon/4125
This seems to work reasonably for me.

There are also addons to give firefox vi like key bindings. I haven't tried any, as I don't find any appeal for at this point.
 
Old 04-01-2008, 09:00 AM   #32
xenmaster
Member
 
Registered: Sep 2005
Posts: 32

Rep: Reputation: 0
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.
 
Old 04-01-2008, 09:16 AM   #33
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by ak_random View Post
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.
 
Old 04-01-2008, 09:37 AM   #34
hansv
LQ Newbie
 
Registered: Apr 2007
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
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
 
Old 04-01-2008, 10:47 AM   #35
Hevoos
LQ Newbie
 
Registered: Oct 2007
Distribution: Debian Lenny, Slackware 12
Posts: 22

Rep: Reputation: 15
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?
 
Old 04-01-2008, 11:13 AM   #36
ciden
Member
 
Registered: Dec 2006
Location: New Delhi, India
Distribution: PCLinuxOS 2010
Posts: 246
Blog Entries: 1

Rep: Reputation: 31
Neither.
Emacs!!!
Console.
I hate it when I have to use vim. ( But I have to when there is nothing else.)
 
Old 04-01-2008, 06:43 PM   #37
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
Old 04-01-2008, 07:33 PM   #38
Cara25
Member
 
Registered: Mar 2006
Location: Nashville, Tennessee
Distribution: Salix 13.37 with KDE
Posts: 258

Rep: Reputation: 36
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.
 
Old 04-02-2008, 06:00 AM   #39
madtuxor
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Rep: Reputation: Disabled
I come from a vi background so i use vim only through a console.
 
Old 04-02-2008, 07:39 AM   #40
nonfatalexec
Member
 
Registered: May 2006
Location: Toronto, Canada
Distribution: Fedora 17
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by Hevoos View Post
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.
 
Old 04-02-2008, 05:06 PM   #41
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by nonfatalexec View Post
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.
Ooooooooo!!!

That can come in very, very handy!!!

But, I tried Ctrl-PgUp to switch tabs and nothing.
 
Old 04-02-2008, 05:24 PM   #42
ak_random
Member
 
Registered: Jun 2007
Location: Silicon Valley, CA
Distribution: Xubuntu
Posts: 83

Rep: Reputation: 15
Quote:
Originally Posted by JMJ_coder View Post
But, I tried Ctrl-PgUp to switch tabs and nothing.
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".
 
Old 04-02-2008, 10:35 PM   #43
JMJ_coder
Member
 
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Original Poster
Rep: Reputation: 30
Hello,

Quote:
Originally Posted by ak_random View Post
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.
 
Old 04-02-2008, 11:14 PM   #44
rjbdevr
LQ Newbie
 
Registered: Mar 2008
Location: Wisconsin
Posts: 4

Rep: Reputation: 0
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.
 
Old 04-03-2008, 05:18 AM   #45
esm_menc
Member
 
Registered: Apr 2006
Location: washington
Distribution: boat loads in my library:LFS3.1/dsl/puppy/tinycore
Posts: 31

Rep: Reputation: 16
i mostly use vi / vim at console. but at graphic i use kedit. but if its not there/installed i use xterm & vi.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim no GUI support seeone Linux - Software 7 02-22-2010 11:09 PM
LXer: Vim tips: Using Vim mappings and abbreviations LXer Syndicated Linux News 0 06-18-2006 01:54 PM
LXer: Cream for Vim - Making Vim more user friendly LXer Syndicated Linux News 0 06-17-2006 11:54 PM
vim not compiled with gui? gbonvehi Slackware 2 08-08-2004 02:53 AM
anyone knows how to disable color for vim in console? linuxzouk Linux - Newbie 2 06-07-2004 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration