LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2005, 03:34 AM   #1
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Rep: Reputation: 30
where can I find info about VI profile


I want to configure the vi profile, so that the tab is 4 spaces, and it has some language syntax hilite etc, also want to be able to do more and more.

Where should I start with it?

thanks.
 
Old 08-05-2005, 05:15 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

I do assume you are talking about vim, although 'we' call it vi it's not the same.
That said: take a look at vimtutor, especially parts 7 and 8.

Short answer to your questions: edit ~/.vimrc (local) or /etc/vimrc.

Hope this helps.
 
Old 08-07-2005, 08:01 AM   #3
eddiebaby1023
Member
 
Registered: May 2005
Posts: 378

Rep: Reputation: 33
Re: where can I find info about VI profile

Quote:
Originally posted by ICO
I want to configure the vi profile, so that the tab is 4 spaces, and it has some language syntax hilite etc, also want to be able to do more and more.

Where should I start with it?

thanks.
Don't set your tab to 4 spaces or you'll screw up other programs' display, instead set the shiftwidth:
Code:
set sw=4
Use Ctl-T in insert mode to indent one "tab stop" and Ctl-D to "outdent". You can indent in command mode with ">>", prefix it with a count to indent that number of lines. "<<" outdents. If you mean vim, rather than vi there's a wealth of online help built-in; type :h vimrc in vim to get started.
 
Old 08-22-2005, 02:22 AM   #4
ICO
Member
 
Registered: Aug 2003
Location: ~/.
Distribution: CentOS
Posts: 290

Original Poster
Rep: Reputation: 30
use :h vimrc will split the window, and I can't read in for full screen.

Anyone knows where I can find the official vimrc documentation?
 
Old 08-22-2005, 02:33 AM   #5
PeterRJG
Member
 
Registered: Jun 2005
Location: Northern NSW, Australia
Distribution: LXLE
Posts: 123

Rep: Reputation: 15
http://www.vim.org/docs.php
I imagine it's in there somewhere
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Changing profile info politik LQ Suggestions & Feedback 1 07-16-2005 10:34 AM
where do i find a .profile ? (rhelv21) namgor Linux - General 6 07-08-2004 01:48 PM
cannot find local profile Peds222 Linux - Networking 2 09-11-2003 03:03 PM
Where to find .profile or .login? sceadu Linux - Newbie 2 03-21-2003 01:06 AM
profile info on replies bluecadet LQ Suggestions & Feedback 7 01-13-2002 05:56 AM


All times are GMT -5. The time now is 12:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration