summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 9b73fea..67d1d3e 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -1,3 +1,10 @@
+"" Download vim-plug if necessary
+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
+
let mapleader = " "
let maplocalleader = "\\"