nix-config/sh/055-vim

26 lines
541 B
Plaintext
Raw Normal View History

2018-08-31 21:36:58 +02:00
#!/bin/sh
#
# Vim is the standard text editor.
#
# https://wiki.archlinux.org/index.php/Vim
set -xe
sudo pacman -S vim
2018-08-31 21:36:58 +02:00
sudo pacman -S neovim
2018-08-31 21:36:58 +02:00
# Add the `undo` directory for regular vim
mkdir -p ~/.vim/undo
# Install all vim plugins with `vim-plug`. Note that your
# .vimrc should already have a section with the plugins that
# you want to install.
#
# https://github.com/junegunn/vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +qall