2012-05-29 16:12:10 -04:00
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" Important:
|
|
|
|
" This requries that you install https://github.com/amix/vimrc !
|
|
|
|
"
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => Load pathogen paths
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
call pathogen#infect('~/.vim_runtime/sources_forked')
|
2012-08-16 23:42:15 -04:00
|
|
|
call pathogen#infect('~/.vim_runtime/sources_non_forked')
|
2012-10-29 11:34:13 -04:00
|
|
|
call pathogen#infect('~/.vim_runtime/bundle')
|
2012-05-29 17:32:24 -04:00
|
|
|
call pathogen#helptags()
|
2012-05-29 16:12:10 -04: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 12:54:47 -04:00
|
|
|
" Don't do anything
|
2012-05-29 16:12:10 -04:00
|
|
|
else
|
2012-05-30 12:31:10 -04:00
|
|
|
let g:yankring_history_dir = '~/.vim_runtime/temp_dirs/'
|
2012-05-29 16:12:10 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => CTRL-P
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
let g:ctrlp_working_path_mode = 0
|
2012-08-15 22:29:05 -04:00
|
|
|
|
2012-05-29 16:12:10 -04:00
|
|
|
let g:ctrlp_map = '<c-f>'
|
2012-08-15 22:29:05 -04: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 16:12:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => Peepopen
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
map <leader>j :PeepOpen<cr>
|
|
|
|
|
|
|
|
|
|
|
|
""""""""""""""""""""""""""""""
|
|
|
|
" => 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
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
map <leader>nn :NERDTreeToggle<cr>
|
|
|
|
map <leader>nb :NERDTreeFromBookmark
|
|
|
|
map <leader>nf :NERDTreeFind<cr>
|
|
|
|
|
|
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
" => surround.vim config
|
|
|
|
" Annotate strings with gettext http://amix.dk/blog/post/19678
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
2012-08-15 22:29:05 -04:00
|
|
|
vmap Si S(i_<esc>f)
|
|
|
|
au FileType mako vmap Si S"i${ _(<esc>2f"a) }<esc>
|