-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Unite : A Plugin to rule them all #531
base: 3.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,6 +397,18 @@ | |
|
||
" Plugins { | ||
|
||
" Unite { | ||
" There might be some keybinding conflicts with others plugins use with | ||
" caution. To use async and grep search You need vimproc to be loaded. | ||
nnoremap <C-p> :<C-u>Unite -no-split -buffer-name=files -start-insert file<cr> | ||
nnoremap <leader>f :<C-u>Unite -no-split -buffer-name=files -start-insert file_rec/async<cr> | ||
nnoremap <leader>r :<C-u>Unite -no-split -buffer-name=mru -start-insert file_mru<cr> | ||
nnoremap <leader>o :<C-u>Unite -no-split -buffer-name=outline -start-insert outline<cr> | ||
nnoremap <leader>t :<C-u>Unite -no-split -buffer-name=yank history/yank<cr> | ||
nnoremap <leader>e :<C-u>Unite -no-split -buffer-name=buffer buffer<cr> | ||
nnoremap <leader>g :<C-u>Unite -no-split grep:.<cr> | ||
" } | ||
|
||
" PIV { | ||
let g:DisableAutoPHPFolding = 0 | ||
let g:PIVAutoClose = 0 | ||
|
@@ -504,49 +516,53 @@ | |
" } | ||
|
||
" ctrlp { | ||
let g:ctrlp_working_path_mode = 'ra' | ||
nnoremap <silent> <D-t> :CtrlP<CR> | ||
nnoremap <silent> <D-r> :CtrlPMRU<CR> | ||
let g:ctrlp_custom_ignore = { | ||
\ 'dir': '\.git$\|\.hg$\|\.svn$', | ||
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' } | ||
|
||
" On Windows use "dir" as fallback command. | ||
if WINDOWS() | ||
let s:ctrlp_fallback = 'dir %s /-n /b /s /a-d' | ||
elseif executable('ag') | ||
let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""' | ||
elseif executable('ack') | ||
let s:ctrlp_fallback = 'ack %s --nocolor -f' | ||
else | ||
let s:ctrlp_fallback = 'find %s -type f' | ||
if count(g:spf13_bundle_groups, 'unite') | ||
let g:ctrlp_working_path_mode = 'ra' | ||
nnoremap <silent> <D-t> :CtrlP<CR> | ||
nnoremap <silent> <D-r> :CtrlPMRU<CR> | ||
let g:ctrlp_custom_ignore = { | ||
\ 'dir': '\.git$\|\.hg$\|\.svn$', | ||
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' } | ||
|
||
" On Windows use "dir" as fallback command. | ||
if WINDOWS() | ||
let s:ctrlp_fallback = 'dir %s /-n /b /s /a-d' | ||
elseif executable('ag') | ||
let s:ctrlp_fallback = 'ag %s --nocolor -l -g ""' | ||
elseif executable('ack') | ||
let s:ctrlp_fallback = 'ack %s --nocolor -f' | ||
else | ||
let s:ctrlp_fallback = 'find %s -type f' | ||
endif | ||
let g:ctrlp_user_command = { | ||
\ 'types': { | ||
\ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'], | ||
\ 2: ['.hg', 'hg --cwd %s locate -I .'], | ||
\ }, | ||
\ 'fallback': s:ctrlp_fallback | ||
\ } | ||
endif | ||
let g:ctrlp_user_command = { | ||
\ 'types': { | ||
\ 1: ['.git', 'cd %s && git ls-files . --cached --exclude-standard --others'], | ||
\ 2: ['.hg', 'hg --cwd %s locate -I .'], | ||
\ }, | ||
\ 'fallback': s:ctrlp_fallback | ||
\ } | ||
"} | ||
|
||
" TagBar { | ||
nnoremap <silent> <leader>tt :TagbarToggle<CR> | ||
|
||
" If using go please install the gotags program using the following | ||
" go install github.com/jstemmer/gotags | ||
" And make sure gotags is in your path | ||
let g:tagbar_type_go = { | ||
\ 'ctagstype' : 'go', | ||
\ 'kinds' : [ 'p:package', 'i:imports:1', 'c:constants', 'v:variables', | ||
\ 't:types', 'n:interfaces', 'w:fields', 'e:embedded', 'm:methods', | ||
\ 'r:constructor', 'f:functions' ], | ||
\ 'sro' : '.', | ||
\ 'kind2scope' : { 't' : 'ctype', 'n' : 'ntype' }, | ||
\ 'scope2kind' : { 'ctype' : 't', 'ntype' : 'n' }, | ||
\ 'ctagsbin' : 'gotags', | ||
\ 'ctagsargs' : '-sort -silent' | ||
\ } | ||
if count(g:spf13_bundle_groups, 'unite') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Backwards? Is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. unite-outline can do like that. https://github.com/Shougo/unite-outline But it may be not replacement. |
||
nnoremap <silent> <leader>tt :TagbarToggle<CR> | ||
|
||
" If using go please install the gotags program using the following | ||
" go install github.com/jstemmer/gotags | ||
" And make sure gotags is in your path | ||
let g:tagbar_type_go = { | ||
\ 'ctagstype' : 'go', | ||
\ 'kinds' : [ 'p:package', 'i:imports:1', 'c:constants', 'v:variables', | ||
\ 't:types', 'n:interfaces', 'w:fields', 'e:embedded', 'm:methods', | ||
\ 'r:constructor', 'f:functions' ], | ||
\ 'sro' : '.', | ||
\ 'kind2scope' : { 't' : 'ctype', 'n' : 'ntype' }, | ||
\ 'scope2kind' : { 'ctype' : 't', 'ntype' : 'n' }, | ||
\ 'ctagsbin' : 'gotags', | ||
\ 'ctagsargs' : '-sort -silent' | ||
\ } | ||
endif | ||
"} | ||
|
||
" PythonMode { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ | |
" In your .vimrc.before.local file | ||
" list only the plugin groups you will use | ||
if !exists('g:spf13_bundle_groups') | ||
let g:spf13_bundle_groups=['general', 'neocomplcache', 'programming', 'php', 'ruby', 'python', 'go', 'twig', 'javascript', 'haskell', 'html', 'misc', 'scala'] | ||
let g:spf13_bundle_groups=['general', 'neocomplcache', 'unite', 'programming', 'php', 'ruby', 'python', 'go', 'twig', 'javascript', 'haskell', 'html', 'misc', 'scala'] | ||
endif | ||
|
||
" To override all the included bundles, add the following to your | ||
|
@@ -101,12 +101,15 @@ | |
|
||
" General { | ||
if count(g:spf13_bundle_groups, 'general') | ||
Bundle 'scrooloose/nerdtree' | ||
if count(g:spf13_bundle_groups, 'unite') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these conditionals backwards? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think vimfiler is replacement for nerdtree instead unite. https://github.com/Shougo/vimfiler.vim But vimfiler depends on unite. |
||
Bundle 'scrooloose/nerdtree' | ||
Bundle 'kien/ctrlp.vim' | ||
Bundle 'jistr/vim-nerdtree-tabs' | ||
endif | ||
Bundle 'altercation/vim-colors-solarized' | ||
Bundle 'spf13/vim-colors' | ||
Bundle 'tpope/vim-surround' | ||
Bundle 'spf13/vim-autoclose' | ||
Bundle 'kien/ctrlp.vim' | ||
Bundle 'terryma/vim-multiple-cursors' | ||
Bundle 'vim-scripts/sessionman.vim' | ||
Bundle 'matchit.zip' | ||
|
@@ -120,7 +123,6 @@ | |
Bundle 'bling/vim-bufferline' | ||
Bundle 'Lokaltog/vim-easymotion' | ||
Bundle 'godlygeek/csapprox' | ||
Bundle 'jistr/vim-nerdtree-tabs' | ||
Bundle 'flazz/vim-colorschemes' | ||
Bundle 'mbbill/undotree' | ||
Bundle 'nathanaelkane/vim-indent-guides' | ||
|
@@ -171,6 +173,12 @@ | |
endif | ||
" } | ||
|
||
" Unite { | ||
if count(g:spf13_bundle_groups, 'unite') | ||
Bundle 'Shougo/unite.vim' | ||
Bundle 'Shougo/vimproc' | ||
endif | ||
" } | ||
" PHP { | ||
if count(g:spf13_bundle_groups, 'php') | ||
Bundle 'spf13/PIV' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please wrap these in a conditional and add it to
.vimrc.before
. It's really really annoying to have a new plugin obliterate all of your mappings.