LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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

Reply
 
Search this Thread
Old 01-06-2004, 04:21 PM   #1
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
Question about VIM configuration


When I use vim at uni linux os, I can just type ";" to switch to command mode. However, when I use vim at home, I have to type ":" (shift + ";") to switch to command mode. How can I configure so that I don't need to have to type shift. That is, I can just type ";" or shift + ";" (":") to switch to command mode, they have the same effect.

Hope I state the question clearly.
Thanks a lot.
 
Old 01-06-2004, 04:39 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Put this:
map ; :
in your .vimrc (local), or in /etc/vimrc (global)
 
Old 01-06-2004, 07:07 PM   #3
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Original Poster
Rep: Reputation: 30
Thanks.

Also, is it possible that I can copy the configuration file of VIM on uni linux os? I like its configuration and its syntax highlight. However, I can't be the super user as a student. If it is possible, which file should I copy.
 
Old 01-06-2004, 07:32 PM   #4
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Original Poster
Rep: Reputation: 30
I found this link on web.
http://platon.sk/projects/release_vi...p?release_id=8

It may help others too.
Anyone helps me the question in my previous post? Or can anyone provide a documentation about vim configuration?

Thanks.
 
Old 01-06-2004, 07:41 PM   #5
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
Running:

vim -V

will provide a list of configuration files vim looks for and reads.

Lyle
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 & aspell configuration edM Slackware 4 03-29-2005 12:50 PM
vim question blackzone Linux - Newbie 2 09-10-2004 10:04 AM
Wanna change my VIM configuration naren Programming 4 04-19-2004 08:34 PM
Configuration for VIM editor ICO Linux - General 5 08-02-2003 08:34 PM
vi/vim question kiley_rodgers Slackware 1 06-18-2003 09:15 AM


All times are GMT -5. The time now is 02:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration