From 9128ee40ec77b5df0ac0ba38254098b2d653327e Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 18 Jun 2020 14:56:37 -0700 Subject: vim: plugins --- lib/vimrc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/vimrc b/lib/vimrc index 2a23621..9496a24 100644 --- a/lib/vimrc +++ b/lib/vimrc @@ -108,14 +108,15 @@ function! SynStack() endfunc """ Plugins with vim-plug -" 2019.06.11: disabling b/c I'd rather just use nix/home-manager for vim -" plugins, but this is nice code to have for reference too -"if empty(glob('~/.vim/autoload/plug.vim')) -" silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs -" \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -" autocmd VimEnter * PlugInstall --sync | source $MYVIMRC -"endif -"so ~/.vim/plugins.vim +""" only use this for stuff not available in nix/home-manager +if empty(glob('~/.vim/autoload/plug.vim')) + silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + autocmd VimEnter * PlugInstall --sync | source $MYVIMRC +endif +call plug#begin('~/.vim/plugged') +Plug 'urbit/hoon.vim' +call plug#end() " Vim color scheme, modified from Xavier's below " -- cgit v1.2.3