Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
Avoid pasting errors with tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
mtnalonso authored Apr 10, 2023
1 parent 977c4b3 commit db8ee22
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ let g:ctrlp_custom_ignore = {
\ 'link': '',
\}

" Avoid indentation errors when pasting using tmux
if &term =~ "screen"
let &t_BE = "\e[?2004h"
let &t_BD = "\e[?2004l"
exec "set t_PS=\e[200~"
exec "set t_PE=\e[201~"
endif

nnoremap Ñ :NERDTreeToggle<CR>
nnoremap tt :syntax sync fromstart<CR>
Expand Down

0 comments on commit db8ee22

Please sign in to comment.