changeset 2382:3a5ededa240a vim73

Add the 'c' flag to 'concealcursor'.
author Bram Moolenaar <bram@vim.org>
date Sat, 24 Jul 2010 15:00:38 +0200
parents 17bbb52ae218
children 410d7b5916f9
files runtime/doc/options.txt runtime/doc/todo.txt runtime/doc/various.txt runtime/ftplugin/help.vim src/option.h src/screen.c
diffstat 6 files changed, 18 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt*	For Vim version 7.3b.  Last change: 2010 Jul 23
+*options.txt*	For Vim version 7.3b.  Last change: 2010 Jul 24
 
 
 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
@@ -1719,8 +1719,9 @@ A jump table for the options with a shor
 	  n		Normal mode
 	  v		Visual mode
 	  i		Insert mode
-
-	A useful value is "n".  This is used in help files.  So long as you
+	  c		Command line editing, for 'incsearch'
+
+	A useful value is "nc".  This is used in help files.  So long as you
 	are moving around text is concealed, but when starting to insert text
 	or selecting a Visual area the concealed text is displayed, so that
 	you can see what you are doing.
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -32,12 +32,15 @@ be worked on, but only if you sponsor Vi
 
 Check position in wrapped line with 'concealcursor' set.
 
-Patch for :find completion. (Nazri Ramliy)
-But I prefer to keep term.h and include/term.h
-
 Trick with syntax ID works, but it's not nice.  Can we give a sequence nr to
 syntax item matches?  At least the ones with a replacement char.
 
+'undoreload' option: when fewer lines than these consider a reload as a change
+action and save the text before the reload, don't clear undo info.
+
+Patch for :find completion. (Nazri Ramliy)
+But I prefer to keep term.h and include/term.h  He will work on it.
+
 'fenc' in modeline problem: add option to reload the file when 'fenc' is set
 to a different value in a modeline?  Option can be default on.
 Could be done with an autocommand?
@@ -73,6 +76,8 @@ accented character. (Tony Mechelynck, 20
 Better Czech keymap. (Stepnem, 2010 May 4)  Use if no response from Jiri
 Tobisek.
 
+":drop" does not respect 'autochdir'. (Peter Odding, 2010 Jul 24)
+
 Use Dutch spell files from:
 http://extensions.services.openoffice.org/en/project/dict-nl
 Looks like this is newer than the new wordlist for Dutch:
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -1,4 +1,4 @@
-*various.txt*   For Vim version 7.3b.  Last change: 2010 Jul 21
+*various.txt*   For Vim version 7.3b.  Last change: 2010 Jul 24
 
 
 		  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -294,7 +294,7 @@ N  *+cmdline_compl*	command line complet
 N  *+cmdline_hist*	command line history |cmdline-history|
 N  *+cmdline_info*	|'showcmd'| and |'ruler'|
 N  *+comments*		|'comments'| support
-m  *+conceal*		"conceal" support, see |conceal| |:syn-conceal| etc.
+B  *+conceal*		"conceal" support, see |conceal| |:syn-conceal| etc.
 N  *+cryptv*		encryption support |encryption|
 B  *+cscope*		|cscope| support
 m  *+cursorbind*	|'cursorbind'| support
--- a/runtime/ftplugin/help.vim
+++ b/runtime/ftplugin/help.vim
@@ -13,7 +13,7 @@ set cpo&vim
 
 let b:undo_ftplugin = "setl fo< tw< cole< cocu<"
 
-setlocal formatoptions+=tcroql textwidth=78 cole=2 cocu=n
+setlocal formatoptions+=tcroql textwidth=78 cole=2 cocu=nc
 
 let &cpo = s:cpo_save
 unlet s:cpo_save
--- a/src/option.h
+++ b/src/option.h
@@ -189,7 +189,7 @@
 #define MOUSE_NONE	' '		/* don't use Visual selection */
 #define MOUSE_NONEF	'x'		/* forced modeless selection */
 
-#define COCU_ALL	"nvi"		/* flags for 'concealcursor' */
+#define COCU_ALL	"nvic"		/* flags for 'concealcursor' */
 
 /* characters for p_shm option: */
 #define SHM_RO		'r'		/* readonly */
--- a/src/screen.c
+++ b/src/screen.c
@@ -605,6 +605,8 @@ conceal_cursor_line(wp)
 	c = 'i';
     else if (State & NORMAL)
 	c = 'n';
+    else if (State & CMDLINE)
+	c = 'c';
     else
 	return FALSE;
     return vim_strchr(wp->w_p_cocu, c) != NULL;