vim-dist / webvim

WebVim is a vim based distribution targeting JavaScript and Web development
http://webvim.org
GNU General Public License v3.0
330 stars 34 forks source link

Tmux support #18

Open krampstudio opened 8 years ago

krampstudio commented 8 years ago

It appears some mappings, like <s-left> doesn't work inside a tmux pane.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

usebaz commented 7 years ago

Add in your ~/.vim/local.vim next condition:

if &term =~ '^screen'
  " tmux will send xterm-style keys when its xterm-keys option is on
  execute "set <xUp>=\e[1;*A"
  execute "set <xDown>=\e[1;*B"
  execute "set <xRight>=\e[1;*C"
  execute "set <xLeft>=\e[1;*D"
endif

It`s works for me.

Also work if set TERM to xterm-256color(default I have screen-256color)

krampstudio commented 7 years ago

@usebaz looks great. I'll try to integrate the config.