Skip to content

Commit

Permalink
Avoid attempting to load Vim plugins multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
twe4ked committed Oct 15, 2014
1 parent 55d795f commit 757108e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions freshrc
Expand Up @@ -49,6 +49,10 @@ fresh zsh-users/zsh-syntax-highlighting highlighters/main/main-highlighter.zsh -
fresh zsh-users/zsh-syntax-highlighting highlighters/brackets/brackets-highlighter.zsh --file=vendor/highlighters/brackets/brackets-highlighter.zsh
fresh shell/zsh/zsh-syntax-highlighting.zsh --file=~/.zshrc

filter_vundle_lines() {
grep -v ^Bundle
}

# Vim
fresh-options --file=~/.vimrc --marker=\"
fresh vim/leader.vim
Expand All @@ -61,7 +65,7 @@ fresh-options --file=~/.vimrc --marker=\"
fresh vim/vimrc
fresh jasoncodes/dotfiles vim/mappings/indent.vim
fresh jasoncodes/dotfiles vim/mappings/pasteboard.vim
fresh jasoncodes/dotfiles vim/mappings/whitespace.vim
fresh jasoncodes/dotfiles vim/mappings/whitespace.vim --filter=filter_vundle_lines
fresh jasoncodes/dotfiles vim/config/undo.vim
fresh jasoncodes/dotfiles vim/config/tags.vim
fresh jasoncodes/dotfiles vim/config/marked.vim
Expand All @@ -70,11 +74,11 @@ fresh-options --file=~/.vimrc --marker=\"
fresh jasoncodes/dotfiles vim/config/cursor.vim
fresh jasoncodes/dotfiles vim/config/bubbling.vim
fresh jasoncodes/dotfiles vim/functions.vim
fresh jasoncodes/dotfiles vim/plugins/ctrlp.vim
fresh jasoncodes/dotfiles vim/plugins/markdown.vim
fresh jasoncodes/dotfiles vim/plugins/ctrlp.vim --filter=filter_vundle_lines
fresh jasoncodes/dotfiles vim/plugins/markdown.vim --filter=filter_vundle_lines
# Ruby autocommands
fresh jasoncodes/dotfiles vim/plugins/ruby.vim --filter='sed -n 11,13p' --ref=da7d4a8
fresh hackling/dotfiles vim/plugins/surround.vim
fresh hackling/dotfiles vim/plugins/surround.vim --filter=filter_vundle_lines
fresh nathanaelkane/dotfiles vim/plugins/easymotion.vim
fresh hackling/dotfiles vim/keybindings/numpad.vim
fresh-options
Expand Down
1 change: 1 addition & 0 deletions vim/vundle.vim
Expand Up @@ -32,6 +32,7 @@ Bundle 'scrooloose/nerdtree'
Bundle 'kien/ctrlp.vim'
Bundle 'jasoncodes/ctrlp-modified.vim'
Bundle 'tacahiroy/ctrlp-funky'
Bundle 'ivalkeen/vim-ctrlp-tjump'
Bundle 'mileszs/ack.vim'

" Language
Expand Down

0 comments on commit 757108e

Please sign in to comment.