LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 01: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 02:39 AM.
 
Old 03-21-2008, 02: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, 02: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, 10: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, 10:08 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
See here : http://www.vi-improved.org/vimrc.php
 
Old 07-31-2012, 05: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, 05:36 PM   #7
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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 04:50 AM
Slack's Example vimrc File mijenks Slackware 2 12-30-2004 11:08 AM
little questoin about vimrc..... chunlee Linux - Software 2 06-22-2004 08:06 PM
.vimrc trouble ( Please help ) raees Linux - General 1 04-14-2004 12:53 PM
Need RedHat .vimrc Glock Shooter Linux - General 1 11-11-2003 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 AM.

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