aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-02-21 14:59:12 -0500
committerMitch Riedstra <mitch@riedstra.us>2018-02-21 14:59:12 -0500
commit8044ca3e302fcd02f8b515cbce5f0c64dc83285c (patch)
treed6872f5060889ad17271523b3cb6b258f7afbbab
parent5d40569e5c1ca453df1bf7b0547f3f69e3e684d7 (diff)
downloadvim-cfg-8044ca3e302fcd02f8b515cbce5f0c64dc83285c.tar.gz
vim-cfg-8044ca3e302fcd02f8b515cbce5f0c64dc83285c.tar.xz
Make disabling plugins separate in the makefile
-rw-r--r--vim/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/vim/Makefile b/vim/Makefile
index b0ad1fd..5d60657 100644
--- a/vim/Makefile
+++ b/vim/Makefile
@@ -5,7 +5,8 @@ install:
cp stage ../init.vim
clean:
- rm stage
+ # remove *.bak files for the in-place editing
+ rm stage *.bak
main:
cat \
@@ -34,12 +35,15 @@ solarized_dark_256: solarized solarized_dark solarized_256
base:
# Disable Plugins for base
- sed -i -e'/pathogen#infect/d' stage
cat \
warning.vim \
base.vim \
> stage
+disable_plugins:
+ # Using -i.bak for compatibility with BSD sed
+ sed -i.bak -e'/pathogen#infect/d' stage
+
help:
@echo "Current build options are:"
@@ -50,5 +54,6 @@ help:
@echo " solarized_256: adds solarized ( 256color )"
@echo " solarized_dark_256: adds solarized dark ( 256color )"
@echo " base: builds a basic configuration"
+ @echo " disable_plugins: Disable pathogen ( plugin support )"
@echo " clean: cleans the stage file"
@echo " install: installs the staged config"