Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use Unite : A Plugin to rule them all #531

Open
wants to merge 3 commits into from

9 participants

@damien-biasotto

It would be great to use @Shougo Unite.vim plugin (A wonderful plugin) which (easily) replace cltrp / ack / and NERDtree.

Beside Unite plugin is really extensible and has a plethora of plugins too (you can listen radio, browse your gist .., auto preview search file, etc ...).

Please think about it :)

@spf13
Owner
@damien-biasotto

As a proof of concept : https://github.com/damien-biasotto/spf13-vim (branch feature/unite)

What I Didn't do:

Check for keybindings conflict
Update read me
Test it (i do not have spf13 @ work)

Please forgive me, I will Update this branch and submit it as PR.

@spf13

This can't be right

Right sorry, I fixed it

@spf13

We will also need to check for unite around the plugins like ctrl+p that it duplicates functionality / conflicts with.

Yeah right, I 'll do that tonight, Thanks for feedback :)

@spf13
Owner
@perfectworks

:+1:

And the latest commit of ctrlp was commited at 6 months ago.

@johntyree johntyree commented on the diff
@@ -397,6 +397,18 @@
" Plugins {
+ " Unite {
+ " There might be some keybinding conflicts with others plugins use with
@johntyree Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@johntyree johntyree commented on the diff
.vimrc.bundles
@@ -101,12 +101,15 @@
" General {
if count(g:spf13_bundle_groups, 'general')
- Bundle 'scrooloose/nerdtree'
+ if count(g:spf13_bundle_groups, 'unite')
@johntyree Collaborator

Are these conditionals backwards?

@Shougo
Shougo added a note

I think vimfiler is replacement for nerdtree instead unite.
It has tree feature.

https://github.com/Shougo/vimfiler.vim

But vimfiler depends on unite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@johntyree johntyree commented on the diff
((57 lines not shown))
-
- " 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')
@johntyree Collaborator

Backwards? Is unite replacing TagBar or depending on it?

@Shougo
Shougo added a note

unite-outline can do like that.

https://github.com/Shougo/unite-outline

But it may be not replacement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@damien-biasotto

Since outline can list all methods it's almost a replacement (attributes are not displayed).
Thanks everyone for the feedback I will update my PR as soon as possible.

@spf13
Owner

@damien-biasotto How's this going? Let me know when you think it's ready to be merged.

@spf13
Owner

@damien-biasotto Do you think this is ready for merging?

@jrobeson
Collaborator

@damien-biasotto : are you still working on this?

@demon386

Is Anyone still pushing this forward?

@damien-biasotto

I recently recheck the branch I will take a look about vimfiler and apply John tyree feedback along this week.

@FiloSpaTeam

I implemented Unite.vim to have php extended plugins and fork.
Pull request open! :+1:

@leowzukw

Unite looks amazing :+1:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 17, 2014
  1. @damien-biasotto

    Add a unite group.

    damien-biasotto authored
  2. @damien-biasotto

    Fix typo

    damien-biasotto authored
Commits on Jan 24, 2014
This page is out of date. Refresh to see the latest.
Showing with 67 additions and 43 deletions.
  1. +55 −39 .vimrc
  2. +12 −4 .vimrc.bundles
View
94 .vimrc
@@ -397,6 +397,18 @@
" Plugins {
+ " Unite {
+ " There might be some keybinding conflicts with others plugins use with
@johntyree Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ " 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')
@johntyree Collaborator

Backwards? Is unite replacing TagBar or depending on it?

@Shougo
Shougo added a note

unite-outline can do like that.

https://github.com/Shougo/unite-outline

But it may be not replacement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ 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 {
View
16 .vimrc.bundles
@@ -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')
@johntyree Collaborator

Are these conditionals backwards?

@Shougo
Shougo added a note

I think vimfiler is replacement for nerdtree instead unite.
It has tree feature.

https://github.com/Shougo/vimfiler.vim

But vimfiler depends on unite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ 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'
Something went wrong with that request. Please try again.