Skip to content

Instantly share code, notes, and snippets.

@tmsanrinsha
Last active December 10, 2015 13:49
Show Gist options
  • Save tmsanrinsha/4443705 to your computer and use it in GitHub Desktop.
Save tmsanrinsha/4443705 to your computer and use it in GitHub Desktop.
if &term =~ "xterm" && v:version > 603
if $TMUX != ''
let &t_SI = "\ePtmux;\e\e[?2004h\e\\"
let &t_EI = "\ePtmux;\e\e[?2004l\e\\"
elseif $TERM == 'screen'
let &t_SI = "\eP\e[?2004h\e\\"
let &t_EI = "\eP\e[?2004l\e\\"
else
let &t_SI = "\e[?2004h"
let &t_EI = "\e[?2004l"
endif
let &pastetoggle = "\e[201~"
exec "set <F13>=\e[200~"
inoremap <F13> <C-o>:set paste<CR>
endif
@tmsanrinsha
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment