vim-patch:7c63fbc46e21

Updated runtime files.
7c63fbc46e
This commit is contained in:
Justin M. Keyes
2018-10-29 09:22:53 +01:00
parent 460a52dbbf
commit 835161490d
2 changed files with 220 additions and 89 deletions

View File

@@ -891,7 +891,10 @@ if has("spell")
let s:suglist = spellsuggest(w, 10)
endif
if len(s:suglist) > 0
let s:changeitem = 'Change\ "' . escape(w, ' .'). '"\ to'
if !exists("g:menutrans_spell_change_ARG_to")
let g:menutrans_spell_change_ARG_to = 'Change\ "%s"\ to'
endif
let s:changeitem = printf(g:menutrans_spell_change_ARG_to, escape(w, ' .'))
let s:fromword = w
let pri = 1
" set 'cpo' to include the <CR>
@@ -903,10 +906,16 @@ if has("spell")
let pri += 1
endfor
let s:additem = 'Add\ "' . escape(w, ' .') . '"\ to\ Word\ List'
if !exists("g:menutrans_spell_add_ARG_to_word_list")
let g:menutrans_spell_add_ARG_to_word_list = 'Add\ "%s"\ to\ Word\ List'
endif
let s:additem = printf(g:menutrans_spell_add_ARG_to_word_list, escape(w, ' .'))
exe 'anoremenu 1.6 PopUp.' . s:additem . ' :spellgood ' . w . '<CR>'
let s:ignoreitem = 'Ignore\ "' . escape(w, ' .') . '"'
if !exists("g:menutrans_spell_ignore_ARG")
let g:menutrans_spell_ignore_ARG = 'Ignore\ "%s"'
endif
let s:ignoreitem = printf(g:menutrans_spell_ignore_ARG, escape(w, ' .'))
exe 'anoremenu 1.7 PopUp.' . s:ignoreitem . ' :spellgood! ' . w . '<CR>'
anoremenu 1.8 PopUp.-SpellSep- :