Skip to content

Commit

Permalink
Improve UpdateTmuxlineByMode() function
Browse files Browse the repository at this point in the history
  • Loading branch information
g6ai committed Aug 9, 2021
1 parent c4297e7 commit 8d65068
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ elseif flag == "good"
function! UpdateTmuxlineVisualEnter()
set updatetime=0
call UpdateTmuxlineByMode()
return ''
return 'lh'
endfunction
function! UpdateTmuxlineVisualLeave()
set updatetime=4000
Expand All @@ -515,9 +515,9 @@ elseif flag == "good"
autocmd InsertEnter * Tmuxline airline_insert
autocmd InsertLeave * Tmuxline airline
vnoremap <silent> <expr> <SID>UpdateTmuxlineVisualEnter UpdateTmuxlineVisualEnter()
nnoremap <silent> <script> v v<SID>UpdateTmuxlineVisualEnter<left><right>
nnoremap <silent> <script> V V<SID>UpdateTmuxlineVisualEnter<left><right>
nnoremap <silent> <script> <C-v> <C-v><SID>UpdateTmuxlineVisualEnter<left><right>
nnoremap <silent> <script> v v<SID>UpdateTmuxlineVisualEnter
nnoremap <silent> <script> V V<SID>UpdateTmuxlineVisualEnter
nnoremap <silent> <script> <C-v> <C-v><SID>UpdateTmuxlineVisualEnter
autocmd CursorHold * call UpdateTmuxlineVisualLeave()
endif
augroup END
Expand Down

0 comments on commit 8d65068

Please sign in to comment.