Ⅰ. 插件描述
Vim configuration files for Nix http://nixos.org/nixⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'lnl7/vim-nix-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'lnl7/vim-nix-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'lnl7/vim-nix-holy-ground'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/lnl7/vim-nix
Ⅳ. 文档说明
# vim-nix
Support for writing Nix expressions in vim.
Features included so far:
- Syntax highlighting for Nix
- Filetype detection for
.nixfiles - Automatic indentation
NixEditcommand: navigate nixpkgs by attribute name
Installation
Plugin managers
The most common plugin managers include vim-plug,
NeoBundle, Vundle and pathogen.vim.
With pathogen.vim, just clone this repository inside ~/.vim/bundle:
git clone https://github.com/LnL7/vim-nix.git ~/.vim/bundle/vim-nixWith the other plugin managers, just follow the instructions on the homepage of
each plugin. In general, you have to add a line to your ~/.vimrc:
" vim-plug
Plug 'LnL7/vim-nix'
" NeoBundle
NeoBundle 'LnL7/vim-nix'
" Vundle
Plugin 'LnL7/vim-nix'Manual installation
Copy the contents of each directory in the respective directories inside~/.vim.