Mercurial > vim
comparison runtime/menu.vim @ 438:59b7b7e99c95
updated for version 7.0113
author | vimboss |
---|---|
date | Fri, 22 Jul 2005 21:52:15 +0000 |
parents | 73f016dbb279 |
children | 01af1008a8d8 |
comparison
equal
deleted
inserted
replaced
437:256118bd00f4 | 438:59b7b7e99c95 |
---|---|
1 " Vim support file to define the default menus | 1 " Vim support file to define the default menus |
2 " You can also use this as a start for your own set of menus. | 2 " You can also use this as a start for your own set of menus. |
3 " | 3 " |
4 " Maintainer: Bram Moolenaar <Bram@vim.org> | 4 " Maintainer: Bram Moolenaar <Bram@vim.org> |
5 " Last Change: 2005 Jul 21 | 5 " Last Change: 2005 Jul 22 |
6 | 6 |
7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work | 7 " Note that ":an" (short for ":anoremenu") is often used to make a menu work |
8 " in all modes and avoid side effects from mappings defined by the user. | 8 " in all modes and avoid side effects from mappings defined by the user. |
9 | 9 |
10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise | 10 " Make sure the '<' and 'C' flags are not included in 'cpoptions', otherwise |
878 " appearance of the menu! | 878 " appearance of the menu! |
879 func! <SID>SpellPopup() | 879 func! <SID>SpellPopup() |
880 if exists("s:changeitem") && s:changeitem != '' | 880 if exists("s:changeitem") && s:changeitem != '' |
881 call <SID>SpellDel() | 881 call <SID>SpellDel() |
882 endif | 882 endif |
883 if !&spell || &spelllang == '' | |
884 return | |
885 endif | |
883 | 886 |
884 let curcol = col('.') | 887 let curcol = col('.') |
885 let w = spellbadword() | 888 let w = spellbadword() |
886 if col('.') > curcol " don't use word after the cursor | 889 if col('.') > curcol " don't use word after the cursor |
887 let w = '' | 890 let w = '' |