Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
95 lines (79 sloc) 2.42 KB
" =========================================
" PLUGINS
" =========================================
" supertab
let g:SuperTabCrMapping = 0
let g:SuperTabCompletionContexts = ['s:ContextText', 's:ContextDiscover']
let g:SuperTabContextTextOmniPrecedence = ['&omnifunc', '&completefunc']
let g:SuperTabContextDiscoverDiscovery = ["&completefunc:<c-x><c-u>", "&omnifunc:<c-x><c-o>"]
" rgrep
map <leader>f :Rgrep<CR>
au FileType qf nmap <buffer> <cr> <cr><c-w><c-p>
let Grep_Skip_Files = '*.bak *~ *tags *.log *.orig'
let Grep_Skip_Dirs = '.git'
" airline
let g:airline_powerline_fonts = 1
" let g:airline_theme = 'powerlineish'
let g:airline_theme = 'base16'
set laststatus=2
" GitGutter
let g:gitgutter_eager = 0
let g:gitgutter_enabled = 1
autocmd BufWritePost * exe 'GitGutter'
" Ctrlp
map <leader>t :CtrlPMixed<CR>
let g:ctrlp_max_files = 0
"The_NERD_tree
augroup ps_nerdtree
au!
au Filetype nerdtree setlocal nolist
" au Filetype nerdtree nnoremap <buffer> K :q<cr>
augroup END
let NERDTreeHighlightCursorline = 1
let NERDTreeIgnore = ['\~$', '.*\.pyc$', 'pip-log\.txt$', 'whoosh_index',
\ 'xapian_index', '.*.pid', 'monitor.py', '.*-fixtures-.*.json',
\ '.*\.o$', 'db.db', 'tags.bak']
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1
let NERDChristmasTree = 1
let NERDTreeChDirMode = 2
let NERDTreeMapJumpFirstChild = 'gK'
" increment-activator
let g:increment_activator_filetype_candidates = {
\ '_' : [
\ ['info', 'warning', 'notice', 'error'],
\ ['current', 'next', 'previous'],
\ ['primary', 'secondary', 'tertiary'],
\ ['red', 'green', 'blue'],
\ ['if', 'else'],
\ ],
\ }
" =========================================
" OTHER HACKS
" =========================================
" Remember last location in file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal g'\"" | endif
endif
" " Autoreload VIM config
" if has("autocmd")
" autocmd BufWritePost *vimrc source $MYVIMRC
" endif
" Remove whitespaces on save
autocmd BufWritePre * :%s/\s\+$//e
if !has('gui_running')
set ttimeoutlen=10
augroup FastEscape
autocmd!
au InsertEnter * set timeoutlen=0
au InsertLeave * set timeoutlen=1000
augroup END
endif
" vim-easymotion
" let g:EasyMotion_smartcase = 1
" " Gif config
" map / <Plug>(easymotion-sn)
" omap / <Plug>(easymotion-tn)
" map n <Plug>(easymotion-next)
" map N <Plug>(easymotion-prev)
Something went wrong with that request. Please try again.