Switch to vundle for vim plugin management.
This commit is contained in:
parent
07d698cebc
commit
d96f5afc1f
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,9 +1,6 @@
|
|||||||
[submodule "oh-my-zsh"]
|
[submodule "oh-my-zsh"]
|
||||||
path = oh-my-zsh
|
path = oh-my-zsh
|
||||||
url = https://github.com/gebner/oh-my-zsh.git
|
url = https://github.com/gebner/oh-my-zsh.git
|
||||||
[submodule "vim-pathogen"]
|
|
||||||
path = vim-pathogen
|
|
||||||
url = https://github.com/tpope/vim-pathogen.git
|
|
||||||
[submodule "mutt-gnome-keyring"]
|
[submodule "mutt-gnome-keyring"]
|
||||||
path = mutt-gnome-keyring
|
path = mutt-gnome-keyring
|
||||||
url = https://github.com/wbolster/mutt-gnome-keyring.git
|
url = https://github.com/wbolster/mutt-gnome-keyring.git
|
||||||
|
21
Makefile
21
Makefile
@ -4,7 +4,7 @@ FILES2 = msmtprc
|
|||||||
|
|
||||||
.PHONY: install clean check
|
.PHONY: install clean check
|
||||||
|
|
||||||
install: install-conf install-vim-pathogen
|
install: install-conf install-vim-vundle
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
|
|
||||||
@ -13,9 +13,8 @@ install-conf:
|
|||||||
cp gitconfig $(HOME)\.gitconfig
|
cp gitconfig $(HOME)\.gitconfig
|
||||||
cp vimrc $(HOME)\_vimrc
|
cp vimrc $(HOME)\_vimrc
|
||||||
cp gvimrc $(HOME)\_gvimrc
|
cp gvimrc $(HOME)\_gvimrc
|
||||||
cp vim-pathogen/autoload/pathogen.vim $(HOME)\vimfiles\autoload
|
|
||||||
|
|
||||||
VIM_PATHOGEN_DIR = $(HOME)\vimfiles\bundle
|
VIM_BUNDLE_DIR = $(HOME)/vimfiles/bundle
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
@ -23,25 +22,17 @@ install-conf: $(FILES)
|
|||||||
mkdir -p ~/.ssh ~/.vim/autoload
|
mkdir -p ~/.ssh ~/.vim/autoload
|
||||||
for i in $(FILES); do install -m0644 $$i ~/.$$i; done
|
for i in $(FILES); do install -m0644 $$i ~/.$$i; done
|
||||||
for i in $(FILES2); do install -m0600 $$i ~/.$$i; done
|
for i in $(FILES2); do install -m0600 $$i ~/.$$i; done
|
||||||
install -m0644 vim-pathogen/autoload/pathogen.vim ~/.vim/autoload/
|
|
||||||
|
|
||||||
check: $(FILES)
|
check: $(FILES)
|
||||||
for i in $(FILES); do diff -u ~/.$$i $$i; done
|
for i in $(FILES); do diff -u ~/.$$i $$i; done
|
||||||
|
|
||||||
VIM_PATHOGEN_DIR = $(HOME)/.vim/bundle
|
VIM_BUNDLE_DIR = $(HOME)/.vim/bundle
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
vim_inst_bundle = cd $(subst \,/,$(VIM_PATHOGEN_DIR)) && if cd $(1); then git pull; else git clone $(2); fi
|
install-vim-vundle:
|
||||||
|
mkdir -p $(VIM_BUNDLE_DIR)
|
||||||
install-vim-pathogen:
|
test -d $(VIM_BUNDLE_DIR)/vundle || git clone https://github.com/gmarik/vundle.git $(VIM_BUNDLE_DIR)/vundle
|
||||||
mkdir -p $(VIM_PATHOGEN_DIR)
|
|
||||||
$(call vim_inst_bundle, vim-sensible, https://github.com/tpope/vim-sensible.git)
|
|
||||||
$(call vim_inst_bundle, jellybeans.vim, https://github.com/nanotech/jellybeans.vim.git)
|
|
||||||
$(call vim_inst_bundle, vim-coffee-script, https://github.com/kchmck/vim-coffee-script.git)
|
|
||||||
$(call vim_inst_bundle, vim-airline, https://github.com/bling/vim-airline.git)
|
|
||||||
$(call vim_inst_bundle, tagbar, https://github.com/majutsushi/tagbar.git)
|
|
||||||
$(call vim_inst_bundle, YouCompleteMe, https://github.com/Valloric/YouCompleteMe.git)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
Subproject commit f1926ab6731cb1877160ff94d01ea644d257076e
|
|
23
vimrc
23
vimrc
@ -1,3 +1,24 @@
|
|||||||
|
se nocompatible
|
||||||
|
filetype off
|
||||||
|
|
||||||
|
se rtp+=~/.vim/bundle/vundle
|
||||||
|
call vundle#rc()
|
||||||
|
|
||||||
|
Bundle 'gmarik/vundle'
|
||||||
|
|
||||||
|
Bundle 'tpope/vim-sensible'
|
||||||
|
|
||||||
|
Bundle 'Valloric/YouCompleteMe'
|
||||||
|
|
||||||
|
Bundle 'nanotech/jellybeans.vim'
|
||||||
|
Bundle 'majutsushi/tagbar'
|
||||||
|
Bundle 'bling/vim-airline'
|
||||||
|
|
||||||
|
Bundle 'kchmck/vim-coffee-script'
|
||||||
|
Bundle 'ledger/vim-ledger'
|
||||||
|
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
set tw=0 expandtab ts=8 sts=2 sw=2 sm ai si
|
set tw=0 expandtab ts=8 sts=2 sw=2 sm ai si
|
||||||
set ml mls=5 " scan 5 lines for modelines
|
set ml mls=5 " scan 5 lines for modelines
|
||||||
syn on " enable syntax highlighting
|
syn on " enable syntax highlighting
|
||||||
@ -15,8 +36,6 @@ au BufNewFile,BufRead *.factor set ft=factor
|
|||||||
au BufNewFile,BufRead Gemfile set ft=ruby
|
au BufNewFile,BufRead Gemfile set ft=ruby
|
||||||
au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))
|
au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))
|
||||||
|
|
||||||
execute pathogen#infect()
|
|
||||||
|
|
||||||
set vb " turn on the "visual bell" - which is much quieter than the "audio blink"
|
set vb " turn on the "visual bell" - which is much quieter than the "audio blink"
|
||||||
set nobackup
|
set nobackup
|
||||||
se bs=2
|
se bs=2
|
||||||
|
Loading…
Reference in New Issue
Block a user