diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-24 17:19:54 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-10-24 17:19:54 +0200 |
commit | f52f6b9519f51faeeeae123a852a7bacc82089d5 (patch) | |
tree | ab996fc3a9d9d54fc26f8860ae4b9a4af7d6a29f /plugin | |
parent | b6654c85b28b1fbaec56ccfda085afb7c1a06875 (diff) | |
download | vim-polyglot-f52f6b9519f51faeeeae123a852a7bacc82089d5.tar.gz vim-polyglot-f52f6b9519f51faeeeae123a852a7bacc82089d5.zip |
Allow to override incsearch, #603
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/polyglot.vim | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/plugin/polyglot.vim b/plugin/polyglot.vim index d4a60b29..c5074088 100644 --- a/plugin/polyglot.vim +++ b/plugin/polyglot.vim @@ -18,11 +18,10 @@ endif " " Only settings that matter for proper editing are left if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == -1 - " Autoindent when starting new line, or using `o` or `O`. - set autoindent - " Allow backspace in insert mode. - set backspace=indent,eol,start + if &backspace == "" + set backspace=indent,eol,start + endif " Allow for mappings including `Esc`, while preserving " zero timeout after pressing it manually. @@ -32,12 +31,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == - set ttimeoutlen=100 endif - " Enable highlighted case-insensitive incremential search. - set incsearch - - " Use utf-8 encoding by default - set encoding=utf-8 - " Set default whitespace characters when using `:set list` if &listchars ==# 'eol:$' set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ @@ -59,9 +52,6 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'sensible') == - set shell=/usr/bin/env\ bash endif - " Reload unchanged files automatically. - set autoread - " Increase history size to 1000 items. if &history < 1000 set history=1000 |