2012-05-29 20:12:10 +00:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" Important:
|
|
|
|
" This requries that you install https://github.com/amix/vimrc !
|
|
|
|
"
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => Load pathogen paths
|
|
|
|
""""""""""""""""""""""""""""""
|
2014-02-27 19:43:16 +00:00
|
|
|
call pathogen#infect('~/.vim_runtime/sources_forked/{}')
|
|
|
|
call pathogen#infect('~/.vim_runtime/sources_non_forked/{}')
|
2012-05-29 21:32:24 +00:00
|
|
|
call pathogen#helptags()
|
2012-05-29 20:12:10 +00:00
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => bufExplorer plugin
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
let g:bufExplorerDefaultHelp=0
|
|
|
|
let g:bufExplorerShowRelativePath=1
|
|
|
|
let g:bufExplorerFindActive=1
|
|
|
|
let g:bufExplorerSortBy='name'
|
|
|
|
map <leader>o :BufExplorer<cr>
|
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => MRU plugin
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
let MRU_Max_Entries = 400
|
|
|
|
map <leader>f :MRU<CR>
|
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => YankRing
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
if has("win16") || has("win32")
|
2012-05-30 16:54:47 +00:00
|
|
|
" Don't do anything
|
2012-05-29 20:12:10 +00:00
|
|
|
else
|
2012-05-30 16:31:10 +00:00
|
|
|
let g:yankring_history_dir = '~/.vim_runtime/temp_dirs/'
|
2012-05-29 20:12:10 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => CTRL-P
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
let g:ctrlp_working_path_mode = 0
|
2012-08-16 02:29:05 +00:00
|
|
|
|
2012-05-29 20:12:10 +00:00
|
|
|
let g:ctrlp_map = '<c-f>'
|
2014-04-18 12:52:50 +00:00
|
|
|
map <leader>j :CtrlP<cr>
|
2012-08-16 02:29:05 +00:00
|
|
|
map <c-b> :CtrlPBuffer<cr>
|
|
|
|
|
|
|
|
let g:ctrlp_max_height = 20
|
|
|
|
let g:ctrlp_custom_ignore = 'node_modules\|^\.DS_Store\|^\.git\|^\.coffee'
|
2012-05-29 20:12:10 +00:00
|
|
|
|
|
|
|
|
2013-04-13 17:45:21 +00:00
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => ZenCoding
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" Enable all functions in all modes
|
|
|
|
let g:user_zen_mode='a'
|
|
|
|
|
|
|
|
|
2012-05-29 20:12:10 +00:00
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => snipMate (beside <TAB> support <CTRL-j>)
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
ino <c-j> <c-r>=snipMate#TriggerSnippet()<cr>
|
|
|
|
snor <c-j> <esc>i<right><c-r>=snipMate#TriggerSnippet()<cr>
|
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => Vim grep
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
let Grep_Skip_Dirs = 'RCS CVS SCCS .svn generated'
|
|
|
|
set grepprg=/bin/grep\ -nH
|
|
|
|
|
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => Nerd Tree
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
2015-02-13 00:19:27 +00:00
|
|
|
let g:NERDTreeWinPos = "right"
|
2015-07-13 10:38:38 +00:00
|
|
|
let NERDTreeShowHidden=0
|
|
|
|
let NERDTreeIgnore = ['\.pyc$', '__pycache__']
|
2015-02-24 10:45:22 +00:00
|
|
|
let g:NERDTreeWinSize=35
|
2012-05-29 20:12:10 +00:00
|
|
|
map <leader>nn :NERDTreeToggle<cr>
|
|
|
|
map <leader>nb :NERDTreeFromBookmark
|
|
|
|
map <leader>nf :NERDTreeFind<cr>
|
|
|
|
|
|
|
|
|
2013-04-14 15:48:31 +00:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => vim-multiple-cursors
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
2013-04-16 13:27:16 +00:00
|
|
|
let g:multi_cursor_next_key="\<C-s>"
|
2013-04-14 15:48:31 +00:00
|
|
|
|
|
|
|
|
2012-05-29 20:12:10 +00:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => surround.vim config
|
|
|
|
" Annotate strings with gettext http://amix.dk/blog/post/19678
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
2012-08-16 02:29:05 +00:00
|
|
|
vmap Si S(i_<esc>f)
|
|
|
|
au FileType mako vmap Si S"i${ _(<esc>2f"a) }<esc>
|
2013-11-16 19:45:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => vim-airline config (force color)
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
let g:airline_theme="luna"
|
2013-12-28 18:23:13 +00:00
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => Vimroom
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
2013-12-29 10:37:14 +00:00
|
|
|
let g:goyo_width=100
|
2014-01-07 00:25:41 +00:00
|
|
|
let g:goyo_margin_top = 2
|
|
|
|
let g:goyo_margin_bottom = 2
|
2013-12-29 10:37:14 +00:00
|
|
|
nnoremap <silent> <leader>z :Goyo<cr>
|
2014-02-08 10:05:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => Syntastic (syntax checker)
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
let g:syntastic_python_checkers=['pyflakes']
|
2015-07-13 10:21:10 +00:00
|
|
|
let g:syntastic_javascript_checkers = ['jshint']
|
|
|
|
|
|
|
|
" Custom CoffeeScript SyntasticCheck
|
|
|
|
func! SyntasticCheckCoffeescript()
|
|
|
|
let l:filename = substitute(expand("%:p"), '\(\w\+\)\.coffee', '.coffee.\1.js', '')
|
2015-12-08 13:19:59 +00:00
|
|
|
execute "tabedit " . l:filename
|
2015-07-13 10:21:10 +00:00
|
|
|
execute "SyntasticCheck"
|
|
|
|
execute "Errors"
|
|
|
|
endfunc
|
|
|
|
nnoremap <silent> <leader>l :call SyntasticCheckCoffeescript()<cr>
|
2015-07-13 10:42:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => Git gutter (Git diff)
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
let g:gitgutter_enabled=0
|
|
|
|
nnoremap <silent> <leader>d :GitGutterToggle<cr>
|