vim-nix


Ⅰ. 插件描述

Vim configuration files for Nix http://nixos.org/nix

Ⅱ. 基本信息

创建日期:  2015-04-26
使用用户:  48
Github星:  94
插件作者:  Daiderd Jordan

Ⅲ. 安装方法

使用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

Build Status

Support for writing Nix expressions in vim.

Features included so far:

  • Syntax highlighting for Nix
  • Filetype detection for .nix files
  • Automatic indentation
  • NixEdit command: 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-nix

With 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.

添加新评论