Thursday, May 26, 2011

Re: make terminal VIM my default text editor Ubuntu 11.04

Hi gary
thank you very much for your explanation
i have my color scheme as default now =)
thanks again

juan

On Thu, May 26, 2011 at 2:11 AM, Gary Johnson <garyjohn@spocom.com> wrote:
On 2011-05-26, Juan incaurgarat wrote:

> gary and pansz, ive been trying some things with the colors, and downloaded a
> color scheme that i like si far. so now im using it on VIM and GVIM =)
> the thing i dont get yet, is the .vimrc thing
> is it a file? or a you mean the command line on VIM?
> if its a file, either i dont have it or i cant find it.

Juan,

I'm sorry, I just assumed that you knew about the .vimrc file.  That
is Vim's configuration file.  It resides in your HOME directory,
which is the directory named /home/<user> where <user> is your user
name, the name you use when you log in.  It is also referred to as
~/.vimrc because most shells expand ~ the same as $HOME.  Within
Vim, the name is saved in the environment variable $MYVIMRC.

The .vimrc file is not created automatically, you have to create it
yourself.  It contains the same kinds of commands that you type at
Vim's command line.  These are called ex commands.

So for example, if you find that you like some particular
colorscheme and want to use it all the time, start Vim and execute

   :e ~/.vimrc

If that file exists already for some reason, it will appear in Vim.
Otherwise, Vim will display something like

   "~/.vimrc" [New File]

at the bottom of the screen.  Enter into that file the line

   colorscheme blue

where you should replace "blue" by the name of the colorscheme you
like.  Then just save that file and the next time you open vim or
gvim, that colorscheme will be set automatically.

As you find other Vim settings that you would like to use all the
time, you can open that file and add those settings to it.  An
example .vimrc file can be found in $VIMRUNTIME/vimrc_example.vim.

You can read more about the .vimrc file here:

   :help vimrc-intro

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment