Created
November 6, 2015 22:42
-
-
Save camwhite/7c609ecb3860b0430dd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"" | |
"" Janus setup | |
"" | |
" Define paths | |
let g:janus_path = escape(fnamemodify(resolve(expand("<sfile>:p")), ":h"), ' ') | |
let g:janus_vim_path = escape(fnamemodify(resolve(expand("<sfile>:p" . "vim")), ":h"), ' ') | |
let g:janus_custom_path = expand("~/.janus") | |
" Source janus's core | |
exe 'source ' . g:janus_vim_path . '/core/before/plugin/janus.vim' | |
" You should note that groups will be processed by Pathogen in reverse | |
" order they were added. | |
call janus#add_group("tools") | |
call janus#add_group("langs") | |
call janus#add_group("colors") | |
"" | |
"" Customisations | |
"" | |
" clear search highlight temporariliy, but do not disable hlsearch | |
map <M-BS> :nohls<CR> | |
map <C-h> <C-w>h | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
inoremap jj <ESC> | |
inoremap jk <ESC> | |
inoremap fd <ESC> | |
if filereadable(expand("~/.vimrc.before")) | |
source ~/.vimrc.before | |
endif | |
" Disable plugins prior to loading pathogen | |
exe 'source ' . g:janus_vim_path . '/core/plugins.vim' | |
"" | |
"" Pathogen setup | |
"" | |
" Load all groups, custom dir, and janus core | |
call janus#load_pathogen() | |
" .vimrc.after is loaded after the plugins have loaded | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
set runtimepath^=~/.vim/bundle/vim-jade | |
set runtimepath^=~/.vim/bundle/vim-indent-guides | |
set runtimepath^=~/.vim/bundle/vim-airline | |
set runtimepath^=~/.vim/bundle/typescript-vim | |
set runtimepath^=~/.vim/bundle/vimproc.vim | |
set runtimepath^=~/.vim/bundle/tsuquyomi | |
set runtimepath^=~/.vim/bundle/auto-pairs | |
set runtimepath^=~/.vim/bundle/vim-gitgutter | |
set runtimepath^=~/.vim/bundle/vim-fugitive | |
set runtimepath^=~/.vim/bundle/gist-vim | |
set guioptions-=L | |
set guioptions-=r | |
set guifont=Inconsolata-dz\ for\ Powerline | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline#extensions#branch#enabled = 1 | |
let g:airline_powerline_fonts = 1 | |
if strftime("%H") > 8 && strftime("%H") < 19 | |
let g:solarized_contrast="high" | |
syntax enable | |
set background=light | |
colorscheme solarized | |
let g:airline_theme='badwolf' | |
else | |
colorscheme molokai | |
let g:airline_theme='simple' | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment