options: Remove "g" flag from 'cpoptions' #2505

This commit is contained in:
David Bürgin
2015-04-25 17:25:13 +02:00
committed by Michael Reed
parent 0bce4dc544
commit deeee5bfab
3 changed files with 3 additions and 9 deletions

View File

@@ -1868,8 +1868,6 @@ A jump table for the options with a short description can be found at |Q_op|.
argument will set the file name for the current argument will set the file name for the current
buffer, if the current buffer doesn't have a file name buffer, if the current buffer doesn't have a file name
yet. Also see |cpo-P|. yet. Also see |cpo-P|.
*cpo-g*
g Goto line 1 when using ":edit" without argument.
*cpo-H* *cpo-H*
H When using "I" on a line with only blanks, insert H When using "I" on a line with only blanks, insert
before the last blank. Without this flag insert after before the last blank. Without this flag insert after

View File

@@ -6037,10 +6037,7 @@ do_exedit (
setpcmark(); setpcmark();
if (do_ecmd(0, (eap->cmdidx == CMD_enew ? NULL : eap->arg), if (do_ecmd(0, (eap->cmdidx == CMD_enew ? NULL : eap->arg),
NULL, eap, NULL, eap,
/* ":edit" goes to first line if Vi compatible */ eap->do_ecmd_lnum,
(*eap->arg == NUL && eap->do_ecmd_lnum == 0
&& vim_strchr(p_cpo, CPO_GOTO1) != NULL)
? ECMD_ONE : eap->do_ecmd_lnum,
(P_HID(curbuf) ? ECMD_HIDE : 0) (P_HID(curbuf) ? ECMD_HIDE : 0)
+ (eap->forceit ? ECMD_FORCEIT : 0) + (eap->forceit ? ECMD_FORCEIT : 0)
// After a split we can use an existing buffer. // After a split we can use an existing buffer.

View File

@@ -95,7 +95,6 @@
#define CPO_EMPTYREGION 'E' /* operating on empty region is an error */ #define CPO_EMPTYREGION 'E' /* operating on empty region is an error */
#define CPO_FNAMER 'f' /* set file name for ":r file" */ #define CPO_FNAMER 'f' /* set file name for ":r file" */
#define CPO_FNAMEW 'F' /* set file name for ":w file" */ #define CPO_FNAMEW 'F' /* set file name for ":w file" */
#define CPO_GOTO1 'g' /* goto line 1 for ":edit" */
#define CPO_INSEND 'H' /* "I" inserts before last blank in line */ #define CPO_INSEND 'H' /* "I" inserts before last blank in line */
#define CPO_INTMOD 'i' /* interrupt a read makes buffer modified */ #define CPO_INTMOD 'i' /* interrupt a read makes buffer modified */
#define CPO_INDENT 'I' /* remove auto-indent more often */ #define CPO_INDENT 'I' /* remove auto-indent more often */
@@ -146,9 +145,9 @@
* cursor would not move */ * cursor would not move */
/* default values for Vim, Vi and POSIX */ /* default values for Vim, Vi and POSIX */
#define CPO_VIM "aABceFs" #define CPO_VIM "aABceFs"
#define CPO_VI "aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>;" #define CPO_VI "aAbBcCdDeEfFHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>;"
#define CPO_ALL \ #define CPO_ALL \
"aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>#{|&/\\.;" "aAbBcCdDeEfFHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>#{|&/\\.;"
/* characters for p_ww option: */ /* characters for p_ww option: */
#define WW_ALL "bshl<>[],~" #define WW_ALL "bshl<>[],~"