vim-neovim-defaults


Ⅰ. 插件描述

Neovim defaults for Vim

Ⅱ. 基本信息

创建日期:  2015-08-24
使用用户:  5
Github星:  23
插件作者:  Noah Frederick

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'noahfrederick/vim-neovim-defaults'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'noahfrederick/vim-neovim-defaults'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'noahfrederick/vim-neovim-defaults'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/noahfrederick/vim-neovim-defaults

Ⅳ. 文档说明

# Neovim defaults for Vim

This tiny plug-in sets options to Neovim's default values where they differ from
Vim's defaults. Intended for use by those who share configuration between Vim
and Neovim and don't want to set redundant options in their nvimrc.

See also Sensible.vim for additional sensible defaults.

If you use a plug-in manager, such as vim-plug, you can load it conditionally:

if !has('nvim')
  Plug 'noahfrederick/vim-neovim-defaults'
endif

Or using Pathogen:

let g:pathogen_disabled = []

if has('nvim')
  call add(g:pathogen_disabled, 'vim-neovim-defaults')
endif

You must first source the plug-in before overriding one or more of these
defaults in your vimrc:

runtime! plugin/neovim_defaults.vim

" ...

Otherwise you may place overrides in after/plugin/neovim_defaults.vim.

Credits and License

Copyright © Noah Frederick. Distributed under the same terms as Vim itself.
See :help license.

添加新评论