summaryrefslogtreecommitdiffstats
path: root/plugin/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-12-30 08:36:48 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2020-12-30 08:36:48 +0100
commit6783bd0df98094539c752e3281035e1b92d6af69 (patch)
treee6e183f08660bc150d54de60ee15bcf71d16d89f /plugin/polyglot.vim
parentdc786b7641741eadadab10b507fcfd4c1ff1813a (diff)
downloadvim-polyglot-6783bd0df98094539c752e3281035e1b92d6af69.tar.gz
vim-polyglot-6783bd0df98094539c752e3281035e1b92d6af69.zip
Revert "Check changes for focus event, improves #638"
It's because it additionally changes cursor to vertical bar. I need to disable this behavior and make it compatible with plugins that enable vertical cursor... This reverts commit 44e79fc935004c2e67fc39a77266d0f06e29d920.
Diffstat (limited to 'plugin/polyglot.vim')
-rw-r--r--plugin/polyglot.vim18
1 files changed, 1 insertions, 17 deletions
diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim
index 031dbe63..bfd9c1a0 100644
--- a/plugin/polyglot.vim
+++ b/plugin/polyglot.vim
@@ -13,22 +13,6 @@ if exists('g:loaded_sensible')
finish
endif
-if !has('gui_running') && (!has('nvim') || $TERM =~? '^rxvt')
- let g:focau = extend({
- \ 'auto': 1,
- \ 'active': 1,
- \ 'events' : {'<F25>': "\e[I", '<F26>': "\e[O"},
- \ 'focuses': ["\e[?1004h", "\e[?1004l"],
- \ 'screens': ["\e[?1049h", "\e[?1049l"],
- \ 'cursors': ['', '', ''],
- \ 'colors' : ['white', 'cyan'],
- \ 'widgets': [],
- \ 'clipregs':['+"p', '"+'],
- \}, get(g:, 'focau', {}))
-
- call focau#init#main()
-endif
-
" Code taken from https://github.com/tpope/vim-sensible
" and (mostly comments) from https://github.com/sheerun/vimrc
"
@@ -90,7 +74,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == -
if match(capture, 'checktime') == -1
augroup polyglot-sensible
au!
- au CursorHold,FocusGained * silent! checktime
+ au CursorHold * silent! checktime
augroup END
endif