diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-10-08 19:17:19 +0200 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2023-10-08 23:31:49 +0200 |
| commit | e5855697e90e379128a018a8d88cf5ec008b0623 (patch) | |
| tree | 1b14d5bdcc6ca3022f3de284966d8b5a70d7fb2d /runtime/ftplugin/readline.vim | |
| parent | 30d311ebcf9433f84bd4d98f9e049b36c9d352ac (diff) | |
| download | rneovim-e5855697e90e379128a018a8d88cf5ec008b0623.tar.gz rneovim-e5855697e90e379128a018a8d88cf5ec008b0623.tar.bz2 rneovim-e5855697e90e379128a018a8d88cf5ec008b0623.zip | |
vim-patch:1e33cd72b60a
runtime: make command name for &iskeywordprg more unique (vim/vim#13297)
See https://github.com/vim/vim/pull/13213/commits by @dkearns:
Rename 'keywordprg' user command to ShKeywordPrg as this is just a
leaking implementation detail.
https://github.com/vim/vim/commit/1e33cd72b60a119a038952bb658862d038602f76
Co-authored-by: Enno <Konfekt@users.noreply.github.com>
Diffstat (limited to 'runtime/ftplugin/readline.vim')
| -rw-r--r-- | runtime/ftplugin/readline.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/ftplugin/readline.vim b/runtime/ftplugin/readline.vim index a696da2701..181d8ac661 100644 --- a/runtime/ftplugin/readline.vim +++ b/runtime/ftplugin/readline.vim @@ -32,17 +32,17 @@ endif if has('unix') && executable('less') if !has('gui_running') - command -buffer -nargs=1 Sman + command -buffer -nargs=1 ReadlineKeywordPrg \ silent exe '!' . 'LESS= MANPAGER="less --pattern=''^\s+' . <q-args> . '\b'' --hilite-search" man ' . '3 readline' | \ redraw! elseif has('terminal') - command -buffer -nargs=1 Sman + command -buffer -nargs=1 ReadlineKeywordPrg \ silent exe 'term ' . 'env LESS= MANPAGER="less --pattern=''' . escape('^\s+' . <q-args> . '\b', '\') . ''' --hilite-search" man ' . '3 readline' endif - if exists(':Sman') == 2 + if exists(':ReadlineKeywordPrg') == 2 setlocal iskeyword+=- - setlocal keywordprg=:Sman - let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer Sman' + setlocal keywordprg=:ReadlineKeywordPrg + let b:undo_ftplugin .= '| setlocal keywordprg< iskeyword< | sil! delc -buffer ReadlineKeywordPrg' endif endif |