• Stars
    star
    562
  • Rank 79,281 (Top 2 %)
  • Language
    Vim Script
  • Created almost 11 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

Land on window you chose like tmux's 'display-pane'

ๆ—ฅๆœฌ่ชžใฏใ“ใกใ‚‰

Animated GIF

gif

Navigate to the window you choose

This plugin aims to mimic tmux's display-pane feature, which enables you to choose a window interactively.

This plugin should be especially useful when working on high resolution displays since with wide displays you are likely to open multiple windows and moving around windows with vim is cumbersome.

This plugin simplifies window navigation with the following functionality:

  1. Displays window label on statusline or middle of each window (overlay).
  2. Accepts window selection from user.
  3. Navigates to the specified window.

Example configuration:

" invoke with '-'
nmap  -  <Plug>(choosewin)

Optional configuration:

" if you want to use overlay feature
let g:choosewin_overlay_enable = 1

More configuration options are explained in the help file. See :help choosewin.

Default keymapings in choosewin mode

Key Action Description
0 tab_first Select FIRST tab
[ tab_prev Select PREVIOUS tab
] tab_next Select NEXT tab
$ tab_last Select LAST tab
x tab_close Close current tab
; win_land Navigate to current window
- previous Naviage to previous window
s swap Swap windows #1
S swap_stay Swap windows but stay #1
<CR> win_land Navigate to current window
<NOP> Disable predefined keymap

*1 If you select 'swap' again, you will swap with the previous window's buffer ex) using the default keymap, typing double 's'(ss) swaps with the previous window.

Operational examples

Map - to invoke choosewin with the following command:

nmap - <Plug>(choosewin)

Move around tabs, and choose windows

First of all, open multiple windows and tabs.
Invoke choosewin by typing - in normal mode.
Then you can move around tabs by ] and [, or you cand choose the target tab directly by typing the number labeled in the tabline.
After you chose a target tab, you can choose a target window by typing the letter which is labeled in the statusline and in the middle of each window (if you have enabled the overlay feature).

Choose the previous window

Type - again to invoke choosewin, then input - again to choose the previous window. The previous window you were on before you choose the current window.

Swap windows

Type - to invoke choosewin, then type s to swap windows.
Then type the label of a window to swap content(=buffer) of that window with your current window.
After you chose, the current window's buffer is swapped with the buffer shown in the window you chose.
By combining "swap" and "previous window" features, you can easily swap any window with the previous window like so: -s-, invoking choosewin itself(-) then entering swapping mode(s), then instructing choosewin to swap the target window with the previous(-) window. Congratulations!

NERDTree open file

If working with several windows, it is useful to be able to select a specific window when open a file from inside NERDTree. As default behavior NERDTree use Vims last window, that is often not the favored one. The NERDTree_choosewin-plugin provide this feature to select a window. Furthermore if the user has installed this Choosewin plugin as well, it is able to detect this and use it instead of the default behavior.

More Repositories

1

atom-vim-mode-plus

vim-mode improved
CoffeeScript
1,404
star
2

vim-quickhl

quickly highlight <cword> or visually selected word
Vim Script
229
star
3

vim-textmanip

easy text manupilation for vim
Vim Script
150
star
4

vagrant-snap

snapshoft management plugin for vagrant
Ruby
119
star
5

vim-ruby-xmpfilter

helper for ruby's xmpfilter or seeing_is_believing
Vim Script
115
star
6

atom-narrow

narrow something
JavaScript
110
star
7

vim-chef

jump to related file in chef's cookbook
Vim Script
70
star
8

vim-smalls

spot your cursor with simple search
Vim Script
64
star
9

vim-transform

Transform syntax!!
Vim Script
59
star
10

atom-cursor-history

Cursor position history manager
JavaScript
59
star
11

dotfiles

dotfiles
JavaScript
44
star
12

awesome-tadoku

Tadoku(ๅคš่ชญ)+ฮฑ ใƒชใ‚ฝใƒผใ‚นใƒชใƒณใ‚ฏ้›†ใจไธ€ๅฃใ‚ณใƒกใƒณใƒˆ
Ruby
33
star
13

atom-quick-highlight

Highlight text quickly
JavaScript
33
star
14

atom-vim-mode-plus-ex-mode

Experiment to implement ex-mode for vim-mode-plus
JavaScript
30
star
15

atom-project-folder

Quickly add/remove project folder
JavaScript
26
star
16

vim-ezbar

&statusline configuration helper for minimalist.
Vim Script
25
star
17

atom-lazy-motion

Rapid cursor positioning with fuzzy search.
CoffeeScript
21
star
18

atom-vim-mode-plus-keymaps-for-surround

provides default keymap for surround
21
star
19

atom-open-this

Open file under cursor like `gf`(Vim), `C-x C-f`(Emacs)
CoffeeScript
19
star
20

atom-keystroke

define multi keystroke commands easily
JavaScript
17
star
21

atom-mprettier

Minimalistic prettier runner for more performant Atom startup
JavaScript
16
star
22

atom-vim-mode-visual-block

Add visual-blockwise operation to vim-mode.
CoffeeScript
15
star
23

atom-smalls

Rapid cursor positioning across any visible chars with search and jump.
CoffeeScript
15
star
24

atom-choose-pane

focus pane by label
JavaScript
15
star
25

atom-inline-git-diff

Inline git diffs in editor
JavaScript
14
star
26

vim-surround_custom_mapping

helper utility for tpope's surround.vim , which enables you setup filetype based custom mapping.
Vim Script
13
star
27

vim-unite-ack

narrow the Ack result with unite.vim
Vim Script
12
star
28

atom-markdown-toc-auto

auto insert and update table of contents on save
JavaScript
12
star
29

pxelerator

make PXE installation setup easy
Ruby
10
star
30

cmdline-fu

simple CLI front-end for http://www.commandlinefu.com/
10
star
31

atom-theme-switch

Switch theme quickly
JavaScript
9
star
32

tmux_config

my tmux configration
Ruby
9
star
33

vim-nerdtree_plugin_collections

my personal nerdtree plugin collections
Vim Script
9
star
34

atom-vim-mode-plus-move-selected-text

Move selected text like object
CoffeeScript
8
star
35

cram-vocabulary

JavaScript
7
star
36

js-study

JavaScript self study notes
7
star
37

my-vim-config

my vimrc
Vim Script
7
star
38

build-kikutan

Build kikutan(ใ‚ญใ‚ฏใ‚ฟใƒณ) like sound album from text using GoogleTTS
Ruby
6
star
39

atom-paner

Pane manipulation helper
JavaScript
6
star
40

atom-toggle

Toggle keyword
JavaScript
6
star
41

vim-macvim-transparency

change MacVim's window transparency with shortcut
Vim Script
6
star
42

go-study

Golang self study notes โ€” Edit
Go
5
star
43

anki-accelerate-image-drag-and-drop

Accelerate workflow when you drag&drop image to a cards repetitively
Python
5
star
44

vim-fthook

provide very simple filetype hook facility.
Vim Script
5
star
45

atom-isearch

Incremental search for Atom
CoffeeScript
5
star
46

atom-project-find-navigation

Improve project-find-result navigation by dirty hack.
CoffeeScript
5
star
47

atom-clip-history

Paste from clipboard history like emacs' kill-ring
JavaScript
5
star
48

vim-phrase

gather userful phrase for reference
Vim Script
5
star
49

phrase-t9md

phrase of t9md
Ruby
4
star
50

atom-demo-mode

Show command dispatch at hover indicator / also provide service for special integration
JavaScript
4
star
51

vim-textobj-function-ruby

textobj for ruby's method depending on vim-ruby's ]M and [m
Vim Script
4
star
52

vim-learn

CSS
4
star
53

atom-transformer

Transform something
JavaScript
3
star
54

chef-solo-quickstart

Quick start to learn chef's DSL with chef-solo
Ruby
3
star
55

vim-underlinetag

underline Tag to know which word I could jump with C-]
Vim Script
3
star
56

atom-narrow-git-ls

narrow-git-ls
JavaScript
3
star
57

vim-unite-experiment

my local experiment for unite.vim
Vim Script
3
star
58

atom-vim-mode-plus-project-find-from-search

Seamless flow from vmp's search to find-and-replace's project-find
CoffeeScript
3
star
59

iTerminitor

iTerm setup easily
Ruby
2
star
60

vagrant_example

several example of vagrant and chef or puppet
Ruby
2
star
61

vim-snipplr

vim frontend for http://snipplr.com/
2
star
62

vim-resizewin

toggle winsize horizontally vertically or both maximized.
Vim Script
2
star
63

aptsync

apt-mirror like utility. diff: KISS, short code, use rsync.
Ruby
2
star
64

vim-unite-lines

nallowing lines from current buffer
Vim Script
2
star
65

atom-vim-mode-plus-replace-with-execution

TransformString with result of execution
JavaScript
2
star
66

bulk-screen-capture

bulk screen capture script intended to use for Anki
Python
2
star
67

puppet-pi-mode.el

Puppet pi mode for emacs enable you to use pi (puppet type reference cmd-line-tool) from Emacs.
Emacs Lisp
2
star
68

vim-quicktag

automatically generate tags
Vim Script
2
star
69

atom-phrase

Collect phrase, and refer quickly.
CoffeeScript
2
star
70

fu

search www.commandlinefu.com from CLI
Go
2
star
71

t9md

test
2
star
72

vim-tryit

try code in sandbox file.
Vim Script
2
star
73

bdd-infra-train

misc files for bdd-infra
Ruby
2
star
74

ruby_kata

practice for ruby over and over again.
Ruby
1
star
75

atom-mgit

minimum git wrapper just for me
JavaScript
1
star
76

atom-hydrogen-helpers

misc helpers for hydrogen
JavaScript
1
star
77

atom-vocabuilder

Let me vocabuild!
JavaScript
1
star
78

snippy

snippet sharing board based on Flask, teach me python and flask
Python
1
star
79

vim-jslike-oop

VimScript JavaScript Like OOP experiment
Vim Script
1
star
80

puppet-tags.rb

generate tags for puppet's external DSL
1
star
81

atom-focus-pane-or-panel

change focus or pane or panel seamlessly
CoffeeScript
1
star
82

vim-ruby_eval

evaluate text fragment as ruby then insert or print
Ruby
1
star
83

atom-vim-mode-plus-plugin-sample

Sample project for package as vim-mode-plus's plugin
JavaScript
1
star
84

atom-vim-mode-plus-auto-ime

automatically change ime when vim mode changes
JavaScript
1
star
85

ruby-network-programming-learning

teach ruby network programming to myself
Ruby
1
star
86

vim2tmux.vim

send line from buffer to tmux's pane!!
Vim Script
1
star
87

vim-misc-experiment

several experimental before becoming plugin.
Vim Script
1
star
88

atom-try

Paste fragment of code into try buffer then try it!
CoffeeScript
1
star
89

vim-paste-marker

vim plugin , this enables you to first put mark as target then yank to distined target.
Vim Script
1
star
90

vim-mapswap

swap keymap temporarily
Vim Script
1
star
91

atom-google-translate

translate and write to editor in dock or split-pane
JavaScript
1
star