summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-10-24 17:19:54 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-10-24 17:19:54 +0200
commitf52f6b9519f51faeeeae123a852a7bacc82089d5 (patch)
treeab996fc3a9d9d54fc26f8860ae4b9a4af7d6a29f /ftdetect
parentb6654c85b28b1fbaec56ccfda085afb7c1a06875 (diff)
downloadvim-polyglot-f52f6b9519f51faeeeae123a852a7bacc82089d5.tar.gz
vim-polyglot-f52f6b9519f51faeeeae123a852a7bacc82089d5.zip
Allow to override incsearch, #603
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim15
1 files changed, 15 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index e345dc6d..49b2c894 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -3491,6 +3491,21 @@ if exists("did_load_filetypes") && exists("g:polyglot_disabled")
runtime! extras/filetype.vim
endif
+
+if !has_key(s:disabled_packages, 'sensible')
+ " Reload unchanged files automatically.
+ set autoread
+
+ " Enable highlighted case-insensitive incremential search.
+ set incsearch
+
+ " Use utf-8 encoding by default
+ set encoding=utf-8
+
+ " Autoindent when starting new line, or using `o` or `O`.
+ set autoindent
+endif
+
" Restore 'cpoptions'
let &cpo = s:cpo_save
unlet s:cpo_save