Created
April 28, 2016 16:51
-
-
Save kamal-github/2efc124c1a95ffa979a1fcc72878301c 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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-rails' | |
Plugin 'tpope/vim-eunuch' | |
Plugin 'tomtom/tcomment_vim' | |
Plugin 'wikitopian/hardmode' | |
Plugin 'thoughtbot/vim-rspec' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'gregsexton/gitv' | |
Plugin 'tpope/vim-endwise' | |
Plugin 'garbas/vim-snipmate' | |
Plugin 'jiangmiao/auto-pairs' | |
Plugin 'vim-scripts/tComment' | |
Plugin 'nathanaelkane/vim-indent-guides' | |
Plugin 'bling/vim-airline' | |
Plugin 'ngmy/vim-rubocop' | |
call vundle#end() | |
filetype plugin indent on " required | |
" vundle setup end | |
" for hard mode disable hjkl anf arrow keys | |
" | |
"autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode() | |
"For folding section - mapped to space key for individial - @kamal | |
"set foldmethod=syntax | |
":nnoremap <Space> za | |
"set foldcolumn=2 | |
set textwidth=80 | |
set colorcolumn=+1 | |
:nnoremap <C-y> "+y | |
:vnoremap <C-y> "+y | |
:nnoremap :te :tabedit | |
:nnoremap :nt :NERDTree | |
" | |
" RSpec.vim mappings | |
map <Leader>t :call RunCurrentSpecFile()<CR> | |
map <Leader>s :call RunNearestSpec()<CR> | |
map <Leader>l :call RunLastSpec()<CR> | |
map <Leader>a :call RunAllSpecs()<CR> | |
"" | |
"" Janus setup | |
"" | |
" Define paths | |
if has('win32') || has('win64') || has('win32unix') | |
let g:janus_path = expand("~/.vim/janus/vim") | |
let g:janus_vim_path = expand("~/.vim/janus/vim") | |
else | |
let g:janus_path = escape(fnamemodify(resolve(expand("<sfile>:p")), ":h"), ' ') | |
let g:janus_vim_path = escape(fnamemodify(resolve(expand("<sfile>:p" . "vim")), ":h"), ' ') | |
endif | |
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() | |
set guifont=Monaco:h16 | |
syntax enable | |
set background=dark | |
colorscheme solarized | |
" .vimrc.after is loaded after the plugins have loaded | |
" ag-vim for faster search | |
set runtimepath^=~/.vim/bundle/ag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment