forked from aniani/vim
updated for version 7.0099
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
" These commands create the option window.
|
" These commands create the option window.
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2005 Mar 07
|
" Last Change: 2005 Jul 01
|
||||||
|
|
||||||
" If there already is an option window, jump to that one.
|
" If there already is an option window, jump to that one.
|
||||||
if bufwinnr("option-window") > 0
|
if bufwinnr("option-window") > 0
|
||||||
@@ -368,7 +368,7 @@ if has("linebreak")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
call <SID>Header("syntax and highlighting")
|
call <SID>Header("syntax, highlighting and spelling")
|
||||||
call append("$", "background\t\"dark\" or \"light\"; the background color brightness")
|
call append("$", "background\t\"dark\" or \"light\"; the background color brightness")
|
||||||
call <SID>OptionG("bg", &bg)
|
call <SID>OptionG("bg", &bg)
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
@@ -385,6 +385,19 @@ call append("$", "highlight\twhich highlighting to use for various occasions")
|
|||||||
call <SID>OptionG("hl", &hl)
|
call <SID>OptionG("hl", &hl)
|
||||||
call append("$", "hlsearch\thighlight all matches for the last used search pattern")
|
call append("$", "hlsearch\thighlight all matches for the last used search pattern")
|
||||||
call <SID>BinOptionG("hls", &hls)
|
call <SID>BinOptionG("hls", &hls)
|
||||||
|
if has("syntax")
|
||||||
|
call append("$", "spell\thighlight spelling mistakes")
|
||||||
|
call append("$", "\t(local to window)")
|
||||||
|
call <SID>BinOptionL("spell")
|
||||||
|
call append("$", "spelllang\tlist of accepted languages")
|
||||||
|
call append("$", "\t(local to buffer)")
|
||||||
|
call <SID>OptionL("spl")
|
||||||
|
call append("$", "spellfile\tfile that \"zg\" adds good words to")
|
||||||
|
call append("$", "\t(local to buffer)")
|
||||||
|
call <SID>OptionL("spf")
|
||||||
|
call append("$", "spellsuggest\tmethods used to suggest corrections")
|
||||||
|
call <SID>OptionG("sps", &sps)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
call <SID>Header("multiple windows")
|
call <SID>Header("multiple windows")
|
||||||
@@ -614,6 +627,8 @@ call append("$", "report\tthreshold for reporting number of changed lines")
|
|||||||
call append("$", " \tset report=" . &report)
|
call append("$", " \tset report=" . &report)
|
||||||
call append("$", "verbose\tthe higher the more messages are given")
|
call append("$", "verbose\tthe higher the more messages are given")
|
||||||
call append("$", " \tset vbs=" . &vbs)
|
call append("$", " \tset vbs=" . &vbs)
|
||||||
|
call append("$", "verbosefile\tfile to write messages in")
|
||||||
|
call <SID>OptionG("vfile", &vfile)
|
||||||
call append("$", "more\tpause listings when the screen is full")
|
call append("$", "more\tpause listings when the screen is full")
|
||||||
call <SID>BinOptionG("more", &more)
|
call <SID>BinOptionG("more", &more)
|
||||||
if has("dialog_con") || has("dialog_gui")
|
if has("dialog_con") || has("dialog_gui")
|
||||||
|
@@ -3,74 +3,101 @@
|
|||||||
# It builds on Windows 95 and all four NT platforms: i386, Alpha, MIPS, and
|
# It builds on Windows 95 and all four NT platforms: i386, Alpha, MIPS, and
|
||||||
# PowerPC. The NT/i386 binary and the Windows 95 binary are identical.
|
# PowerPC. The NT/i386 binary and the Windows 95 binary are identical.
|
||||||
#
|
#
|
||||||
|
# To build using Borland C++, use Make_bc3.mak or Make_bc5.mak.
|
||||||
|
#
|
||||||
# This makefile can build the console, GUI, OLE-enable, Perl-enabled and
|
# This makefile can build the console, GUI, OLE-enable, Perl-enabled and
|
||||||
# Python-enabled versions of vim for Win32 platforms.
|
# Python-enabled versions of vim for Win32 platforms.
|
||||||
#
|
#
|
||||||
# When compiling different versions, do "nmake clean" first!
|
|
||||||
#
|
|
||||||
# The basic command line to build vim is:
|
# The basic command line to build vim is:
|
||||||
|
#
|
||||||
# nmake -f Make_mvc.mak
|
# nmake -f Make_mvc.mak
|
||||||
|
#
|
||||||
# This will build the console version of vim with no additional interfaces.
|
# This will build the console version of vim with no additional interfaces.
|
||||||
# To add interfaces, define any of the following:
|
# To add features, define any of the following:
|
||||||
|
#
|
||||||
|
# !!!! After changing features do "nmake clean" first !!!!
|
||||||
|
#
|
||||||
|
# Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG)
|
||||||
|
#
|
||||||
# GUI interface: GUI=yes (default is no)
|
# GUI interface: GUI=yes (default is no)
|
||||||
|
#
|
||||||
# OLE interface: OLE=yes (usually with GUI=yes)
|
# OLE interface: OLE=yes (usually with GUI=yes)
|
||||||
|
#
|
||||||
# Multibyte support: MBYTE=yes
|
# Multibyte support: MBYTE=yes
|
||||||
|
#
|
||||||
# IME support: IME=yes (requires GUI=yes)
|
# IME support: IME=yes (requires GUI=yes)
|
||||||
# DYNAMIC_IME=[yes or no] (to load the imm32.dll dynamically, default
|
# DYNAMIC_IME=[yes or no] (to load the imm32.dll dynamically, default
|
||||||
# is yes)
|
# is yes)
|
||||||
# Global IME support: GIME=yes (requires GUI=yes)
|
# Global IME support: GIME=yes (requires GUI=yes)
|
||||||
|
#
|
||||||
# MzScheme interface:
|
# MzScheme interface:
|
||||||
# MZSCHEME=[Path to MzScheme directory]
|
# MZSCHEME=[Path to MzScheme directory]
|
||||||
# DYNAMIC_MZSCHEME=yes (to load the MzScheme DLLs dynamically)
|
# DYNAMIC_MZSCHEME=yes (to load the MzScheme DLLs dynamically)
|
||||||
# MZSCHEME_VER=[version, 205_000, ...]
|
# MZSCHEME_VER=[version, 205_000, ...]
|
||||||
|
#
|
||||||
# Perl interface:
|
# Perl interface:
|
||||||
# PERL=[Path to Perl directory]
|
# PERL=[Path to Perl directory]
|
||||||
# DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
|
# DYNAMIC_PERL=yes (to load the Perl DLL dynamically)
|
||||||
# PERL_VER=[Perl version, in the form 55 (5.005), 56 (5.6.x), etc] (default is 56)
|
# PERL_VER=[Perl version, in the form 55 (5.005), 56 (5.6.x), etc]
|
||||||
|
# (default is 56)
|
||||||
|
#
|
||||||
# Python interface:
|
# Python interface:
|
||||||
# PYTHON=[Path to Python directory]
|
# PYTHON=[Path to Python directory]
|
||||||
# DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
|
# DYNAMIC_PYTHON=yes (to load the Python DLL dynamically)
|
||||||
# PYTHON_VER=[Python version, eg 15, 20] (default is 22)
|
# PYTHON_VER=[Python version, eg 15, 20] (default is 22)
|
||||||
|
#
|
||||||
# Ruby interface:
|
# Ruby interface:
|
||||||
# RUBY=[Path to Ruby directory]
|
# RUBY=[Path to Ruby directory]
|
||||||
# DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
|
# DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
|
||||||
# RUBY_VER=[Ruby version, eg 16, 17] (default is 18)
|
# RUBY_VER=[Ruby version, eg 16, 17] (default is 18)
|
||||||
# RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.8)
|
# RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.8)
|
||||||
# You must set RUBY_VER_LONG when change RUBY_VER.
|
# You must set RUBY_VER_LONG when change RUBY_VER.
|
||||||
|
#
|
||||||
# Tcl interface:
|
# Tcl interface:
|
||||||
# TCL=[Path to Tcl directory]
|
# TCL=[Path to Tcl directory]
|
||||||
# DYNAMIC_TCL=yes (to load the Tcl DLL dynamically)
|
# DYNAMIC_TCL=yes (to load the Tcl DLL dynamically)
|
||||||
# TCL_VER=[Tcl version, e.g. 80, 83] (default is 83)
|
# TCL_VER=[Tcl version, e.g. 80, 83] (default is 83)
|
||||||
# TCL_VER_LONG=[Tcl version, eg 8.3] (default is 8.3)
|
# TCL_VER_LONG=[Tcl version, eg 8.3] (default is 8.3)
|
||||||
# You must set TCL_VER_LONG when you set TCL_VER.
|
# You must set TCL_VER_LONG when you set TCL_VER.
|
||||||
|
#
|
||||||
|
# SNiFF+ interface: SNIFF=yes
|
||||||
|
#
|
||||||
|
# Cscope support: CSCOPE=yes
|
||||||
|
#
|
||||||
|
# Iconv library support (always dynamically loaded):
|
||||||
|
# ICONV=[yes or no] (default is yes)
|
||||||
|
#
|
||||||
|
# Intl library support (always dynamically loaded):
|
||||||
|
# GETTEXT=[yes or no] (default is yes)
|
||||||
|
# See http://sourceforge.net/projects/gettext/
|
||||||
|
#
|
||||||
|
# PostScript printing: POSTSCRIPT=yes (default is no)
|
||||||
|
#
|
||||||
|
# Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes)
|
||||||
|
#
|
||||||
|
# XPM Image Support: XPM=[path to XPM directory]
|
||||||
|
#
|
||||||
|
# Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED)
|
||||||
|
#
|
||||||
|
# Processor Version: CPUNR=[i386, i486, i586, i686, pentium4] (default is
|
||||||
|
# i386)
|
||||||
|
#
|
||||||
|
# Version Support: WINVER=[0x0400, 0x0500] (default is 0x0400)
|
||||||
|
#
|
||||||
# Debug version: DEBUG=yes
|
# Debug version: DEBUG=yes
|
||||||
# Mapfile: MAP=[no, yes or lines] (default is yes)
|
# Mapfile: MAP=[no, yes or lines] (default is yes)
|
||||||
# no: Don't write a mapfile.
|
# no: Don't write a mapfile.
|
||||||
# yes: Write a normal mapfile.
|
# yes: Write a normal mapfile.
|
||||||
# lines: Write a mapfile with line numbers (only for VC6 and later)
|
# lines: Write a mapfile with line numbers (only for VC6 and later)
|
||||||
# SNiFF+ interface: SNIFF=yes
|
#
|
||||||
# Cscope support: CSCOPE=yes
|
# Netbeans Debugging Support: NBDEBUG=[yes or no] (should be no, yes
|
||||||
# Iconv library support (always dynamically loaded):
|
# doesn't work)
|
||||||
# ICONV=[yes or no] (default is yes)
|
|
||||||
# Intl library support (always dynamically loaded):
|
|
||||||
# GETTEXT=[yes or no] (default is yes)
|
|
||||||
# See http://sourceforge.net/projects/gettext/
|
|
||||||
# PostScript printing: POSTSCRIPT=yes (default is no)
|
|
||||||
# Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG)
|
|
||||||
# Version Support: WINVER=[0x0400, 0x0500] (default is 0x0400)
|
|
||||||
# Processor Version: CPUNR=[i386, i486, i586, i686, pentium4] (default is i386)
|
|
||||||
# Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED)
|
|
||||||
# Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes)
|
|
||||||
# Netbeans Debugging Support: NBDEBUG=[yes or no] (default is no)
|
|
||||||
# XPM Image Support: XPM=[path to XPM directory]
|
|
||||||
#
|
#
|
||||||
# You can combine any of these interfaces
|
# You can combine any of these interfaces
|
||||||
#
|
#
|
||||||
# Example: To build the non-debug, GUI version with Perl interface:
|
# Example: To build the non-debug, GUI version with Perl interface:
|
||||||
# nmake -f Make_mvc.mak GUI=yes PERL=C:\Perl
|
# nmake -f Make_mvc.mak GUI=yes PERL=C:\Perl
|
||||||
#
|
#
|
||||||
# To build using Borland C++, use Make_bc3.mak or Make_bc5.mak.
|
|
||||||
#
|
|
||||||
# DEBUG with Make_mvc.mak and Make_dvc.mak:
|
# DEBUG with Make_mvc.mak and Make_dvc.mak:
|
||||||
# This makefile gives a fineness of control which is not supported in
|
# This makefile gives a fineness of control which is not supported in
|
||||||
# Visual C++ configuration files. Therefore, debugging requires a bit of
|
# Visual C++ configuration files. Therefore, debugging requires a bit of
|
||||||
|
@@ -4665,6 +4665,8 @@ dozet:
|
|||||||
#ifdef FEAT_SYN_HL
|
#ifdef FEAT_SYN_HL
|
||||||
case 'g': /* "zg": add good word to word list */
|
case 'g': /* "zg": add good word to word list */
|
||||||
case 'w': /* "zw": add wrong word to word list */
|
case 'w': /* "zw": add wrong word to word list */
|
||||||
|
case 'G': /* "zG": add good word to temp word list */
|
||||||
|
case 'W': /* "zW": add wrong word to temp word list */
|
||||||
{
|
{
|
||||||
char_u *ptr = NULL;
|
char_u *ptr = NULL;
|
||||||
int len;
|
int len;
|
||||||
@@ -4679,7 +4681,8 @@ dozet:
|
|||||||
if (ptr == NULL && (len = find_ident_under_cursor(&ptr,
|
if (ptr == NULL && (len = find_ident_under_cursor(&ptr,
|
||||||
FIND_IDENT)) == 0)
|
FIND_IDENT)) == 0)
|
||||||
return;
|
return;
|
||||||
spell_add_word(ptr, len, nchar == 'w');
|
spell_add_word(ptr, len, nchar == 'w' || nchar == 'W',
|
||||||
|
nchar == 'G' || nchar == 'W');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
748
src/spell.c
748
src/spell.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user