diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-07-23 22:10:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-07-23 22:10:27 +0200 |
commit | f5963f719eb85e8aa71aeb5c23c4edf4949adef1 (patch) | |
tree | 9c3ab6deeb29ff964cbd77d01e885b3237f6c59a /runtime | |
parent | c88ebf7fa81833b401423214c62d0ecfaaa68b78 (diff) |
Add the 'concealcursor' option to decide when the cursor line is to be
concealed or not.
Rename 'conc' to 'cole' as the short name for 'conceallevel'.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 26 | ||||
-rw-r--r-- | runtime/doc/quickref.txt | 5 | ||||
-rw-r--r-- | runtime/doc/syntax.txt | 8 | ||||
-rw-r--r-- | runtime/doc/tags | 4 | ||||
-rw-r--r-- | runtime/doc/todo.txt | 21 | ||||
-rw-r--r-- | runtime/ftplugin/help.vim | 4 |
6 files changed, 50 insertions, 18 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 297939fbe1..9344e884e1 100644 --- 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 20 +*options.txt* For Vim version 7.3b. Last change: 2010 Jul 23 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1707,7 +1707,26 @@ A jump table for the options with a short description can be found at |Q_op|. combination with "menu" or "menuone". -'conceallevel' 'conc' *'conceallevel'* *'conc'* + *'concealcursor'* *'cocu'* +'concealcursor' 'cocu' string (default: "") + local to window + {not in Vi} + {not available when compiled without the |+conceal| + feature} + Sets the modes in which text in the cursor line can also be concealed. + When the current mode is listed then concealing happens just like in + other lines. + n Normal mode + v Visual mode + i Insert mode + + A useful value is "n". 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. + + +'conceallevel' 'cole' *'conceallevel'* *'cole'* number (default 0) local to window {not in Vi} @@ -1727,7 +1746,8 @@ A jump table for the options with a short description can be found at |Q_op|. 3 Concealed text is completely hidden. Note: in the cursor line concealed text is not hidden, so that you can - edit and copy the text. + edit and copy the text. This can be changed with the 'concealcursor' + option. *'confirm'* *'cf'* *'noconfirm'* *'nocf'* 'confirm' 'cf' boolean (default off) diff --git a/runtime/doc/quickref.txt b/runtime/doc/quickref.txt index 1272c4ca55..d02c944c26 100644 --- a/runtime/doc/quickref.txt +++ b/runtime/doc/quickref.txt @@ -1,4 +1,4 @@ -*quickref.txt* For Vim version 7.3b. Last change: 2009 Jan 22 +*quickref.txt* For Vim version 7.3b. Last change: 2010 Jul 22 VIM REFERENCE MANUAL by Bram Moolenaar @@ -647,7 +647,8 @@ Short explanation of each option: *option-list* 'complete' 'cpt' specify how Insert mode completion works 'completefunc' 'cfu' function to be used for Insert mode completion 'completeopt' 'cot' options for Insert mode completion -'conceallevel' 'conc' whether concealable text is shown or hidden +'concealcursor' 'cocu' whether concealable text is hidden in cursor line +'conceallevel' 'cole' whether concealable text is shown or hidden 'confirm' 'cf' ask what to do about unsaved/read-only files 'conskey' 'consk' get keys directly from console (MS-DOS only) 'copyindent' 'ci' make 'autoindent' use existing indent structure diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 9c9caefc85..932377164d 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 7.3b. Last change: 2010 Jul 21 +*syntax.txt* For Vim version 7.3b. Last change: 2010 Jul 23 VIM REFERENCE MANUAL by Bram Moolenaar @@ -3149,9 +3149,9 @@ conceal *conceal* *:syn-conceal* When the "conceal" argument is given, the item is marked as concealable. Whether or not it is actually concealed depends on the value of the -'conceallevel' option. If 'modifiable' option is on, concealable items -in the current line are always displayed unconcealed to be able to edit -the line. +'conceallevel' option. The 'concealcursor' option is used to decide whether +concealable items in the current line are displayed unconcealed to be able to +edit the line. concealends *:syn-concealends* diff --git a/runtime/doc/tags b/runtime/doc/tags index e36c6a4c46..45ee674c32 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -127,6 +127,8 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME* 'cmp' options.txt /*'cmp'* 'cms' options.txt /*'cms'* 'co' options.txt /*'co'* +'cocu' options.txt /*'cocu'* +'cole' options.txt /*'cole'* 'colorcolumn' options.txt /*'colorcolumn'* 'columns' options.txt /*'columns'* 'com' options.txt /*'com'* @@ -136,7 +138,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME* 'complete' options.txt /*'complete'* 'completefunc' options.txt /*'completefunc'* 'completeopt' options.txt /*'completeopt'* -'conc' options.txt /*'conc'* +'concealcursor' options.txt /*'concealcursor'* 'conceallevel' options.txt /*'conceallevel'* 'confirm' options.txt /*'confirm'* 'consk' options.txt /*'consk'* diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt index f7f7f12bc3..3fd8132978 100644 --- a/runtime/doc/todo.txt +++ b/runtime/doc/todo.txt @@ -1,4 +1,4 @@ -*todo.txt* For Vim version 7.3b. Last change: 2010 Jul 22 +*todo.txt* For Vim version 7.3b. Last change: 2010 Jul 23 VIM REFERENCE MANUAL by Bram Moolenaar @@ -30,11 +30,16 @@ be worked on, but only if you sponsor Vim development. See |sponsor|. *known-bugs* -------------------- Known bugs and current work ----------------------- -Conceal in help files doesn't work nice. How about adding an 'concealcursor' -option, when on: -- cursorline is concealed. -- line is redrawn on every movement -- display function corrects cursor position. +a |test| and a |test| and a |test|. +Conceal in help files doesn't work nice. How about adding a 'concealcursor' +option: +-> implemented, but column isn't quite right just after concealed character. +- Don't conceal in Insert and Visual mode? Or make 'concealcursor' a string + option with mode characters. +- Check position in wrapped line. + +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. Include patch for horizontal scoll wheel? (Bjorn Winckler, 2010 Jul 20) Additional patch Jul 21. @@ -272,6 +277,10 @@ Win32: use different args for SearchPath()? (Yasuhiro Matsumoto, 2009 Jan 30) Win32: completion of file name ":e c:\!test" results in ":e c:\\!test", which does not work. (Nieko Maatjes, 2009 Jan 8, Ingo Karkat, 2009 Jan 22) +opening/closing window causes other window with 'winfixheight' to change +height. Also happens when there is another window in the frame, if it's not +very high. (Yegappan Lakshmanan, 2010 Jul 22) + Directory wrong in session file, caused by ":lcd" in BufEnter autocommand. (Felix Kater, 2009 Mar 3) diff --git a/runtime/ftplugin/help.vim b/runtime/ftplugin/help.vim index fe47f3944c..fff9527127 100644 --- a/runtime/ftplugin/help.vim +++ b/runtime/ftplugin/help.vim @@ -11,9 +11,9 @@ let b:did_ftplugin = 1 let s:cpo_save = &cpo set cpo&vim -let b:undo_ftplugin = "setl fo< tw< conc<" +let b:undo_ftplugin = "setl fo< tw< cole< cocu<" -setlocal formatoptions+=tcroql textwidth=78 conc=2 +setlocal formatoptions+=tcroql textwidth=78 cole=2 cocu=n let &cpo = s:cpo_save unlet s:cpo_save |