diff --git a/after/plugin/mappings.vim b/after/plugin/mappings.vim new file mode 100644 index 0000000..01a0398 --- /dev/null +++ b/after/plugin/mappings.vim @@ -0,0 +1,8 @@ +if get(g:, 'loaded_tmux_focus_events', 0) + " Override vim-tmux-focue-events command-line mappings when tmux send + " FocusLost and FocusLost instead of to call do#sink() which does + " nothing. This is required due to errors emitted from the + " vim-tmux-focus-events plugin when chaning focus. + cnoremap edo#sink() + cnoremap edo#sink() +endif diff --git a/autoload/do.vim b/autoload/do.vim index 68ba12e..aca11c8 100644 --- a/autoload/do.vim +++ b/autoload/do.vim @@ -96,3 +96,7 @@ function! do#signify() abort " Enable update on text change e.g. undo/redo autocmd signify TextChanged call sy#start() endfunction + +" A sink for mappings to do nothing +function! do#sink() abort +endfunction