vim的新手 - MAC OSX Mountain Lion

时间:2021-04-06 22:47:12

I am new to vim, and I just followed this setup tutorial, but something went wrong. I am a ruby developer and I am not getting a a ruby highlighting syntax. I have installed janus, before with pathogen I had syntax highlighting but not know.

我是vim的新手,我只是按照这个安装教程,但出了点问题。我是一个ruby开发人员,我没有得到一个ruby高亮语法。我已经安装了janus,在使用病原体之前我有语法高亮但不知道。

Also I am using the solarized theme the guy suggested but there is no difference now (in color) between folders and files in my terminal when listing a directory.

此外,我正在使用这个家伙建议的日晒主题,但在列出目录时,我的终端中的文件夹和文件之间没有任何区别(颜色)。

Could somebody tell me if I can install pathogen with janus? WIll this break my vim? Thanks!

有人可以告诉我,我是否可以用janus安装病原体?这会破坏我的vim吗?谢谢!

1 个解决方案

#1


1  

  1. Don't install anything (and don't install Janus).

    不要安装任何东西(不要安装Janus)。

  2. Run $ vimtutor in your terminal. As many times as needed (and don't install Janus).

    在终端中运行$ vimtutor。根据需要多次(并且不安装Janus)。

  3. Once you feel ready to use Vim for day-to-day coding, install MacVim which is built with a better feature set than the default Vim. It comes with a CLI executable so you can use it in your terminal and in tmux (and don't install Janus).

    一旦您准备好使用Vim进行日常编码,请安装MacVim,它使用比默认Vim更好的功能集构建。它附带一个CLI可执行文件,因此您可以在终端和tmux中使用它(并且不要安装Janus)。

  4. Install the vim-ruby package for better, more up-to-date Ruby support (and don't install Janus).

    安装vim-ruby软件包以获得更好,更新的Ruby支持(并且不要安装Janus)。

  5. Don't install Janus. This thing is a pile of crap that will make your life overly complicated, hook you on plugins that may or may not be the best for you needs and prevent you from actually learning Vim properly in exchange of an artificially flattened learning curve.

    不要安装Janus。这件东西是一堆垃圾,会让你的生活变得过于复杂,把你挂在可能或可能不是你最需要的插件上,并阻止你真正学习Vim,以换取人为的扁平化学习曲线。

  6. Decide for a plugin/runtimepath management solution (VAM, vundle or plain Pathogen) and choose your plugins yourself according to your needs (and don't install Janus).

    决定插件/运行时路径管理解决方案(VAM,vundle或plain Pathogen)并根据您的需要自己选择插件(并且不要安装Janus)。

  7. If you have problems with Solarized, take a look at their issue tracker and their wiki. It is fragile and you need some work to set it up correctly (and… you know the rest).

    如果您遇到Solarized问题,请查看他们的问题跟踪器及其维基。它很脆弱,你需要做一些工作来正确设置它(而且......你知道其余的)。

#1


1  

  1. Don't install anything (and don't install Janus).

    不要安装任何东西(不要安装Janus)。

  2. Run $ vimtutor in your terminal. As many times as needed (and don't install Janus).

    在终端中运行$ vimtutor。根据需要多次(并且不安装Janus)。

  3. Once you feel ready to use Vim for day-to-day coding, install MacVim which is built with a better feature set than the default Vim. It comes with a CLI executable so you can use it in your terminal and in tmux (and don't install Janus).

    一旦您准备好使用Vim进行日常编码,请安装MacVim,它使用比默认Vim更好的功能集构建。它附带一个CLI可执行文件,因此您可以在终端和tmux中使用它(并且不要安装Janus)。

  4. Install the vim-ruby package for better, more up-to-date Ruby support (and don't install Janus).

    安装vim-ruby软件包以获得更好,更新的Ruby支持(并且不要安装Janus)。

  5. Don't install Janus. This thing is a pile of crap that will make your life overly complicated, hook you on plugins that may or may not be the best for you needs and prevent you from actually learning Vim properly in exchange of an artificially flattened learning curve.

    不要安装Janus。这件东西是一堆垃圾,会让你的生活变得过于复杂,把你挂在可能或可能不是你最需要的插件上,并阻止你真正学习Vim,以换取人为的扁平化学习曲线。

  6. Decide for a plugin/runtimepath management solution (VAM, vundle or plain Pathogen) and choose your plugins yourself according to your needs (and don't install Janus).

    决定插件/运行时路径管理解决方案(VAM,vundle或plain Pathogen)并根据您的需要自己选择插件(并且不要安装Janus)。

  7. If you have problems with Solarized, take a look at their issue tracker and their wiki. It is fragile and you need some work to set it up correctly (and… you know the rest).

    如果您遇到Solarized问题,请查看他们的问题跟踪器及其维基。它很脆弱,你需要做一些工作来正确设置它(而且......你知道其余的)。