LinuxQuestions.org
Review your favorite Linux distribution.
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 03-21-2008, 12:37 AM   #1
dina3e
Member
 
Registered: Mar 2008
Location: Bangalore
Distribution: Enterprise Red Hat linux
Posts: 98

Rep: Reputation: 16
Smile hi i not getting my .vimrc file in this path ~/.vimrc


i am a new user of linux operating system. i supposed to make userfriendly editor but i couldnot find out .vimrc file in home. plz help me .

Last edited by dina3e; 03-21-2008 at 01:39 AM.
 
Old 03-21-2008, 01:09 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Create the file if it doesn't exist. Also, the colour you've chosen for your text makes it difficult to see what you've written.
 
Old 03-21-2008, 01:44 AM   #3
dina3e
Member
 
Registered: Mar 2008
Location: Bangalore
Distribution: Enterprise Red Hat linux
Posts: 98

Original Poster
Rep: Reputation: 16
thank u.... yes it is really working..

Quote:
Originally Posted by Nylex View Post
Create the file if it doesn't exist. Also, the colour you've chosen for your text makes it difficult to see what you've written.
thank u for the suggestion..
 
Old 06-30-2008, 09:00 PM   #4
dina3e
Member
 
Registered: Mar 2008
Location: Bangalore
Distribution: Enterprise Red Hat linux
Posts: 98

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Nylex View Post
Create the file if it doesn't exist. Also, the colour you've chosen for your text makes it difficult to see what you've written.
i am created the .vimrc file in the home directory with the help of vi editor. but i the problem is what ever the command i suppose to use , i want the comment line and after that the commnd line.

if i write c style comment line(#......) ,then each time when vi encouter there arise a some warning statements.

how to put the comment lines.
 
Old 06-30-2008, 09:08 PM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
See here : http://www.vi-improved.org/vimrc.php
 
Old 07-31-2012, 04:30 PM   #6
tibbles
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
To post a comment within the .vimrc file you need to use the " character rather than # (or // etc.)
 
Old 07-31-2012, 04:36 PM   #7
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,747

Rep: Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977Reputation: 977
Quote:
Originally Posted by tibbles View Post
To post a comment within the .vimrc file you need to use the " character rather than # (or // etc.)
This

eg:
Code:
" Don't set vi-compatibility
set nocp

" Syntax highlighting only for vim-enhanced
if has("syntax")
    syntax on
endif
 
  


Reply

Tags
help, vimrc


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
wher is my vimrc file and the .vim directory slac 10.0 rkrishna Slackware 3 04-11-2005 03:50 AM
Slack's Example vimrc File mijenks Slackware 2 12-30-2004 10:08 AM
little questoin about vimrc..... chunlee Linux - Software 2 06-22-2004 07:06 PM
.vimrc trouble ( Please help ) raees Linux - General 1 04-14-2004 11:53 AM
Need RedHat .vimrc Glock Shooter Linux - General 1 11-11-2003 12:51 AM


All times are GMT -5. The time now is 03:38 AM.

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