~kb/env

88c4d631e097f6452c23567ab4f8b94ceb123edf — kb 3 months ago ac7a9bb
Remove tmux escape sequences from vim conf
1 files changed, 8 insertions(+), 8 deletions(-)

M programs/vim.nix
M programs/vim.nix => programs/vim.nix +8 -8
@@ 66,16 66,16 @@
      au BufRead,BufNewFile *.lock set filetype=json readonly

      " insert mode cursor as cyan vertical line
      let &t_SI .= "\<esc>Ptmux;\<esc>\<esc>[6 q\<esc>\\"
      let &t_SI .= "\<esc>Ptmux;\<esc>\<esc>]12;cyan\x7\<esc>\\"
      let &t_SI .= "\<esc>[6 q"
      let &t_SI .= "\<esc>]12;cyan\x7"

      " normal mode cursor as green block
      let &t_EI .= "\<esc>Ptmux;\<esc>\<esc>[2 q\<esc>\\"
      let &t_EI .= "\<esc>Ptmux;\<esc>\<esc>]12;green\x7\<esc>\\"
      let &t_EI .= "\<esc>[2 q"
      let &t_EI .= "\<esc>]12;green\x7"

      " replace mode cursor as orange underscore
      let &t_SR .= "\<esc>Ptmux;\<esc>\<esc>[4 q\<esc>\\"
      let &t_SR .= "\<esc>Ptmux;\<esc>\<esc>]12;orange\x7\<esc>\\"
      let &t_SR .= "\<esc>[4 q"
      let &t_SR .= "\<esc>]12;orange\x7"

       " initialize cursor shape/color on startup
       augroup ResetCursorShape


@@ 84,8 84,8 @@
       augroup END

       " reset cursor when leaving
       autocmd VimLeave * silent !echo -ne "\033Ptmux;\033\033[2 q\033\\"
       autocmd VimLeave * silent !echo -ne "\033Ptmux;\033\033]12;gray\007\033\\"
       autocmd VimLeave * silent !echo -ne "\<esc>[2 q"
       autocmd VimLeave * silent !echo -ne "\<esc>]12;gray\x7"

      " highlight cursor line in the active window
      augroup CursorLine