LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-02-2005, 02:09 AM   #1
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Rep: Reputation: 15
general vim questions.


Hello everybody,

I just started really using vim the other day. I'd used it before for simple editing, but got sick of my programming interfaces (Eclipse, Quanta) taking up so much memory (and only running with X/KDE), so I tried it out more thoroughly. It really is a great program.

Anyway, a few questions:

1) Is there another way of getting out of insert mode, other than hitting ESC? It seems a little too much a reach when I'm on the home row. I bet I could map another key for it, but don't know how, or which key would be good.
2) Are there any good vim forums out there that I should know about.
3) What are the "can't live without" plugins that I should get? I've got a file explorer plugin, color plugin, and the Tlist plugin... BTW: I work with PHP, HTML, Perl and SQL files regularly.
4) How long should I continue working with vim before moving on to gvim? To learn linux, I forced myself to use the command line for everything, and then learned X. I feel that's the best way. Is this going to be the same?

Thank you all,
James
 
Old 10-02-2005, 03:23 AM   #2
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Not that I know much about vim/gvim either, but I believe you can start using gvim right away. I don't think there's anything that you need to learn from vim before you switch over. In fact, I much prefer gvim over vim because gvim will let you spawn new windows off of one terminal.

vim reads from ~/.vimrc. gvim reads from that and ~/.gvim.
 
Old 10-02-2005, 05:13 AM   #3
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Also, check out the vimrc sample under /usr/share/vim/vim63/vimrc_example.vim

I just copy that to /home/user/.vimrc and I'm good to go.

I've never used gvim, tried a few times... I just like the console vim.

--Shade
 
Old 10-02-2005, 06:14 AM   #4
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276

Rep: Reputation: 33
If you don't like hitting Esc to get into command mode or hitting Insert (or i) to get into Insert mode, you can set mappings in your .vimrc file. Look into the :map and the :map! switches.

:map is for Command mode and :map! is for Insert. So, for example, if:

:map! <F11> Hello, my name is Mr. Burns.

was in your .vimrc file, then if you were typing and hit the F11 key, then the sentence, 'Hello, my name is Mr. Burns.' would be printed.

You can also set commands, like:

:map! <F12> <Esc>:set nu!<Esc>i

This command Escapes to commands mode, enters the command :set nu!, then re-enters insert mode, if you hit the F12 key while typing.

Play around with it, you can do a lot with vim.

Plugins I use:

Vim-Latex for typsetting documents.
Word Complete.
Spellcheck.
 
Old 10-02-2005, 06:38 AM   #5
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
Very neat stuff... Thanks alot guys. I really think this might be the editor I stick with from now on

-James

ps. Has anybody mapped the <Esc> key to something else that they find more efficient? What is that key?

Last edited by jkassemi; 10-02-2005 at 07:40 AM.
 
Old 10-02-2005, 10:56 AM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
A lot of people map it to the windows or CAPS lock key.

--Shade
 
Old 10-02-2005, 12:43 PM   #7
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
I mapped it over to the caps lock key and I couldn't be happier. I'm working so much faster than before... Great stuff !!!

^ I know I have no life when swapping the esc and caps lock key makes me want to jump for joy

-James
 
Old 10-02-2005, 12:57 PM   #8
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Quote:
Originally posted by jkassemi
I mapped it over to the caps lock key and I couldn't be happier. I'm working so much faster than before... Great stuff !!!

^ I know I have no life when swapping the esc and caps lock key makes me want to jump for joy
Hehe... I know what you mean. It's such a great feeling when you tweak an app the way you want it AND get it to work!
 
Old 11-09-2005, 12:30 AM   #9
daacosta
Member
 
Registered: Jun 2002
Location: Norman, Oklahoma
Distribution: Fedora Core 4
Posts: 45

Rep: Reputation: 15
http://docs.freebsd.org/44doc/usd/12.vi/paper.html

http://www.networkcomputing.com/unix...l/009/009.html

http://www.vim.org/

http://thomer.com/vi/vi.html
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
general questions piva.francesco Linux - Software 4 05-05-2005 02:44 AM
rxvt - vim questions about keybinding thely Linux - General 2 12-12-2004 11:53 PM
General Questions gcobb Linux - Software 2 10-21-2004 12:09 AM
general questions ChrisC Linux - General 1 03-31-2003 07:28 PM
general questions [cacheflow] Linux - Newbie 4 01-25-2002 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:06 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