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
As of version 8.0 Vim supports packages. Clone this repository inside ~/.vim/pack/all/start:
git clone https://github.com/LnL7/vim-nix.git ~/.vim/pack/all/start/vim-nixThe 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'Copy the contents of each directory in the respective directories inside
~/.vim.