Skip to content

Commit

Permalink
Merge pull request #44 from weilbith/master
Browse files Browse the repository at this point in the history
NERDTree Choosewin Plugin Documentation
  • Loading branch information
t9md authored Jun 11, 2018
2 parents 5c10437 + 887ad91 commit 4ac141a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@ Type `-` again to invoke choosewin, then input `-` again to choose the previous
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!
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](https://github.com/scrooloose/nerdtree). As default behavior _NERDTree_ use _Vims_ last window, that is often not the favored one. The [NERDTree_choosewin-plugin](https://github.com/weilbith/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.
9 changes: 9 additions & 0 deletions doc/choosewin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Commands |choosewin-commands|
Variables |choosewin-variables|
Functions |choosewin-functions|
Configuration Example |choosewin-example|
Integrations |choosewin-integrations|
Bug |choosewin-bug|
Todo |choosewin-todo|
Changelog |choosewin-changelog|
Expand Down Expand Up @@ -397,6 +398,14 @@ CONFIGURATION EXAMPLE *choosewin-example*
let g:choosewin_statusline_replace = 0 " don't replace statusline
let g:choosewin_tabline_replace = 0 " don't replace tabline
<
==============================================================================
INTEGRATIONS *choosewin-integrations*

If have NERDTree (http://github.com/scrooloose/nerdtree) installed and want
to use it in combination with Choosewin when open files, you can install the
NERDTree Choosewin plugin (https://github.com/weilbith/nerdtree_choosewin-plugin).
It adds this feature to NERDTree by default if Choosewin gets detected.

==============================================================================
BUG *choosewin-bug*

Expand Down

0 comments on commit 4ac141a

Please sign in to comment.