Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LnL7/vim-nix
Vim configuration files for Nix http://nixos.org/nix
https://github.com/LnL7/vim-nix
nix nixpkgs vim
Last synced: 2 months ago
JSON representation
Vim configuration files for Nix http://nixos.org/nix
- Host: GitHub
- URL: https://github.com/LnL7/vim-nix
- Owner: LnL7
- License: mit
- Created: 2015-04-26T12:39:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-24T10:56:06.000Z (11 months ago)
- Last Synced: 2024-10-30T02:48:12.485Z (3 months ago)
- Topics: nix, nixpkgs, vim
- Language: Vim Script
- Size: 109 KB
- Stars: 288
- Watchers: 9
- Forks: 26
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-nix
Support for writing [Nix expressions](http://nixos.org/nix/manual/#chap-writing-nix-expressions) in vim.
Features included so far:
* Syntax highlighting for Nix
* Filetype detection for `.nix` files
* Automatic indentation
* [`NixEdit`](https://github.com/LnL7/vim-nix/commit/9b2e5c5d389e4a7f2b587ae1fdf7a46143993f21) command: navigate nixpkgs by attribute name## Installation
### Plugin managers
As of version 8.0 Vim supports packages. Clone this repository inside `~/.vim/pack/all/start`:
```bash
git clone https://github.com/LnL7/vim-nix.git ~/.vim/pack/all/start/vim-nix
```The most common plugin managers include [vim-plug][vim-plug],
[NeoBundle][neobundle], [Vundle][vundle] and [pathogen.vim][pathogen].With pathogen.vim, just clone this repository inside `~/.vim/bundle`:
```bash
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`:```viml
" 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`.[vim-plug]: https://github.com/junegunn/vim-plug
[vundle]: https://github.com/gmarik/Vundle.vim
[neobundle]: https://github.com/Shougo/neobundle.vim
[pathogen]: https://github.com/tpope/vim-pathogen