""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Important: " This requries that you install https://github.com/amix/vimrc ! " """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""" " => Load pathogen paths """""""""""""""""""""""""""""" call pathogen#infect('~/.vim/sources_forked/{}') call pathogen#infect('~/.vim/bundle/{}') call pathogen#helptags() """""""""""""""""""""""""""""" " => bufExplorer plugin """""""""""""""""""""""""""""" let g:bufExplorerDefaultHelp=0 let g:bufExplorerShowRelativePath=1 let g:bufExplorerFindActive=1 let g:bufExplorerSortBy='name' map o :BufExplorer """""""""""""""""""""""""""""" " => MRU plugin """""""""""""""""""""""""""""" let MRU_Max_Entries = 400 map f :MRU """""""""""""""""""""""""""""" " => YankRing """""""""""""""""""""""""""""" if has("win16") || has("win32") " Don't do anything else let g:yankring_history_dir = '~/.vim/temp_dirs/' endif """""""""""""""""""""""""""""" " => CTRL-P """""""""""""""""""""""""""""" let g:ctrlp_working_path_mode = 0 let g:ctrlp_map = '' map j :CtrlP map :CtrlPBuffer let g:ctrlp_max_height = 20 let g:ctrlp_custom_ignore = 'node_modules\|^\.DS_Store\|^\.git\|^\.coffee' """""""""""""""""""""""""""""" " => ZenCoding """""""""""""""""""""""""""""" " Enable all functions in all modes let g:user_zen_mode='a' """""""""""""""""""""""""""""" " => snipMate (beside support ) """""""""""""""""""""""""""""" ino =snipMate#TriggerSnippet() snor i=snipMate#TriggerSnippet() """""""""""""""""""""""""""""" " => Vim grep """""""""""""""""""""""""""""" let Grep_Skip_Dirs = 'RCS CVS SCCS .git .svn generated' set grepprg=/bin/grep\ -nH """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Nerd Tree """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" map nn :NERDTreeToggle map nb :NERDTreeFromBookmark map nf :NERDTreeFind """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => vim-multiple-cursors """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:multi_cursor_next_key="\" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => surround.vim config " Annotate strings with gettext http://amix.dk/blog/post/19678 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" vmap Si S(i_f) au FileType mako vmap Si S"i${ _(2f"a) } """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => vim-airline config (force color) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:airline_theme="wombat" let g:airline_left_sep = '' let g:airline_left_alt_sep = '' let g:airline_right_sep = '' let g:airline_right_alt_sep = '' let g:airline_symbols = {} let g:airline_symbols.branch = '' let g:airline_symbols.readonly = '' let g:airline_symbols.linenr = '' """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Vimroom """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:goyo_width=100 let g:goyo_margin_top = 2 let g:goyo_margin_bottom = 2 nnoremap z :Goyo """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Syntastic (syntax checker) """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:syntastic_python_checkers=['pyflakes'] """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => vim-ag aka The Silver Searcher """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" if executable('ag') " Use ag over grep set grepprg=ag\ --nogroup\ --nocolor " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' " ag is fast enough that CtrlP doesn't need to cache let g:ctrlp_use_caching = 0 endif " bind K to grep word under cursor nnoremap K :grep! "\b\b":cw " bind \ (backward slash) to grep shortcut command -nargs=+ -complete=file -bar Ag silent! grep! |cwindow|redraw! nnoremap \ :Ag """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => vim-zoomwin """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" map :ZoomWin """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => vim-to-github """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:to_github_clip_command = 'pbcopy' let g:to_github_clipboard = 1 map gh :ToGithub