home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.236 < prev    next >
Encoding:
Internet Message Format  |  2002-02-17  |  5.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.236
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.236
  11. Problem:    ":edit" without argument should move cursor to line 1 in Vi
  12.         compatible mode.
  13. Solution:   Add 'g' flag to 'cpoptions'.
  14. Files:      runtime/doc/options.txt, src/ex_docmd.c, src/option.h
  15.  
  16.  
  17. *** ../vim60.235/runtime/doc/options.txt    Sun Feb  3 17:31:22 2002
  18. --- runtime/doc/options.txt    Mon Feb 18 13:55:08 2002
  19. ***************
  20. *** 1,4 ****
  21. ! *options.txt*   For Vim version 6.0.  Last change: 2001 Sep 26
  22.   
  23.   
  24.             VIM REFERENCE MANUAL    by Bram Moolenaar
  25. --- 1,4 ----
  26. ! *options.txt*   For Vim version 6.0.  Last change: 2002 Feb 18
  27.   
  28.   
  29.             VIM REFERENCE MANUAL    by Bram Moolenaar
  30. ***************
  31. *** 1423,1435 ****
  32.                   'B' included:    "\^["    (^[ is a real <Esc>)
  33.                   'B' excluded:   "<Esc>"  (5 characters)
  34.                   ('<' excluded in both cases)
  35. -         C    Do not concatenate sourced lines that start with a
  36. -             backslash.  See |line-continuation|.
  37.           c    Searching continues at the end of any match at the
  38.               cursor position.  When not present searching continues
  39.               one character from the cursor position.  With 'c'
  40.               "abababababab" only gets three matches when repeating
  41.               "/abab", without 'c' there are five matches.
  42.           d    Using "./" in the 'tags' option doesn't mean to use
  43.               the tags file relative to the current file, but the
  44.               tags file in the current directory.
  45. --- 1425,1437 ----
  46.                   'B' included:    "\^["    (^[ is a real <Esc>)
  47.                   'B' excluded:   "<Esc>"  (5 characters)
  48.                   ('<' excluded in both cases)
  49.           c    Searching continues at the end of any match at the
  50.               cursor position.  When not present searching continues
  51.               one character from the cursor position.  With 'c'
  52.               "abababababab" only gets three matches when repeating
  53.               "/abab", without 'c' there are five matches.
  54. +         C    Do not concatenate sourced lines that start with a
  55. +             backslash.  See |line-continuation|.
  56.           d    Using "./" in the 'tags' option doesn't mean to use
  57.               the tags file relative to the current file, but the
  58.               tags file in the current directory.
  59. ***************
  60. *** 1453,1458 ****
  61. --- 1455,1461 ----
  62.               argument will set the file name for the current
  63.               buffer, if the current buffer doesn't have a file name
  64.               yet.
  65. +         g    Goto line 1 when using ":edit" without argument.
  66.           i    When included, interrupting the reading of a file will
  67.               leave it modified.
  68.           j    When joining lines, only add two spaces after a '.',
  69. *** ../vim60.235/src/ex_docmd.c    Sun Feb 17 23:22:34 2002
  70. --- src/ex_docmd.c    Mon Feb 18 14:14:17 2002
  71. ***************
  72. *** 5724,5730 ****
  73.           readonlymode = TRUE;
  74.       setpcmark();
  75.       if (do_ecmd(0, (eap->cmdidx == CMD_enew ? NULL : eap->arg),
  76. !             NULL, eap, eap->do_ecmd_lnum,
  77.               (P_HID(curbuf) ? ECMD_HIDE : 0)
  78.               + (eap->forceit ? ECMD_FORCEIT : 0)
  79.   #ifdef FEAT_LISTCMDS
  80. --- 5724,5734 ----
  81.           readonlymode = TRUE;
  82.       setpcmark();
  83.       if (do_ecmd(0, (eap->cmdidx == CMD_enew ? NULL : eap->arg),
  84. !             NULL, eap,
  85. !             /* ":edit" goes to first line if Vi compatible */
  86. !             (*eap->arg == NUL && eap->do_ecmd_lnum == 0
  87. !                       && vim_strchr(p_cpo, CPO_GOTO1) != NULL)
  88. !                            ? ECMD_ONE : eap->do_ecmd_lnum,
  89.               (P_HID(curbuf) ? ECMD_HIDE : 0)
  90.               + (eap->forceit ? ECMD_FORCEIT : 0)
  91.   #ifdef FEAT_LISTCMDS
  92. *** ../vim60.235/src/option.h    Mon Feb 18 10:26:40 2002
  93. --- src/option.h    Mon Feb 18 13:56:28 2002
  94. ***************
  95. *** 125,130 ****
  96. --- 125,131 ----
  97.   #define CPO_EMPTYREGION    'E'    /* operating on empty region is an error */
  98.   #define CPO_FNAMER    'f'    /* set file name for ":r file" */
  99.   #define CPO_FNAMEW    'F'    /* set file name for ":w file" */
  100. + #define CPO_GOTO1    'g'    /* goto line 1 for ":edit" */
  101.   #define CPO_INTMOD    'i'    /* interrupt a read makes buffer modified */
  102.   #define CPO_JOINSP    'j'    /* only use two spaces for join after '.' */
  103.   #define CPO_ENDOFSENT    'J'    /* need two spaces to detect end of sentence */
  104. ***************
  105. *** 152,158 ****
  106.   #define CPO_STAR    '*'    /* ":*" means ":@" */
  107.   #define CPO_SPECI    '<'    /* don't recognize <> in mappings */
  108.   #define CPO_DEFAULT    "aABceFs"
  109. ! #define CPO_ALL        "aAbBcCdDeEfFijJkKlLmnoOprsStuwWxy$!%*<"
  110.   
  111.   /* characters for p_ww option: */
  112.   #define WW_ALL        "bshl<>[],~"
  113. --- 153,159 ----
  114.   #define CPO_STAR    '*'    /* ":*" means ":@" */
  115.   #define CPO_SPECI    '<'    /* don't recognize <> in mappings */
  116.   #define CPO_DEFAULT    "aABceFs"
  117. ! #define CPO_ALL        "aAbBcCdDeEfFgijJkKlLmnoOprsStuwWxy$!%*<"
  118.   
  119.   /* characters for p_ww option: */
  120.   #define WW_ALL        "bshl<>[],~"
  121. *** ../vim60.235/src/version.c    Mon Feb 18 13:52:08 2002
  122. --- src/version.c    Mon Feb 18 14:18:33 2002
  123. ***************
  124. *** 608,609 ****
  125. --- 608,611 ----
  126.   {   /* Add new patch number below this line */
  127. + /**/
  128. +     236,
  129.   /**/
  130.  
  131. -- 
  132. SOLDIER: What?  Ridden on a horse?
  133. ARTHUR:  Yes!
  134. SOLDIER: You're using coconuts!
  135.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  136.  
  137.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  138. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  139. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  140.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  141.