aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-10-10 19:09:14 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-10-15 12:06:13 +0200
commit7ca1f43f68522770c768b6221752388684b5f658 (patch)
tree960e7217255aad9b6d1d1beca248393cb97c96df
parent02c2b1d1b38bf26fba0860dfc305fddb2118fd5d (diff)
downloadrneovim-7ca1f43f68522770c768b6221752388684b5f658.tar.gz
rneovim-7ca1f43f68522770c768b6221752388684b5f658.tar.bz2
rneovim-7ca1f43f68522770c768b6221752388684b5f658.zip
health.vim: warn about 'paste' option
-rw-r--r--runtime/autoload/health/nvim.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/autoload/health/nvim.vim b/runtime/autoload/health/nvim.vim
index 3834cbd054..6c6a5e8543 100644
--- a/runtime/autoload/health/nvim.vim
+++ b/runtime/autoload/health/nvim.vim
@@ -10,6 +10,12 @@ function! s:check_config() abort
\ [ "Use the 'guicursor' option to configure cursor shape. :help 'guicursor'",
\ 'https://github.com/neovim/neovim/wiki/Following-HEAD#20170402' ])
endif
+ if &paste
+ let ok = v:false
+ call health#report_error("'paste' is enabled. This option is only for pasting text.\nIt should not be set in your config.",
+ \ [ 'Remove `set paste` from your init.vim, if applicable.',
+ \ 'Check `:verbose set paste?` to see if a plugin or script set the option.', ])
+ endif
if ok
call health#report_ok('no issues found')