mirror of
https://github.com/amix/vimrc
synced 2025-09-18 02:25:01 +08:00
Initial commit
This commit is contained in:
84
vimrcs/plugins_config.vim
Normal file
84
vimrcs/plugins_config.vim
Normal file
@ -0,0 +1,84 @@
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Important:
|
||||
" This requries that you install https://github.com/amix/vimrc !
|
||||
"
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""
|
||||
" => Load pathogen paths
|
||||
""""""""""""""""""""""""""""""
|
||||
call pathogen#infect('~/.vim_runtime/sources_plugins')
|
||||
call pathogen#infect('~/.vim_runtime/sources_forked')
|
||||
call pathogen#infect('~/.vim_runtime/sources_colors')
|
||||
call pathogen#infect('~/.vim_runtime/sources_misc')
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""
|
||||
" => 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")
|
||||
let g:yankring_history_dir = '~/_vim_runtime/temp_dirs/'
|
||||
else
|
||||
let g:yankring_history_dir = '~/.vim_runtime/temp_dirs/'
|
||||
endif
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""
|
||||
" => CTRL-P
|
||||
""""""""""""""""""""""""""""""
|
||||
let g:ctrlp_working_path_mode = 0
|
||||
let g:ctrlp_map = '<c-f>'
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""
|
||||
" => 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
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
au FileType mako vmap <buffer> Si S"i${ _(<esc>2f"a) }<esc>
|
||||
vmap Si S)i_<esc>f)
|
Reference in New Issue
Block a user