English 中文(简体)
CentOS and vim sourcing vimrc file
原标题:CentOS and vim sourcing vimrc file
  • 时间:2011-11-23 19:40:26
  •  标签:
  • vim

使用CentOS的Im似乎安装了防弹。 我将圆顶文件放在地名录上。 然而,我在圆弧文档中添加了syntax onset number,然后开始翻一番,并创建了世界C方案。 两者都没有效果。 但是,当我打上<代码>:或的星号:时,这些星号在指挥时起作用。 因此,由于未安装一些设备似乎无法找到圆形文档(?),因为它似乎没有使用。 当I类温度迅速时:~/vimrc,它说“无此类档案或名录”。

Any idea how I specify the location for vim to find vimrc file?

Edit: 当我类型时:我看一看,

system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"

But, from linux prompt, when I type echo $VIM nothing is returned. If I export VIM = /etc, still no effect when starting vim. When I echo $HOME I see /Users/<username>.

最佳回答

Just copy the vimrc file to your home directory.
The vimrc should be as hide... You know .vimrc

问题回答

我通常期望这在你的家事中居住。 注:打字

:version

Will tell you where Vim expects to find stuff.

e.g.

  system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/local/share/vim"




相关问题
Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?

how to unindent in vim without leaving edit mode?

I m writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block....

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

Vim - Deleting XML Comments

How do I delete comments in XML? If the opening and the closing comment tags are on the same line, I use :g/^<!--.*-->$/d to delete the comment. How to delete the comments that are spread ...

Limiting a match in vim to certain filetypes?

I have the following in my .vimrc to highlight lines longer than 80 chars: highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.*/ This works quite well. However, the ...

Profiling Vim startup time

I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of ...

热门标签