summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2006-02-09 23:54:54 +0000
committervimboss <devnull@localhost>2006-02-09 23:54:54 +0000
commitaa26f60dd8a86ad421020b3573ecd488f78e3f00 (patch)
tree3a64f06035001adac63272d9c7d0c42c7452359b
parentaa2ce11726cf66f1ec3ac78af42f3bf4cd0c38e1 (diff)
downloadvim-7.0195.tar.gz
updated for version 7.0195v7.0195v7-0195
-rw-r--r--runtime/doc/todo.txt35
-rw-r--r--runtime/doc/version7.txt6
-rw-r--r--src/main.c11
3 files changed, 33 insertions, 19 deletions
diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index 95df11bc..149af4db 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -1,4 +1,4 @@
-*todo.txt* For Vim version 7.0aa. Last change: 2006 Feb 07
+*todo.txt* For Vim version 7.0aa. Last change: 2006 Feb 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -32,10 +32,13 @@ be worked on, but only if you sponsor Vim development. See |sponsor|.
Crash with X command server (Ciaran McCreesh).
+Add ":lcscope" to use location list instead of quickfix list.
+
ccomplete / omnicomplete:
When editing compl_leader <CR> should accept the current match.
Somehow select another match without changing the compl_leader, so that you
can use CTRL-L next? Perhaps with <S-Up> and <S-Down>?
+- Flickering because of syntax highlighting redrawing further lines.
- Complete the longest common match instead of the first match?
Do this when "longest" is in 'completeopt'.
Pressing CTRL-N or CTRL-P will get the whole match, as before.
@@ -106,6 +109,9 @@ into account. (Mikolaj Machowski) Store line count in an extra array?
Is it possible to keep the command-line window open? Would actually work like
closing it, executing the command and re-opening it (at the same position).
+":keepundo": add change to existing undo chain, so that one "u" undoes them
+all. (Gautam Iyer)
+
Mac unicode patch (Da Woon Jung):
- selecting proportional font breaks display
- UTF-8 text causes display problems. Font replacement causes this.
@@ -2252,31 +2258,25 @@ Autocommands:
8 Add ScriptReadCmd event: used to load remote Vim scripts, e.g.
"vim -u http://mach/path/vimrc".
7 Add TagJump event: do something after jumping to a tag.
+8 Add "TagJumpFile" autocommand: When jumping to another file for a tag.
+ Can be used to open "main.c.gz" when "main.c" isn't found.
8 Use another option than 'updatetime' for the CursorHold event. The two
things are unrelated for the user (but the implementation is more
difficult).
-8 Add an event like CursorHold that is triggered repeatedly, not just once.
-8 Also trigger CursorHold in Insert mode?
-7 Add autocommand event for when a buffer cannot be abandoned. So that user
- can define the action taking (autowrite, dialog, fail) based on the kind
- of file. (Yakov Lerner) Or is BufLeave sufficient?
-8 Can't use ":normal" in CursorHold autocommands. Make the CursorHold event
- insert a special key code, and call the autocommand functions from a
- higher level, so that vgetc() isn't used recursively.
-8 Autocommands should not change registers. And marks? And the jumplist?
- And anything else?
+8 Add an event like CursorHold that is triggered repeatedly, not just once
+ after typing something.
+7 Add autocommand event for when a buffer cannot be abandoned. So that the
+ user can define the action taking (autowrite, dialog, fail) based on the
+ kind of file. (Yakov Lerner) Or is BufLeave sufficient?
8 Autocommand for when modified files have been found, when getting input
focus again (e.g., FileChangedFocus).
Check when: getting focus, jumping to another buffer, ...
+8 Autocommands should not change registers. And marks? And the jumplist?
+ And anything else? Add a command to save and restore these things.
8 Add autocommands, user functions and user commands to ":mkvimrc".
-8 Add "TagJumpFile" autocommand: When jumping to another file for a tag.
- Can be used to open "main.c.gz" when "main.c" isn't found.
6 Add KeymapChanged event, so that the effects of a different keymap can be
handled (e.g., other font) (Ron Aaron)
-7 Add a way to skip an autocommand if going from one *.c file to another *.c
- file.
-7 When trying to open a directory, don't load the file but trigger an
- autocommand event OpenDirectory.
+7 When trying to open a directory, trigger an OpenDirectory event.
7 Add file type in front of file pattern: <d> for directory, <l> for link,
<x> for executable, etc. <&xxx> for Risc OS. With commas to separate
alternatives. The autocommand is only executed when both the file type
@@ -2293,7 +2293,6 @@ Autocommands:
- Add events to autocommands:
Error - When an error happens
NormalEnter - Entering Normal mode
- InsertEnter - Entering Insert mode
ReplaceEnter - Entering Replace mode
CmdEnter - Entering Cmdline mode
VisualEnter - Entering Visual mode
diff --git a/runtime/doc/version7.txt b/runtime/doc/version7.txt
index ced704f3..17d29311 100644
--- a/runtime/doc/version7.txt
+++ b/runtime/doc/version7.txt
@@ -1,4 +1,4 @@
-*version7.txt* For Vim version 7.0aa. Last change: 2006 Feb 05
+*version7.txt* For Vim version 7.0aa. Last change: 2006 Feb 09
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -588,6 +588,10 @@ New autocommand events: ~
|SpellFileMissing| when a spell file can't be found
+|CursorHoldI| the user doesn't press a key for a while in Insert mode
+|CursorMoved| the cursor was moved in Normal mode
+|CursorMovedI| the cursor was moved in Insert mode
+
New items in search patterns: ~
|/\%d| \%d123 search for character with decimal number
diff --git a/src/main.c b/src/main.c
index 2661c26b..0b96d16c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -988,6 +988,17 @@ main_loop(cmdwin, noexmode)
skip_redraw = FALSE;
else if (do_redraw || stuff_empty())
{
+#ifdef FEAT_AUTOCMD
+ /* Trigger CursorMoved if the cursor moved. */
+ if (!finish_op && has_cursormoved()
+ && !equalpos(last_cursormoved, curwin->w_cursor))
+
+ {
+ apply_autocmds(EVENT_CURSORMOVED, NULL, NULL, FALSE, curbuf);
+ last_cursormoved = curwin->w_cursor;
+ }
+#endif
+
#if defined(FEAT_DIFF) && defined(FEAT_SCROLLBIND)
/* Scroll-binding for diff mode may have been postponed until
* here. Avoids doing it for every change. */