All Projects → Karmenzind → vim-tmuxlike

Karmenzind / vim-tmuxlike

Licence: MIT License
A vim plugin that mimics the actions of tmux. 像操作Tmux一样操作Vim

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-tmuxlike

Vimux
easily interact with tmux from vim
Stars: ✭ 1,980 (+9800%)
Mutual labels:  tmux, vim-plugin, vim-plugins
Tmux Complete.vim
Vim plugin for insert mode completion of words in adjacent tmux panes
Stars: ✭ 447 (+2135%)
Mutual labels:  tmux, vim-plugin, vim-plugins
tmux-zsh-vim-titles
Unified terminal titles in tmux, zsh, and vim/nvim
Stars: ✭ 28 (+40%)
Mutual labels:  tmux, vim-plugins
vim-sass-colors
sass/scss/less/css color literal and color variable highlighting (works with imports)
Stars: ✭ 24 (+20%)
Mutual labels:  vim-plugin, vim-plugins
VimConfig
Configuration files for Vi-IMproved.
Stars: ✭ 23 (+15%)
Mutual labels:  vim-plugin, vim-plugins
Dotfiles
💾 Ian's dotfiles, utils, and Zsh/Vim/tmux configs
Stars: ✭ 554 (+2670%)
Mutual labels:  tmux, vim-plugins
Vim Tidal
Vim plugin for TidalCycles
Stars: ✭ 147 (+635%)
Mutual labels:  tmux, vim-plugins
vim-jsonc
⚠️Deprecated⚠️: Vim syntax highlighting plugin for JSON with C-style line (//) and block (/* */) comments.
Stars: ✭ 52 (+160%)
Mutual labels:  vim-plugin, vim-plugins
Visual Split.vim
Vim plugin to control splits with visual selections or text objects
Stars: ✭ 190 (+850%)
Mutual labels:  vim-plugin, vim-plugins
vim-inccomplete
Vim plugin for #include directive completion.
Stars: ✭ 14 (-30%)
Mutual labels:  vim-plugin, vim-plugins
filestyle
filestyle is a Vim plugin that highlights unwanted whitespace and characters.
Stars: ✭ 30 (+50%)
Mutual labels:  vim-plugin, vim-plugins
onestatus
an api to customize tmux from vim
Stars: ✭ 82 (+310%)
Mutual labels:  tmux, vim-plugin
Nerdtree
A tree explorer plugin for vim.
Stars: ✭ 16,380 (+81800%)
Mutual labels:  vim-plugin, vim-plugins
Dot-It-Up
A collection of dotfile scripts, plugins, and clever hacks so that you can become the master of your own OS! 🚀
Stars: ✭ 254 (+1170%)
Mutual labels:  tmux, vim-plugin
Vifm.vim
Vim plugin that allows use of vifm as a file picker
Stars: ✭ 197 (+885%)
Mutual labels:  vim-plugin, vim-plugins
vim-phpstan
A Vim plugin for PHPStan - https://github.com/phpstan/phpstan. It calls `phpstan` to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
Stars: ✭ 26 (+30%)
Mutual labels:  vim-plugin, vim-plugins
Vim Dadbod Completion
Database autocompletion powered by https://github.com/tpope/vim-dadbod
Stars: ✭ 163 (+715%)
Mutual labels:  vim-plugin, vim-plugins
Exit Vim
Vim plugin that exits Vim on startup
Stars: ✭ 176 (+780%)
Mutual labels:  vim-plugin, vim-plugins
swifty-vim
⌨️ A Vim plugin for Swift which provides file detection, syntax highlighting, support for compiling and running tests, and optional support for formatting and linting tools.
Stars: ✭ 18 (-10%)
Mutual labels:  vim-plugin, vim-plugins
dotfiles
NeoVim + git + zsh + tmux bliss
Stars: ✭ 19 (-5%)
Mutual labels:  tmux, vim-plugins

vim-tmuxlike

Add tmux operating habits to vim.

If you are quite addicted to tmux, you might need this plugin to make your vim work a bit like tmux.

current status: STABLE

Many new features are being developed.

TOC

Installation

  • use vim-plug:
    Plug 'karmenzind/vim-tmuxlike'
    
  • use Vundle:
    Plugin 'karmenzind/vim-tmuxlike'
    

Intro

Prefix key

Just like <prefix>(usually CTRL-B) in tmux, there's a prefix key in vim-tmuxlike.
I use <c-a>(CTRL-A) as the default prefix key. You need to change it if you have the same keymap in tmux.

Features

original

Tmux users may be familiar with these basic operation.

Every keymap should start with <prefix>.

  • ? open vim-tmuxlike's helppage
  • z toggle buffer zoom mode
  • % split window; open new buffer oh the right side
  • | split current buffer oh the right side (custom: g:tmuxlike_key_vsplit)
  • " vertically split window; open new buffer downside
  • _ split current buffer downside (custom: g:tmuxlike_key_hsplit)
  • c open a new tab with an empty window after the last tab
  • <c-h> <c-p> select previous tab n <c-n> <c-l> select next tab
  • x close current buffer
  • & close current tab
  • ~ show history messages
  • ! break current buffer (move current buffer to new tabpage)
  • d detach/suspend vim (the same as CTRL-Z)
  • r redraw current buffer
  • ] paste [from register *]
  • ; choose last buffer
  • h j k l Left Down Up Right change buffer
  • H J K L resize current window

These keymaps need t9md/vim-choosewin installed.

  • q s = enter choosewin mode choose_win

Config

Prefix key

Feel free to change the prefix key. I recommend using a 'CTRL-' key combination which will be really convenient (e.g. with default prefix <c-a>, you just need to hold CTRL and type 'ah' for <prefix><c-h>).

" use CTRL-A (default)
nmap <c-a> <Plug>(tmuxlike-prefix)
" use CTRL-\
nmap <c-\> <Plug>(tmuxlike-prefix)
" use double leader (it will be `\\` if you haven't change the mapleader)
nmap <Leader><Leader> <Plug>(tmuxlike-prefix)

Operation key maps

" use <prefix> + <key> to split current buffer
let g:tmuxlike_key_vsplit = '\'  " default value: \| (slash is for escaping)
let g:tmuxlike_key_hsplit = '-'  " default value: _

Problem or advice

Please create an issue and I'll fix it ASAP.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].