• Stars
    star
    2,851
  • Rank 15,782 (Top 0.4 %)
  • Language
    Vim Script
  • License
    Other
  • Created about 14 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ‰ Unite and create user interfaces

Stories in Ready Unite.vim

Note: Active development on denite.nvim has stopped. The only future changes will be bug fixes.

Please see ddu.vim.

The unite or unite.vim plug-in can search and display information from arbitrary sources like files, buffers, recently used files or registers. You can run several pre-defined actions on a target displayed in the unite window.

The difference between unite and similar plug-ins like fuzzyfinder, ctrl-p or ku is that unite provides an integration interface for several sources and you can create new interfaces using unite.

Usage

Join the chat at https://gitter.im/Shougo/unite.vim

Run unite to display files and buffers as sources to pick from.

:Unite file buffer

Run unite with an initial filter value (foo) to narrow down files.

:Unite -input=foo file

If you start unite it splits the window horizontally and pops up from the top of Vim by default.

:Unite file

The example call above lists all the files in the current directory. You can choose one of them in the unite window by moving the cursor up and down as usual with j and k. If you type Enter on an active candidate it will open it in a new buffer. Enter triggers the default action for a candidate which is "open" for candidates of the kind "file". You can also select an alternative action for a candidate with . See also unite-action to read on about actions.

You can also narrow down the list of candidates by a keyword. If you change into the insert mode inside of a unite window, the cursor drops you behind the ">" in the second line from above. There you can start typing to filter the candidates. You can also use the wild card * as an arbitrary character sequence. For example,

*hisa

matches hisa, ujihisa, or ujihisahisa. Furthermore, two consecutive wild cards match a directory recursively.

**/foo

So the example above matches bar/foo or buzz/bar/foo. Note: The unite action file_rec does a recursive file matching by default without the need to set wildcards.

You can also specify multiple keywords to narrow down the candidates. Multiple keywords need to be separated either by a space " " or a dash "|". The examples below match for candidates that meet both conditions "foo" and "bar".

foo bar
foo|bar

You can also specify negative conditions with an exclamation mark "!". This matches candidates that meet "foo" but do not meet "bar".

foo !bar

Wild cards are added automatically if you add a "/" in the filter and you have specified "files" as the buffer name with the option "-buffer-name". That's handy in case you select files with unite.

:Unite -buffer-name=files file

See also unite_default_key_mappings for other actions.

Install

Install the distributed files into your Vim script directory which is usually ~/.vim/, or $HOME/vimfiles on Windows. You should consider using one of the famous package managers for Vim like vundle or neobundle to install the plugin.

After installation you can run unite with the :Unite command and append the sources to the command you wish to select from as parameters. However, it's a pain in the ass to run the command explicitly every time, so I recommend you to set a key mapping for the command. See :h unite.

Note: MRU sources are splitted. To use mru sources, you must install neomru. https://github.com/Shougo/neomru.vim

Resources

Screen shots

unite action source

Unite action source.

unite output source

Unite output source.

unite mapping source

Unite mapping source.

unite menu source

Unite menu source.

unite menu source with customization

Unite menu source with customization.

let g:unite_source_menu_menus = get(g:,'unite_source_menu_menus',{})
let g:unite_source_menu_menus.git = {
    \ 'description' : '            gestionar repositorios git
        \                            ⌘ [espacio]g',
    \}
let g:unite_source_menu_menus.git.command_candidates = [
    \['β–· tig                                                        ⌘ ,gt',
        \'normal ,gt'],
    \['β–· git status       (Fugitive)                                ⌘ ,gs',
        \'Gstatus'],
    \['β–· git diff         (Fugitive)                                ⌘ ,gd',
        \'Gdiff'],
    \['β–· git commit       (Fugitive)                                ⌘ ,gc',
        \'Gcommit'],
    \['β–· git log          (Fugitive)                                ⌘ ,gl',
        \'exe "silent Glog | Unite quickfix"'],
    \['β–· git blame        (Fugitive)                                ⌘ ,gb',
        \'Gblame'],
    \['β–· git stage        (Fugitive)                                ⌘ ,gw',
        \'Gwrite'],
    \['β–· git checkout     (Fugitive)                                ⌘ ,go',
        \'Gread'],
    \['β–· git rm           (Fugitive)                                ⌘ ,gr',
        \'Gremove'],
    \['β–· git mv           (Fugitive)                                ⌘ ,gm',
        \'exe "Gmove " input("destino: ")'],
    \['β–· git push         (Fugitive, salida por buffer)             ⌘ ,gp',
        \'Git! push'],
    \['β–· git pull         (Fugitive, salida por buffer)             ⌘ ,gP',
        \'Git! pull'],
    \['β–· git prompt       (Fugitive, salida por buffer)             ⌘ ,gi',
        \'exe "Git! " input("comando git: ")'],
    \['β–· git cd           (Fugitive)',
        \'Gcd'],
    \]
nnoremap <silent>[menu]g :Unite -silent -start-insert menu:git<CR>

Video

https://www.youtube.com/watch?v=fwqhBSxhGU0&hd=1

It is a good introduction about the possibilities of Unite by ReneFroger.

Special Thanks

More Repositories

1

deoplete.nvim

🌠 Dark powered asynchronous completion framework for neovim/Vim8
Python
5,913
star
2

dein.vim

⚑ Dark powered Vim/Neovim plugin manager
Vim Script
3,415
star
3

neocomplete.vim

Next generation completion framework after neocomplcache
Vim Script
2,746
star
4

neobundle.vim

Next generation Vim package manager
Vim Script
2,294
star
5

denite.nvim

πŸ‰ Dark powered asynchronous unite all interfaces for Neovim/Vim8
Python
2,061
star
6

neocomplcache.vim

Ultimate auto-completion system for Vim.
Vim Script
1,721
star
7

defx.nvim

πŸ“ The dark powered file explorer implementation for neovim/Vim8
Python
1,170
star
8

neosnippet.vim

neo-snippet plugin
Vim Script
1,117
star
9

vimshell.vim

🐚 Powerful shell implemented by vim.
Vim Script
1,092
star
10

vimproc.vim

Interactive command execution in Vim.
Vim Script
1,080
star
11

vimfiler.vim

πŸ“ Powerful file explorer implemented by Vim script
Vim Script
885
star
12

ddc.vim

Dark deno-powered completion framework for neovim/Vim
TypeScript
660
star
13

echodoc.vim

Print documents in echo area.
Vim Script
571
star
14

shougo-s-github

Shougo's git repository - vim, zsh, screen, etc...
Vim Script
485
star
15

deol.nvim

Dark powered shell interface for NeoVim/Vim8
Vim Script
330
star
16

neosnippet-snippets

The standard snippets repository for neosnippet
Vim Snippet
320
star
17

ddu.vim

Dark deno-powered UI framework for neovim/Vim
TypeScript
292
star
18

deoppet.nvim

The dark powered snippet plugin for neovim
Python
256
star
19

context_filetype.vim

Context filetype library for Vim script
Vim Script
159
star
20

vinarise.vim

Ultimate hex editing system with Vim
Vim Script
158
star
21

dpp.vim

Dark powered plugin manager for Vim/neovim
TypeScript
127
star
22

neomru.vim

MRU plugin includes unite.vim/denite.nvim MRU sources
Vim Script
124
star
23

pum.vim

Original popup completion menu framework library
Vim Script
108
star
24

neco-vim

The Vim Script completion source for neocomplete/deoplete/ddc
Vim Script
107
star
25

neoinclude.vim

Include completion framework for neocomplete/deoplete
Vim Script
97
star
26

neoyank.vim

Saves yank history includes unite.vim/denite.nvim history/yank source.
Vim Script
71
star
27

ddc-source-lsp

lsp source for ddc.vim
TypeScript
66
star
28

deoplete-clangx

X version of clang source for deoplete
Python
65
star
29

neco-syntax

Syntax source for neocomplete/deoplete/ncm
Vim Script
65
star
30

ddu-ui-ff

Fuzzy finder UI for ddu.vim
TypeScript
55
star
31

ddu-ui-filer

File listing UI for ddu.vim
TypeScript
55
star
32

neossh.vim

SSH interface for Vim plugins
Vim Script
50
star
33

ddx.vim

Dark deno-powered hexadecimal plugin for neovim/Vim8
TypeScript
49
star
34

ddc-source-around

Around completion for ddc.vim
TypeScript
45
star
35

BattleEditors

"Battle editors" novel in English
42
star
36

junkfile.vim

Create temporary file for memo, testing, ...
Vim Script
32
star
37

neopairs.vim

Auto insert pairs when complete done
Vim Script
31
star
38

dda.vim

Dark deno powered AI plugin
TypeScript
29
star
39

dein-installer.vim

Installer script for dein.vim
Shell
29
star
40

ddu-commands.vim

Commands for ddu.vim
Vim Script
27
star
41

ddc-filter-sorter_rank

Matched rank order sorter for ddc.vim
TypeScript
27
star
42

ddu-kind-file

File kind for ddu.vim
TypeScript
25
star
43

ddu-source-file_rec

File recursive source for ddu.vim
TypeScript
25
star
44

deoplete-rct

deoplete rcodetools source for Ruby
Python
24
star
45

unite-session

unite.vim session source
Vim Script
24
star
46

deorise.nvim

The dark powered hexa decimal editor interface for neovim
Vim Script
22
star
47

ddc-source-shell-native

Shell native completion for ddc.vim
Shell
22
star
48

neocomplcache-rsense.vim

The neocomplcache source for RSense
22
star
49

ddc-filter-matcher_head

Heading matcher for ddc.vim
TypeScript
21
star
50

neocomplcache-clang

Use of clang to complete in C/C++.
19
star
51

ddc-source-cmdline

Command line completion for ddc.vim
TypeScript
18
star
52

unite-build

Build by unite interface
Vim Script
18
star
53

ddc-ui-pum

Pum.vim UI for ddc.vim
TypeScript
18
star
54

ddc-source-copilot

Copilot completion for ddc.vim
TypeScript
17
star
55

cmdline.vim

Display command line text in floating window
Vim Script
17
star
56

tabpagebuffer.vim

Tabpage buffer interface
Vim Script
16
star
57

ddc-source-rg

rg completion for ddc.vim
TypeScript
15
star
58

ddu-source-line

Line source for ddu.vim
TypeScript
15
star
59

ddc-source-cmdline-history

Command history completion for ddc.vim
TypeScript
14
star
60

ddu-source-file

File source for ddu.vim
TypeScript
14
star
61

ddc-source-nextword

Nextword completion for ddc
TypeScript
14
star
62

ddc-source-mocword

Mocword completion for ddc
TypeScript
13
star
63

ddc-source-omni

Omnifunc completion for ddc.vim
TypeScript
13
star
64

neobundle-vim-recipes

vim-plugins receipes repository for neobundle
12
star
65

vesting

The best testing framework for Vim script
Vim Script
12
star
66

ddc-ui-native

Native popup menu UI for ddc.vim
TypeScript
12
star
67

ddc-filter-converter_remove_overlap

Remove overlapped text converter for ddc.vim
TypeScript
10
star
68

ddu-filter-matcher_substring

Substring matcher for ddu.vim
TypeScript
10
star
69

ddc-source-line

Line completion for ddc.vim
TypeScript
9
star
70

ddu-column-filename

Filename column for ddu.vim
TypeScript
8
star
71

fakecygpty

execute cygwin pty commands ushing pipe
C
8
star
72

Blog

Blog pages for zenn.dev
6
star
73

ddu-source-register

Register source for ddu.vim
TypeScript
6
star
74

deoppet-snippets

The standard snippets repository for deoppet
6
star
75

ddu-source-file_old

File from v:oldfiles source for ddu.vim
TypeScript
6
star
76

ddc-filter-matcher_length

Length matcher for ddc.vim
TypeScript
6
star
77

dpp-ext-lazy

Lazy ext for dpp.vim
Vim Script
5
star
78

dpp-ext-installer

Installer ext for dpp.vim
TypeScript
5
star
79

ddc-source-nvim-lua

neovim lua completion source for ddc.vim
TypeScript
5
star
80

ddu-source-action

Action source for ddu.vim
TypeScript
5
star
81

ddx-commands.vim

Commands for ddx.vim
Vim Script
4
star
82

dpp-ext-toml

Toml ext for dpp.vim
TypeScript
4
star
83

ddc-ui-inline

Inline UI for ddc.vim
Vim Script
4
star
84

dpp-protocol-git

git protocol for dpp.vim
TypeScript
4
star
85

ddc-source-codeium

Codeium completion source for ddc.vim
TypeScript
4
star
86

dpp-ext-packspec

Packspec ext for dpp.vim
TypeScript
4
star
87

ddu-filter-matcher_relative

Relative files matcher for ddu.vim
TypeScript
4
star
88

ddu-filter-matcher_hidden

Hide hidden files filter
TypeScript
4
star
89

ddu-kind-word

Word kind for ddu.vim
TypeScript
3
star
90

ddc-filter-converter_truncate_abbr

Truncate abbr converter for ddc.vim
TypeScript
3
star
91

ddu-source-vim

Vim script source for ddu.vim
TypeScript
3
star
92

dpp-ext-local

Local ext for dpp.vim
TypeScript
3
star
93

qselect.vim

Quick selector for line moving
Vim Script
3
star
94

vim-nyaos

Vim scripts for nyaos
Vim Script
3
star
95

ddu-source-dummy

Dummy items source for ddu.vim
TypeScript
2
star
96

ddc-source-input

ddc input() source
TypeScript
2
star
97

ddc-source-vim

Additional Vim script source for ddc.vim
Vim Script
2
star
98

ddu-filter-sorter_reversed

Reversed sorter for ddu.vim
TypeScript
2
star
99

eev.vim

evaluate vim script one liner
Vim Script
2
star
100

ddc-ui-none

None UI for ddc.vim
TypeScript
2
star