0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.0038

This commit is contained in:
Bram Moolenaar 2005-01-14 21:42:54 +00:00
parent 31c67ef813
commit fd371684fa
10 changed files with 36 additions and 19 deletions

View File

@ -1,4 +1,4 @@
*cmdline.txt* For Vim version 7.0aa. Last change: 2004 Dec 20 *cmdline.txt* For Vim version 7.0aa. Last change: 2005 Jan 13
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -153,6 +153,10 @@ CTRL-R {0-9a-z"%#:-=.} *c_CTRL-R* *c_<C-R>*
'=' the expression register: you are prompted to '=' the expression register: you are prompted to
enter an expression (see |expression|) enter an expression (see |expression|)
See |registers| about registers. {not in Vi} See |registers| about registers. {not in Vi}
Implementation detail: When using the |expression| register
and invoking setcmdpos(), this sets the position before
inserting the resulting string. Use CTRL-R CTRL-R to set the
position afterwards.
CTRL-R CTRL-F *c_CTRL-R_CTRL-F* *c_<C-R>_<C-F>* CTRL-R CTRL-F *c_CTRL-R_CTRL-F* *c_<C-R>_<C-F>*
CTRL-R CTRL-P *c_CTRL-R_CTRL-P* *c_<C-R>_<C-P>* CTRL-R CTRL-P *c_CTRL-R_CTRL-P* *c_<C-R>_<C-P>*

View File

@ -1,4 +1,4 @@
*gui.txt* For Vim version 7.0aa. Last change: 2004 Dec 29 *gui.txt* For Vim version 7.0aa. Last change: 2005 Jan 14
VIM REFERENCE MANUAL by Bram Moolenaar VIM REFERENCE MANUAL by Bram Moolenaar
@ -144,7 +144,7 @@ window Vim is running in with this command: >
============================================================================== ==============================================================================
2. Scrollbars *gui-scrollbars* 2. Scrollbars *gui-scrollbars*
There are vertical scrollbars and a horizontal scrollbars. You may There are vertical scrollbars and a horizontal scrollbar. You may
configure which ones appear with the 'guioptions' option. configure which ones appear with the 'guioptions' option.
The interface looks like this (with ":set guioptions=mlrb"): The interface looks like this (with ":set guioptions=mlrb"):
@ -203,11 +203,11 @@ scrolled as far as possible left and right. The cursor is moved when
necessary, it must remain on a visible character (unless 'virtualedit' is necessary, it must remain on a visible character (unless 'virtualedit' is
set). set).
Computing the length of the longest visible takes quite a bit of computation, Computing the length of the longest visible line takes quite a bit of
and it has to be done every time something changes. If this takes too much computation, and it has to be done every time something changes. If this
time or you don't like the cursor jumping to another line, include the 'h' takes too much time or you don't like the cursor jumping to another line,
flag in 'guioptions'. Then the scrolling is limited by the text of the include the 'h' flag in 'guioptions'. Then the scrolling is limited by the
current cursor line. text of the current cursor line.
*athena-intellimouse* *athena-intellimouse*
If you have an Intellimouse and an X server that supports using the wheel, If you have an Intellimouse and an X server that supports using the wheel,

View File

@ -1,6 +1,8 @@
" Polish letters keymap for cp852 " Polish letters keymap for cp852
" Maintainer: HS6_06 <hs6_06@o2.pl> " Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 9 " Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: see polish-slash.vim
" This keymap adds the special Polish letters " This keymap adds the special Polish letters
" to an existing Latin keyboard. " to an existing Latin keyboard.
@ -9,7 +11,7 @@
" instead of AltGr+{acelnosxz} you ve to use "/" followed by {acelnosxz} " instead of AltGr+{acelnosxz} you ve to use "/" followed by {acelnosxz}
" short keymap name for statusline " short keymap name for statusline
let b:keymap_name = "polish-slash-cp852" let b:keymap_name = "PL-slash-DOS"
scriptencoding latin1 scriptencoding latin1

View File

@ -1,6 +1,8 @@
" Polish letters keymap for utf-8 " Polish letters keymap for utf-8
" Maintainer: HS6_06 <hs6_06@o2.pl> " Maintainer: HS6_06 <hs6_06@o2.pl>
" Last Changed: 2005 Jan 9 " Last Changed: 2005 Jan 12
" Current version: 1.0.2
" History: see polish-slash.vim
" This keymap adds the special Polish letters " This keymap adds the special Polish letters
" to an existing Latin keyboard. " to an existing Latin keyboard.
@ -9,7 +11,7 @@
" instead of AltGr+{acelnosxz} you ve to use "/" followed by {acelnosxz} " instead of AltGr+{acelnosxz} you ve to use "/" followed by {acelnosxz}
" short keymap name for statusline " short keymap name for statusline
let b:keymap_name = "polish-slash-UTF-8" let b:keymap_name = "PL-slash-UTF"
scriptencoding latin1 scriptencoding latin1

View File

@ -38,7 +38,7 @@ menutrans &Paste<Tab>"+gP V&lo
menutrans Put\ &Before<Tab>[p Vložit\ &pøed<Tab>[p menutrans Put\ &Before<Tab>[p Vložit\ &pøed<Tab>[p
menutrans Put\ &After<Tab>]p Vloži&t\ za<Tab>]p menutrans Put\ &After<Tab>]p Vloži&t\ za<Tab>]p
menutrans &Delete<Tab>x &Smazat<Tab>x menutrans &Delete<Tab>x &Smazat<Tab>x
menutrans &Select\ all<Tab>ggVG Vy&brat\ vše<Tab>ggVG menutrans &Select\ All<Tab>ggVG Vy&brat\ vše<Tab>ggVG
menutrans &Find\.\.\. &Hledat\.\.\. menutrans &Find\.\.\. &Hledat\.\.\.
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\. menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
menutrans Options\.\.\. Volb&y\.\.\. menutrans Options\.\.\. Volb&y\.\.\.
@ -186,6 +186,7 @@ menutrans &How-to\ links Ho&wto
menutrans &GUI &Grafické\ rozhraní menutrans &GUI &Grafické\ rozhraní
menutrans &Credits &Autoøi menutrans &Credits &Autoøi
menutrans Co&pying &Licenèní\ politika menutrans Co&pying &Licenèní\ politika
menutrans &Sponsor/Register Sponzorování/&Registrace
menutrans &Find\.\.\. &Hledat\.\.\. menutrans &Find\.\.\. &Hledat\.\.\.
menutrans O&rphans O&siøelé\ dìti menutrans O&rphans O&siøelé\ dìti
menutrans &Version &Verze menutrans &Version &Verze

View File

@ -38,7 +38,7 @@ menutrans &Paste<Tab>"+gP V&lozit<Tab>"+gP
menutrans Put\ &Before<Tab>[p Vlozit\ &pred<Tab>[p menutrans Put\ &Before<Tab>[p Vlozit\ &pred<Tab>[p
menutrans Put\ &After<Tab>]p Vlozi&t\ za<Tab>]p menutrans Put\ &After<Tab>]p Vlozi&t\ za<Tab>]p
menutrans &Delete<Tab>x &Smazat<Tab>x menutrans &Delete<Tab>x &Smazat<Tab>x
menutrans &Select\ all<Tab>ggVG Vy&brat\ vse<Tab>ggVG menutrans &Select\ All<Tab>ggVG Vy&brat\ vse<Tab>ggVG
menutrans &Find\.\.\. &Hledat\.\.\. menutrans &Find\.\.\. &Hledat\.\.\.
menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\. menutrans Find\ and\ Rep&lace\.\.\. &Nahradit\.\.\.
menutrans Options\.\.\. Volb&y\.\.\. menutrans Options\.\.\. Volb&y\.\.\.
@ -186,6 +186,7 @@ menutrans &How-to\ links Ho&wto
menutrans &GUI &Graficke\ rozhrani menutrans &GUI &Graficke\ rozhrani
menutrans &Credits &Autori menutrans &Credits &Autori
menutrans Co&pying &Licencni\ politika menutrans Co&pying &Licencni\ politika
menutrans &Sponsor/Register Sponzorovani/&Registrace
menutrans &Find\.\.\. &Hledat\.\.\. menutrans &Find\.\.\. &Hledat\.\.\.
menutrans O&rphans O&sirele\ deti menutrans O&rphans O&sirele\ deti
menutrans &Version &Verze menutrans &Version &Verze

View File

@ -8084,6 +8084,13 @@ ex_normal(eap)
ex_startinsert(eap) ex_startinsert(eap)
exarg_T *eap; exarg_T *eap;
{ {
if (eap->forceit)
{
coladvance((colnr_T)MAXCOL);
curwin->w_curswant = MAXCOL;
curwin->w_set_curswant = FALSE;
}
/* Ignore the command when already in Insert mode. Inserting an /* Ignore the command when already in Insert mode. Inserting an
* expression register that invokes a function can do this. */ * expression register that invokes a function can do this. */
if (State & INSERT) if (State & INSERT)
@ -8091,9 +8098,6 @@ ex_startinsert(eap)
if (eap->forceit) if (eap->forceit)
{ {
coladvance((colnr_T)MAXCOL);
curwin->w_curswant = MAXCOL;
curwin->w_set_curswant = FALSE;
if (eap->cmdidx == CMD_startinsert) if (eap->cmdidx == CMD_startinsert)
restart_edit = 'a'; restart_edit = 'a';
else else

View File

@ -1239,7 +1239,6 @@ EXTERN char_u e_endwhile[] INIT(=N_("E170: Missing :endwhile"));
EXTERN char_u e_endfor[] INIT(=N_("E170: Missing :endfor")); EXTERN char_u e_endfor[] INIT(=N_("E170: Missing :endfor"));
EXTERN char_u e_while[] INIT(=N_("E588: :endwhile without :while")); EXTERN char_u e_while[] INIT(=N_("E588: :endwhile without :while"));
EXTERN char_u e_for[] INIT(=N_("E588: :endfor without :for")); EXTERN char_u e_for[] INIT(=N_("E588: :endfor without :for"));
EXTERN char_u e_listreq[] INIT(=N_("E999: List required"));
#endif #endif
EXTERN char_u e_exists[] INIT(=N_("E13: File exists (add ! to override)")); EXTERN char_u e_exists[] INIT(=N_("E13: File exists (add ! to override)"));
EXTERN char_u e_failed[] INIT(=N_("E472: Command failed")); EXTERN char_u e_failed[] INIT(=N_("E472: Command failed"));
@ -1345,7 +1344,7 @@ EXTERN char_u e_re_damg[] INIT(=N_("E43: Damaged match string"));
EXTERN char_u e_re_corr[] INIT(=N_("E44: Corrupted regexp program")); EXTERN char_u e_re_corr[] INIT(=N_("E44: Corrupted regexp program"));
EXTERN char_u e_readonly[] INIT(=N_("E45: 'readonly' option is set (add ! to override)")); EXTERN char_u e_readonly[] INIT(=N_("E45: 'readonly' option is set (add ! to override)"));
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
EXTERN char_u e_readonlyvar[] INIT(=N_("E46: Cannot set read-only variable \"%s\"")); EXTERN char_u e_readonlyvar[] INIT(=N_("E46: Cannot change read-only variable \"%s\""));
EXTERN char_u e_readonlysbx[] INIT(=N_("E46: Cannot set variable in the sandbox: \"%s\"")); EXTERN char_u e_readonlysbx[] INIT(=N_("E46: Cannot set variable in the sandbox: \"%s\""));
#endif #endif
#ifdef FEAT_QUICKFIX #ifdef FEAT_QUICKFIX

View File

@ -263,11 +263,14 @@
* multi-byte characters if needed. * multi-byte characters if needed.
* mb_ptr_back(): backup a pointer to the previous character, taking care of * mb_ptr_back(): backup a pointer to the previous character, taking care of
* multi-byte characters if needed. * multi-byte characters if needed.
* MB_COPY_CHAR(f, t): copy one char from "f" to "t" and advance the pointers.
*/ */
#ifdef FEAT_MBYTE #ifdef FEAT_MBYTE
# define mb_ptr_adv(p) p += has_mbyte ? (*mb_ptr2len_check)(p) : 1 # define mb_ptr_adv(p) p += has_mbyte ? (*mb_ptr2len_check)(p) : 1
# define mb_ptr_back(s, p) p -= has_mbyte ? ((*mb_head_off)(s, p - 1) + 1) : 1 # define mb_ptr_back(s, p) p -= has_mbyte ? ((*mb_head_off)(s, p - 1) + 1) : 1
# define MB_COPY_CHAR(f, t) if (has_mbyte) mb_copy_char(&f, &t); else *t++ = *f++
#else #else
# define mb_ptr_adv(p) ++p # define mb_ptr_adv(p) ++p
# define mb_ptr_back(s, p) --p # define mb_ptr_back(s, p) --p
# define MB_COPY_CHAR(f, t) *t++ = *f++
#endif #endif

View File

@ -588,6 +588,7 @@ extern char *(*dyn_libintl_textdomain)(const char *domainname);
# define OK 1 # define OK 1
#endif #endif
#define FAIL 0 #define FAIL 0
#define NOTDONE 2 /* not OK or FAIL but skipped */
/* flags for b_flags */ /* flags for b_flags */
#define BF_RECOVERED 0x01 /* buffer has been recovered */ #define BF_RECOVERED 0x01 /* buffer has been recovered */