Create a gist now

Instantly share code, notes, and snippets.

@madssj /.vimrc
Last active Aug 29, 2015

What would you like to do?
Current .vimrc file
if has('vim_starting')
if &compatible
set nocompatible
endif
set runtimepath+=/Users/mads/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('/Users/mads/.vim/bundle'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'tpope/vim-surround'
NeoBundle 'tpope/vim-repeat'
NeoBundle 'tpope/vim-speeddating'
NeoBundle 'StanAngeloff/php.vim'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'Shougo/vimshell'
NeoBundle 'editorconfig/editorconfig-vim'
NeoBundle 'vim-scripts/Emmet.vim'
NeoBundle 'mattdbridges/bufkill.vim'
NeoBundle 'airblade/vim-gitgutter'
NeoBundle 'Yggdroot/indentLine'
NeoBundle 'zeis/vim-kolor'
NeoBundle 'rayburgemeestre/phpfolding.vim'
NeoBundle 'markcornick/vim-vagrant'
NeoBundle 'smerrill/vcl-vim-plugin'
NeoBundle 'terryma/vim-multiple-cursors'
NeoBundle 'groenewege/vim-less'
NeoBundle 'FelikZ/ctrlp-py-matcher'
NeoBundle 'Lokaltog/vim-easymotion'
NeoBundle 'terryma/vim-expand-region'
NeoBundle 'junegunn/seoul256.vim'
NeoBundle 'ludovicchabant/vim-gutentags'
NeoBundle 'Shougo/vimproc.vim', {
\ 'build' : {
\ 'windows' : 'tools\\update-dll-mingw',
\ 'cygwin' : 'make -f make_cygwin.mak',
\ 'mac' : 'make -f make_mac.mak',
\ 'linux' : 'make',
\ 'unix' : 'gmake',
\ },
\ }
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
if has("gui_running")
set guifont=Source\ Code\ Pro:h12
else
set t_Co=256
endif
syntax on
"colo solarized
set background=light
set hidden
set tabstop=4
set shiftwidth=4
set synmaxcol=128
set ttyfast
set lazyredraw
set backspace=eol,start,indent
set smarttab
set wildmode=list:longest,full
" remove traling whitespaces - http://vim.wikia.com/wiki/Remove_unwanted_spaces
autocmd FileType c,cpp,java,php,python autocmd BufWritePre <buffer> :%s/\s\+$//e
" speed up scrolling and editing large files
set scrolljump=15
syntax sync minlines=256
" Map ctrl-movement keys to window switching
map <C-k> <C-w><Up>
map <C-j> <C-w><Down>
map <C-l> <C-w><Right>
map <C-h> <C-w><Left>
" Switch to alternate file
map <C-Tab> :bnext<cr>
map <C-S-Tab> :bprevious<cr>
" Kill the buffer without closing window
map <C-d> :BD<cr>
nmap s <Plug>(easymotion-s2)
nmap t <Plug>(easymotion-t2)
map <Leader>l <Plug>(easymotion-lineforward)
map <Leader>j <Plug>(easymotion-j)
map <Leader>k <Plug>(easymotion-k)
map <Leader>h <Plug>(easymotion-linebackward)
let g:EasyMotion_startofline = 0 " keep cursor colum when JK motion
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'
let g:ctrlp_user_command = 'ag %s -i --nocolor --nogroup --hidden
\ --ignore .git
\ --ignore node_modules
\ --ignore .svn
\ --ignore .hg
\ --ignore .DS_Store
\ --ignore "**/*.pyc"
\ --ignore "**/*.swp"
\ --ignore "**/*.swo"
\ -g ""'
" Seems like a bug in gutentags #16
let g:gutentags_ctags_options_file = ''
let g:gutentags_options_file = ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment