diff options
author | David Bürgin <676c7473@gmail.com> | 2015-05-01 15:42:45 +0200 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2015-05-04 14:20:28 -0400 |
commit | d6209fa9f031658a9750efee12733f64ab32074e (patch) | |
tree | 22b7f63f5fe5758b1303ee94a958b6b1ae973c77 | |
parent | 115f137b124a8b26c92656cf190e340b2364a5a2 (diff) | |
download | rneovim-d6209fa9f031658a9750efee12733f64ab32074e.tar.gz rneovim-d6209fa9f031658a9750efee12733f64ab32074e.tar.bz2 rneovim-d6209fa9f031658a9750efee12733f64ab32074e.zip |
'cpoptions': Remove "H" flag #2556
-rw-r--r-- | runtime/doc/options.txt | 4 | ||||
-rw-r--r-- | src/nvim/normal.c | 5 | ||||
-rw-r--r-- | src/nvim/option_defs.h | 5 |
3 files changed, 3 insertions, 11 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 7822cc7ce3..65908f910f 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1773,10 +1773,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 buffer, if the current buffer doesn't have a file name yet. Also see |cpo-P|. - *cpo-H* - H When using "I" on a line with only blanks, insert - before the last blank. Without this flag insert after - the last blank. *cpo-i* i When included, interrupting the reading of a file will leave it modified. diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 3217e06ac2..849bc0ea7d 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -7010,10 +7010,7 @@ static void nv_edit(cmdarg_T *cap) break; case 'I': /* "I"nsert before the first non-blank */ - if (vim_strchr(p_cpo, CPO_INSEND) == NULL) - beginline(BL_WHITE); - else - beginline(BL_WHITE|BL_FIX); + beginline(BL_WHITE); break; case 'a': /* "a"ppend is like "i"nsert on the next character. */ diff --git a/src/nvim/option_defs.h b/src/nvim/option_defs.h index e40234f671..278b3f0872 100644 --- a/src/nvim/option_defs.h +++ b/src/nvim/option_defs.h @@ -95,7 +95,6 @@ #define CPO_EMPTYREGION 'E' /* operating on empty region is an error */ #define CPO_FNAMER 'f' /* set file name for ":r file" */ #define CPO_FNAMEW 'F' /* set file name for ":w file" */ -#define CPO_INSEND 'H' /* "I" inserts before last blank in line */ #define CPO_INTMOD 'i' /* interrupt a read makes buffer modified */ #define CPO_INDENT 'I' /* remove auto-indent more often */ #define CPO_JOINSP 'j' /* only use two spaces for join after '.' */ @@ -144,9 +143,9 @@ * cursor would not move */ /* default values for Vim, Vi and POSIX */ #define CPO_VIM "aABceFs" -#define CPO_VI "aAbBcCdDeEfFHiIjJkKlLmMnoOpPqrRsStuvWxXyZ$!%*-+<>;" +#define CPO_VI "aAbBcCdDeEfFiIjJkKlLmMnoOpPqrRsStuvWxXyZ$!%*-+<>;" #define CPO_ALL \ - "aAbBcCdDeEfFHiIjJkKlLmMnoOpPqrRsStuvWxXyZ$!%*-+<>#{|&/\\.;" + "aAbBcCdDeEfFiIjJkKlLmMnoOpPqrRsStuvWxXyZ$!%*-+<>#{|&/\\.;" /* characters for p_ww option: */ #define WW_ALL "bshl<>[],~" |