Skip to content

Commit

Permalink
Begin refactoring into layers
Browse files Browse the repository at this point in the history
  • Loading branch information
jeaye committed Jun 4, 2016
1 parent a782374 commit 0030e7e
Show file tree
Hide file tree
Showing 46 changed files with 40 additions and 54 deletions.
20 changes: 0 additions & 20 deletions config/neobundle.vim

This file was deleted.

File renamed without changes.
Empty file added layer/airline/package.vim
Empty file.
File renamed without changes.
Empty file added layer/buffer/package.vim
Empty file.
File renamed without changes.
Empty file added layer/c++/package.vim
Empty file.
File renamed without changes.
Empty file added layer/clojure/package.vim
Empty file.
File renamed without changes.
Empty file added layer/color/package.vim
Empty file.
File renamed without changes.
Empty file added layer/color_coded/package.vim
Empty file.
File renamed without changes.
Empty file added layer/completion/package.vim
Empty file.
File renamed without changes.
Empty file added layer/debug/package.vim
Empty file.
File renamed without changes.
Empty file added layer/f-sharp/package.vim
Empty file.
File renamed without changes.
Empty file added layer/git/package.vim
Empty file.
File renamed without changes.
Empty file added layer/indent/package.vim
Empty file.
File renamed without changes.
Empty file added layer/jank/package.vim
Empty file.
File renamed without changes.
Empty file added layer/lisp/package.vim
Empty file.
File renamed without changes.
Empty file added layer/markdown/package.vim
Empty file.
File renamed without changes.
Empty file added layer/motion/package.vim
Empty file.
File renamed without changes.
Empty file added layer/mutt/package.vim
Empty file.
38 changes: 38 additions & 0 deletions layer/neobundle/config.vim
@@ -0,0 +1,38 @@
" Install NeoBundle, if it doesn't exist
" Credit: https://github.com/tony/vim-config
"let neobundle_readme=expand('~/.vim/bundle/neobundle.vim/README.md')
"if !filereadable(neobundle_readme)
" echo "Installing neobundle.vim"
" echo ""
" silent !mkdir -p ~/.vim/bundle
" silent !git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim
"endif

if has('vim_starting')
set runtimepath+=~/.vim/dein/repos/github.com/Shougo/dein.vim
"set runtimepath+=~/.vim/bundle/neobundle.vim/
endif

"call neobundle#begin(expand('~/.vim/bundle/'))
" NeoBundleFetch 'Shougo/neobundle.vim'
"call neobundle#end()

" Give big plugins a while to install
"let g:neobundle#install_process_timeout = 1500

call dein#begin(expand('~/.vim/dein'))
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/vimproc.vim', {
\ 'build': {
\ 'mac': 'make -f make_mac.mak',
\ 'linux': 'make',
\ 'unix': 'gmake',
\ },
\ })

let files = globpath($HOME . "/.vim/config", "**/package.vim")
for f in split(files, "\n")
echom "Loading layer" f
exe "source" f
endfor
call dein#end()
Empty file added layer/neobundle/package.vim
Empty file.
File renamed without changes.
Empty file added layer/nix/package.vim
Empty file.
File renamed without changes.
Empty file added layer/save/package.vim
Empty file.
File renamed without changes.
Empty file added layer/search/package.vim
Empty file.
File renamed without changes.
Empty file added layer/shell/package.vim
Empty file.
File renamed without changes.
Empty file added layer/ui/package.vim
Empty file.
36 changes: 2 additions & 34 deletions vimrc
Expand Up @@ -5,40 +5,8 @@ set nocompatible

let g:hostname = substitute(system('hostname'), "\n", "", "")
let g:lightweight = g:hostname == "nixums"
let g:python_host_prog='/usr/bin/python'
let g:python_host_prog='/usr/bin/python' " TODO: neovim layer

source $HOME/.vim/config/debug.vim
source $HOME/.vim/config/neobundle.vim
source $HOME/.vim/config/color.vim
source $HOME/.vim/config/ui.vim
source $HOME/.vim/config/indent.vim
source $HOME/.vim/config/save.vim
source $HOME/.vim/config/airline.vim
source $HOME/.vim/config/search.vim
source $HOME/.vim/config/motion.vim
source $HOME/.vim/config/git.vim
source $HOME/.vim/config/mutt.vim
source $HOME/.vim/config/jank.vim
source $HOME/.vim/config/markdown.vim
source $HOME/.vim/config/nix.vim
source $HOME/.vim/config/buffer.vim

if !g:lightweight
source $HOME/.vim/config/completion.vim
source $HOME/.vim/config/color_coded.vim
source $HOME/.vim/config/lisp.vim
source $HOME/.vim/config/clojure.vim
source $HOME/.vim/config/c++.vim
source $HOME/.vim/config/shell.vim
source $HOME/.vim/config/f-sharp.vim
endif

" Prompt to install missing bundles
NeoBundleCheck

if !has('vim_starting')
" Call on_source hook when reloading .vimrc.
call neobundle#call_hook('on_source')
endif
source $HOME/.vim/config/neobundle/config.vim

filetype plugin indent on

0 comments on commit 0030e7e

Please sign in to comment.