Skip to content

Instantly share code, notes, and snippets.

@ataki
Created June 26, 2014 02:03
Show Gist options
  • Save ataki/16474addc5b5f0bc183a to your computer and use it in GitHub Desktop.
Save ataki/16474addc5b5f0bc183a to your computer and use it in GitHub Desktop.
""
"" 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
""
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
" Tab thru buffers
:nnoremap <Tab> :bnext<CR>
:nnoremap <S-Tab> :bprevious<CR>
set number
set wrapscan
set linespace=2
set guifont=menlo:h11
colorscheme solarized
set background=dark
" set foldmethod=indent
" set foldlevel=8
syntax enable
syntax on
set nonu
set hlsearch
set incsearch
set ignorecase
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_
autocmd FileType nerdtree cnoreabbrev <buffer> bd <nop>
set tabstop=2
set shiftwidth=2
set expandtab
set softtabstop=2
set exrc
set secure
set runtimepath^=~/.vim/bundle/ctrlp.vim
set runtimepath^=~/.vim/bundle/nerdtree
" autocmd vimenter * NERDTree
" autocmd Filetype java set makeprg=javac\ %
" set errorformat=%A%f:%l:\ %m,%-Z%p^,%-C%.%#
" map <F9> :make<Return>:copen<Return>
" map <F10> :cprevious<Return>
" map <F11> :cnext<Return>
" autocmd BufRead *.java set efm=%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%#
" autocmd BufRead set makeprg=ant\ -find\ build.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment