mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-05-07 05:19:07 -04:00
tmux: move plugins to config
This commit is contained in:
parent
36249eb571
commit
3b5aebcd93
122 changed files with 4210 additions and 2 deletions
81
dot_config/tmux/plugins/tmux-navigate/README.md
Normal file
81
dot_config/tmux/plugins/tmux-navigate/README.md
Normal file
|
@ -0,0 +1,81 @@
|
|||
# tmux-navigate
|
||||
|
||||
Intelligently navigate tmux panes and Vim splits using the same keys.
|
||||
This also supports SSH tunnels where Vim is running on a remote host.
|
||||
|
||||
| inside Vim? | is Zoomed? | Action taken by key binding |
|
||||
| ----------- | ---------- | --------------------------- |
|
||||
| No | No | Focus directional tmux pane |
|
||||
| No | Yes | Nothing: ignore key binding |
|
||||
| Yes | No | Seamlessly focus Vim / tmux |
|
||||
| Yes | Yes | Focus directional Vim split |
|
||||
|
||||
See https://sunaku.github.io/tmux-select-pane.html for documentation.
|
||||
|
||||
## Installation
|
||||
|
||||
1. Install the [TPM] framework for tmux.
|
||||
|
||||
[TPM]: https://github.com/tmux-plugins/tpm
|
||||
|
||||
2. Add this line to your `~/.tmux.conf`:
|
||||
```sh
|
||||
set -g @plugin 'sunaku/tmux-navigate'
|
||||
```
|
||||
|
||||
3. Configure your navigation shortcuts:
|
||||
```sh
|
||||
# if you're using QWERTY layout
|
||||
set -g @navigate-left '-n M-h'
|
||||
set -g @navigate-down '-n M-j'
|
||||
set -g @navigate-up '-n M-k'
|
||||
set -g @navigate-right '-n M-l'
|
||||
set -g @navigate-back '-n M-\'
|
||||
|
||||
# if you're using DVORAK layout
|
||||
set -g @navigate-back '-n M-d'
|
||||
set -g @navigate-left '-n M-h'
|
||||
set -g @navigate-up '-n M-t'
|
||||
set -g @navigate-down '-n M-n'
|
||||
set -g @navigate-right '-n M-s'
|
||||
```
|
||||
|
||||
4. Reload your tmux configuration file.
|
||||
|
||||
5. Type <kbd>prefix</kbd>+<kbd>I</kbd>.
|
||||
(This makes TPM install the plugin.)
|
||||
|
||||
### Vim integration
|
||||
|
||||
> Option 1: use your favorite Vim plugin manager
|
||||
```vim
|
||||
Plug 'sunaku/tmux-navigate'
|
||||
```
|
||||
|
||||
> Option 2: symlink from your tmux plugins clone
|
||||
```sh
|
||||
mkdir -p ~/.vim/plugin/
|
||||
ln -s ~/.tmux/plugins/tmux-navigate/plugin/tmux-navigate.vim ~/.vim/plugin/
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[Spare A Life]: https://sunaku.github.io/vegan-for-life.html
|
||||
> Like my work? 👍 Please [spare a life] today as thanks! 🐄🐖🐑🐔🐣🐟✨🙊✌
|
||||
> Why? For 💕 ethics, the 🌎 environment, and 💪 health; see link above. 🙇
|
||||
|
||||
(the ISC license)
|
||||
|
||||
Copyright 2018 Suraj N. Kurapati <https://github.com/sunaku>
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
Loading…
Add table
Add a link
Reference in a new issue