mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
updated for version 7.0166
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
*index.txt* For Vim version 7.0aa. Last change: 2005 Nov 30
|
*index.txt* For Vim version 7.0aa. Last change: 2005 Dec 09
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -759,18 +759,19 @@ tag char note action in Normal mode ~
|
|||||||
cursor on first non-blank
|
cursor on first non-blank
|
||||||
|z.| z. redraw, cursor line to center of window,
|
|z.| z. redraw, cursor line to center of window,
|
||||||
cursor on first non-blank
|
cursor on first non-blank
|
||||||
|
|z=| z= make spelling suggestions
|
||||||
|zA| zA open a closed fold or close an open fold
|
|zA| zA open a closed fold or close an open fold
|
||||||
recursively
|
recursively
|
||||||
|zC| zC close folds recursively
|
|zC| zC close folds recursively
|
||||||
|zD| zD delete folds recursively
|
|zD| zD delete folds recursively
|
||||||
|zE| zE eliminate all folds
|
|zE| zE eliminate all folds
|
||||||
|zF| zF create a fold for N lines
|
|zF| zF create a fold for N lines
|
||||||
|zG| zG mark word as good word
|
|zG| zG mark word as good spelled word
|
||||||
|zM| zM set 'foldlevel' to zero
|
|zM| zM set 'foldlevel' to zero
|
||||||
|zN| zN set 'foldenable'
|
|zN| zN set 'foldenable'
|
||||||
|zO| zO open folds recursively
|
|zO| zO open folds recursively
|
||||||
|zR| zR set 'foldlevel' to the deepest fold
|
|zR| zR set 'foldlevel' to the deepest fold
|
||||||
|zW| zW mark word as wrong (bad) word
|
|zW| zW mark word as wrong (bad) spelled word
|
||||||
|zX| zX re-apply 'foldlevel'
|
|zX| zX re-apply 'foldlevel'
|
||||||
|z^| z^ cursor on line N (default line above
|
|z^| z^ cursor on line N (default line above
|
||||||
window), otherwise like "z-"
|
window), otherwise like "z-"
|
||||||
@@ -782,7 +783,7 @@ tag char note action in Normal mode ~
|
|||||||
position the cursor at the end (right side)
|
position the cursor at the end (right side)
|
||||||
of the screen
|
of the screen
|
||||||
|zf| zf{motion} create a fold for Nmove text
|
|zf| zf{motion} create a fold for Nmove text
|
||||||
|zg| zg mark word as good word
|
|zg| zg mark word as good spelled word
|
||||||
|zh| zh when 'wrap' off scroll screen N characters
|
|zh| zh when 'wrap' off scroll screen N characters
|
||||||
to the right
|
to the right
|
||||||
|zi| zi toggle 'foldenable'
|
|zi| zi toggle 'foldenable'
|
||||||
@@ -799,7 +800,7 @@ tag char note action in Normal mode ~
|
|||||||
side) of the screen
|
side) of the screen
|
||||||
|zt| zt redraw, cursor line at top of window
|
|zt| zt redraw, cursor line at top of window
|
||||||
|zv| zv open enough folds to view the cursor line
|
|zv| zv open enough folds to view the cursor line
|
||||||
|zw| zw mark word as wrong (bad) word
|
|zw| zw mark word as wrong (bad) spelled word
|
||||||
|zx| zx re-apply 'foldlevel' and do "zv"
|
|zx| zx re-apply 'foldlevel' and do "zv"
|
||||||
|zz| zz redraw, cursor line at center of window
|
|zz| zz redraw, cursor line at center of window
|
||||||
|z<Left>| z<Left> same as "zh"
|
|z<Left>| z<Left> same as "zh"
|
||||||
@@ -1375,7 +1376,7 @@ The commands are sorted on the non-optional part of their name.
|
|||||||
|:source| :so[urce] read Vim or Ex commands from a file
|
|:source| :so[urce] read Vim or Ex commands from a file
|
||||||
|:spelldump| :spelld[ump] split window and fill with all correct words
|
|:spelldump| :spelld[ump] split window and fill with all correct words
|
||||||
|:spellgood| :spe[llgood] add good word for spelling
|
|:spellgood| :spe[llgood] add good word for spelling
|
||||||
|:spellrepall| :spellr[epall] replace all bad words like last |z?|
|
|:spellrepall| :spellr[epall] replace all bad words like last |z=|
|
||||||
|:spellwrong| :spellw[rong] add spelling mistake
|
|:spellwrong| :spellw[rong] add spelling mistake
|
||||||
|:split| :sp[lit] split current window
|
|:split| :sp[lit] split current window
|
||||||
|:sprevious| :spr[evious] split window and go to previous file in the
|
|:sprevious| :spr[evious] split window and go to previous file in the
|
||||||
|
@@ -4766,7 +4766,7 @@ dozet:
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '?': /* "z?": suggestions for a badly spelled word */
|
case '=': /* "z=": suggestions for a badly spelled word */
|
||||||
if (!checkclearopq(cap->oap))
|
if (!checkclearopq(cap->oap))
|
||||||
spell_suggest((int)cap->count0);
|
spell_suggest((int)cap->count0);
|
||||||
break;
|
break;
|
||||||
@@ -8799,4 +8799,3 @@ nv_cursorhold(cap)
|
|||||||
cap->retval |= CA_COMMAND_BUSY; /* don't call edit() now */
|
cap->retval |= CA_COMMAND_BUSY; /* don't call edit() now */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -144,8 +144,8 @@
|
|||||||
comment */
|
comment */
|
||||||
|
|
||||||
|
|
||||||
#undef USE_FNAME_CASE /* TODO: make :e os_Mac.c, :w, save back the
|
#define USE_FNAME_CASE /* make ":e os_Mac.c" open the file in its
|
||||||
file as os_mac.c */
|
original case, as "os_mac.c" */
|
||||||
#define BINARY_FILE_IO
|
#define BINARY_FILE_IO
|
||||||
#define EOL_DEFAULT EOL_MAC
|
#define EOL_DEFAULT EOL_MAC
|
||||||
#ifndef MACOS_X_UNIX /* I hope that switching these two lines */
|
#ifndef MACOS_X_UNIX /* I hope that switching these two lines */
|
||||||
|
14
src/spell.c
14
src/spell.c
@@ -851,28 +851,20 @@ spell_check(wp, ptr, attrp, capcol)
|
|||||||
vim_memset(&mi, 0, sizeof(matchinf_T));
|
vim_memset(&mi, 0, sizeof(matchinf_T));
|
||||||
|
|
||||||
/* A number is always OK. Also skip hexadecimal numbers 0xFF99 and
|
/* A number is always OK. Also skip hexadecimal numbers 0xFF99 and
|
||||||
* 0X99FF. But when a word character follows do check spelling to find
|
* 0X99FF. But always do check spelling to find "3GPP" and "11
|
||||||
* "3GPP". */
|
* julifeest". */
|
||||||
if (*ptr >= '0' && *ptr <= '9')
|
if (*ptr >= '0' && *ptr <= '9')
|
||||||
{
|
{
|
||||||
if (*ptr == '0' && (ptr[1] == 'x' || ptr[1] == 'X'))
|
if (*ptr == '0' && (ptr[1] == 'x' || ptr[1] == 'X'))
|
||||||
mi.mi_end = skiphex(ptr + 2);
|
mi.mi_end = skiphex(ptr + 2);
|
||||||
else
|
else
|
||||||
{
|
|
||||||
mi.mi_end = skipdigits(ptr);
|
mi.mi_end = skipdigits(ptr);
|
||||||
nrlen = mi.mi_end - ptr;
|
nrlen = mi.mi_end - ptr;
|
||||||
}
|
}
|
||||||
if (!spell_iswordp(mi.mi_end, wp->w_buffer))
|
|
||||||
return (int)(mi.mi_end - ptr);
|
|
||||||
|
|
||||||
/* Try including the digits in the word. */
|
|
||||||
mi.mi_fend = ptr + nrlen;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
mi.mi_fend = ptr;
|
|
||||||
|
|
||||||
/* Find the normal end of the word (until the next non-word character). */
|
/* Find the normal end of the word (until the next non-word character). */
|
||||||
mi.mi_word = ptr;
|
mi.mi_word = ptr;
|
||||||
|
mi.mi_fend = ptr;
|
||||||
if (spell_iswordp(mi.mi_fend, wp->w_buffer))
|
if (spell_iswordp(mi.mi_fend, wp->w_buffer))
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
|
Reference in New Issue
Block a user