LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hi i not getting my .vimrc file in this path ~/.vimrc (https://www.linuxquestions.org/questions/linux-newbie-8/hi-i-not-getting-my-vimrc-file-in-this-path-%7E-vimrc-629592/)

dina3e 03-21-2008 12:37 AM

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 .

Nylex 03-21-2008 01:09 AM

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.

dina3e 03-21-2008 01:44 AM

thank u.... yes it is really working..
 
Quote:

Originally Posted by Nylex (Post 3095650)
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..

dina3e 06-30-2008 09:00 PM

Quote:

Originally Posted by Nylex (Post 3095650)
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.

chrism01 06-30-2008 09:08 PM

See here : http://www.vi-improved.org/vimrc.php

tibbles 07-31-2012 04:30 PM

To post a comment within the .vimrc file you need to use the " character rather than # (or // etc.)

suicidaleggroll 07-31-2012 04:36 PM

Quote:

Originally Posted by tibbles (Post 4742499)
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



All times are GMT -5. The time now is 10:06 AM.