vim-bspwm


Ⅰ. 插件描述

Ⅱ. 基本信息

创建日期:  2014-07-22
使用用户:  1
Github星:  2
插件作者:  Alan Berndt

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'bentglasstube/vim-bspwm'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'bentglasstube/vim-bspwm'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'bentglasstube/vim-bspwm'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/bentglasstube/vim-bspwm

Ⅳ. 文档说明

# Navigation for vim and bspwm

This plugin is based on Chris Toomey's vim-tmux-navigator. It allows vim
to forward messages about changing windows on to bspwm if you try to move
beyond the edge of vim. This ultimately allows to to navigate vim windows with
the same keybindings you use for navigating bspwm windows.

Usage

This plugin provides the following commands which allow you to move between vim
panes and bspwm windows seamlessly:

  • BspwmNavigateLeft
  • BspwmNavigateUp
  • BspwmNavigateDown
  • BspwmNavigateRight

Installation

vim

If you don't have a preferred installation method, I recommend using
pathogen. If you have pathogen set up, just do the following:

cd ~/.vim/bundle
git clone https://github.com/bentglasstube/vim-bspwm.git

This plugin will bind some keys to make make the bspwm script work properly.
If you wish to change these, you will also have to edit the script.

bspwm

This script requires xprop and xdotool. Hopefully they can be found in the
package manager for your favorite distribution.

There in an included bash script in script/winmove that will forward the
commands to vim if it detects that the currently focused window is running vim.
I use the following in my sxhkd config:

@super + {h,j,k,l}
  /home/alan/.vim/bundle/vim-bspwm/script/winmove {left,down,up,right}

Configuration

There isn't really anything configurable about this plugin. If you have some
idea for what to configure please do let me know or send a pull request.

Bugs

Please report any bugs on the GitHub issue tracker and I will do my best
to fix them.

Contributing

I'll be happy to look at any pull requests or patches or whatever kind of thing
you feel compelled to send me.

License

This software is licensed under the MIT license. See LICENSE for details.

添加新评论