1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-28 08:34:02 +02:00

Updated for several new commands

This commit is contained in:
rmaddy 2003-04-20 19:32:49 +00:00
parent 7edcb5b69b
commit 153547207b
3 changed files with 56 additions and 19 deletions

View File

@ -1,5 +1,27 @@
History of changes for @NAME@ History of changes for @NAME@
0.1.1 to @VERSION@
New Commands
- Added support for Ctrl-U while in insert mode
- Added support for 0 Ctrl-D to remove all indent in current line
- Added support for F1 while in insert - exit insert and bring up help topics
- Added support for F1 while in normal mode - bring up help topics
- Added support for :promptfind - Brings up Search Dialog
- Added support for :promptrepl - Brings up Search/Replace Dialog
- Added real support for :substitute - search and replace
- Added support for :& - search and replace
- Added support for :~ - search and replace
- Added support for @: - repeat last Ex command
Bug Fixes
- Using the '%' range in Ex commands ignored the first line
- Selecting a register for a command after using Ctrl-O in insert mode sent
the user back to insert mode before they could enter the command.
Keymappings
- F1
0.1.0 to 0.1.1 0.1.0 to 0.1.1
- Fixed text of README file (NAME and VERSION weren't properly substituted) - Fixed text of README file (NAME and VERSION weren't properly substituted)
- Fixed issue with pressing Enter when entering an Ex command (no more beep or - Fixed issue with pressing Enter when entering an Ex command (no more beep or

View File

@ -58,12 +58,15 @@ tag char action ~
insert the contents of a register insert the contents of a register
|i_CTRL-T| CTRL-T insert one shiftwidth of indent in current |i_CTRL-T| CTRL-T insert one shiftwidth of indent in current
line line
|i_CTRL-U| CTRL-U delete all entered characters in the current
line
|i_CTRL-W| CTRL-W delete word before the cursor |i_CTRL-W| CTRL-W delete word before the cursor
|i_CTRL-Y| CTRL-Y insert the character which is above the cursor |i_CTRL-Y| CTRL-Y insert the character which is above the cursor
|i_<Esc>| <Esc> end insert mode |i_<Esc>| <Esc> end insert mode
|i_CTRL-[| CTRL-[ same as <Esc> |i_CTRL-[| CTRL-[ same as <Esc>
|i_CTRL-]| CTRL-] insert live template... |i_CTRL-]| CTRL-] insert live template...
|i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode |i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode
|i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
|i_<Del>| <Del> delete character under the cursor |i_<Del>| <Del> delete character under the cursor
|i_<Left>| <Left> cursor one character left |i_<Left>| <Left> cursor one character left
|i_<S-Left>| <S-Left> cursor one word left |i_<S-Left>| <S-Left> cursor one word left
@ -83,6 +86,8 @@ tag char action ~
|i_<PageDown>| <PageDown> one screenfull forward |i_<PageDown>| <PageDown> one screenfull forward
|i_<Insert>| <Insert> toggle Insert/Replace mode |i_<Insert>| <Insert> toggle Insert/Replace mode
|i_<LeftMouse>| <LeftMouse> cursor at mouse click |i_<LeftMouse>| <LeftMouse> cursor at mouse click
|i_<F1>| <F1> stop insert mode and display help window
|i_<Help>| <Help> same as <F1>
TODO: TODO:
tag char action ~ tag char action ~
@ -105,16 +110,11 @@ and don't auto-indent
|i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#*:=} |i_CTRL-R_CTRL-P| CTRL-R CTRL-P {0-9a-z"%#*:=}
insert the contents of a register literally insert the contents of a register literally
and fix indent. and fix indent.
|i_CTRL-U| CTRL-U delete all entered characters in the current
line
|i_CTRL-V| CTRL-V {char} insert next non-digit literally |i_CTRL-V| CTRL-V {char} insert next non-digit literally
|i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single |i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single
byte. byte.
|i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
|i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore |i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore
it in the next line it in the next line
|i_<F1>| <F1> same as <Help>
|i_<Help>| <Help> stop insert mode and display help window
============================================================================== ==============================================================================
2. Normal mode *normal-index* 2. Normal mode *normal-index*
@ -151,12 +151,14 @@ tag char note action in Normal mode ~
|quote| "{a-zA-Z0-9.%#:-"} use buffer {a-zA-Z0-9.%#:-"} for next |quote| "{a-zA-Z0-9.%#:-"} use buffer {a-zA-Z0-9.%#:-"} for next
delete, yank or put (uppercase to append) delete, yank or put (uppercase to append)
({.%#:} only work with put) ({.%#:} only work with put)
|@:| @: repeat the previous ":" command N times
|$| $ 1 cursor to the end of Nth next line |$| $ 1 cursor to the end of Nth next line
|%| % 1 find the next (curly/square) bracket on |%| % 1 find the next (curly/square) bracket on
this line and go to its match, or go to this line and go to its match, or go to
matching comment bracket, or go to matching matching comment bracket, or go to matching
preprocessor directive. preprocessor directive.
|N%| {count}% 1 go to N percentage in the file |N%| {count}% 1 go to N percentage in the file
|&| & 2 repeat last :s
|'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with |'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
mark {a-zA-Z0-9} mark {a-zA-Z0-9}
|''| '' 1 cursor to the first CHAR of the line where |''| '' 1 cursor to the first CHAR of the line where
@ -318,6 +320,9 @@ tag char note action in Normal mode ~
|<S-Right>| <S-Right> 1 same as "w" |<S-Right>| <S-Right> 1 same as "w"
|<S-Up>| <S-Up> 1 same as CTRL-B |<S-Up>| <S-Up> 1 same as CTRL-B
|<Up>| <Up> 1 same as "k" |<Up>| <Up> 1 same as "k"
|<F1>| <F1> open a help window
|<Help>| <Help> same as <F1>
|<Undo>| <Undo> 2 same as "u"
TODO: TODO:
tag char action ~ tag char action ~
@ -328,7 +333,6 @@ tag char action ~
|CTRL-W| CTRL-W {char} window commands, see |CTRL-W| |CTRL-W| CTRL-W {char} window commands, see |CTRL-W|
|#| # 1 search backward for the Nth occurrence of |#| # 1 search backward for the Nth occurrence of
the ident under the cursor the ident under the cursor
|&| & 2 repeat last :s
|'(| '( 1 cursor to the first CHAR on the line of the |'(| '( 1 cursor to the first CHAR on the line of the
start of the current sentence start of the current sentence
|')| ') 1 cursor to the first CHAR on the line of the |')| ') 1 cursor to the first CHAR on the line of the
@ -346,7 +350,6 @@ tag char action ~
|?<CR>| ?<CR> 1 search backward for {pattern} of last search |?<CR>| ?<CR> 1 search backward for {pattern} of last search
|@| @{a-z} 2 execute the contents of named buffer {a-z} |@| @{a-z} 2 execute the contents of named buffer {a-z}
N times N times
|@:| @: repeat the previous ":" command N times
|@@| @@ 2 repeat the previous @{a-z} N times |@@| @@ 2 repeat the previous @{a-z} N times
|U| U 2 undo all latest changes on one line |U| U 2 undo all latest changes on one line
|`(| `( 1 cursor to the start of the current sentence |`(| `( 1 cursor to the start of the current sentence
@ -358,8 +361,6 @@ tag char action ~
|q| q (while recording) stops recording |q| q (while recording) stops recording
|{| { 1 cursor N paragraphs backward |{| { 1 cursor N paragraphs backward
|}| } 1 cursor N paragraphs forward |}| } 1 cursor N paragraphs forward
|<F1>| <F1> same as <Help>
|<Help>| <Help> open a help window
============================================================================== ==============================================================================
2.1 Text objects *objects* 2.1 Text objects *objects*
@ -480,6 +481,7 @@ tag char note action in Normal mode ~
the current line that is on the screen; the current line that is on the screen;
when 'wrap' on go to the rightmost character when 'wrap' on go to the rightmost character
of the current screen line of the current screen line
|g&| g& 2 repeat last ":s" on all lines
|g0| g0 1 when 'wrap' off go to leftmost character of |g0| g0 1 when 'wrap' off go to leftmost character of
the current line that is on the screen; the current line that is on the screen;
when 'wrap' on go to the leftmost character when 'wrap' on go to the leftmost character
@ -520,7 +522,6 @@ TODO:
tag char note action in Normal mode ~ tag char note action in Normal mode ~
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
|g#| g# 1 like "#", but without using "\<" and "\>" |g#| g# 1 like "#", but without using "\<" and "\>"
|g&| g& 2 repeat last ":s" on all lines
|g'| g'{mark} 1 like |'| but without changing the jumplist |g'| g'{mark} 1 like |'| but without changing the jumplist
|g`| g`{mark} 1 like |`| but without changing the jumplist |g`| g`{mark} 1 like |`| but without changing the jumplist
|gstar| g* 1 like "*", but without using "\<" and "\>" |gstar| g* 1 like "*", but without using "\<" and "\>"
@ -721,6 +722,7 @@ The commands are sorted on the non-optional part of their name.
|:<| :< shift lines one 'shiftwidth' left |:<| :< shift lines one 'shiftwidth' left
|:>| :> shift lines one 'shiftwidth' right |:>| :> shift lines one 'shiftwidth' right
|:&| :& repeat last ":substitute"
|:Next| :N[ext] go to previous file in the argument list |:Next| :N[ext] go to previous file in the argument list
|:argument| :argu[ment] go to specific file in the argument list |:argument| :argu[ment] go to specific file in the argument list
|:browse| :bro[wse] use file selection dialog |:browse| :bro[wse] use file selection dialog
@ -738,6 +740,8 @@ The commands are sorted on the non-optional part of their name.
|:mark| :ma[rk] set a mark |:mark| :ma[rk] set a mark
|:next| :n[ext] go to next file in the argument list |:next| :n[ext] go to next file in the argument list
|:previous| :prev[ious] go to previous file in argument list |:previous| :prev[ious] go to previous file in argument list
|:promptfind| :pro[mptfind] Search dialog
|:promptrepl| :promptr[epl] Search/Replace dialog
|:put| :pu[t] insert contents of register in the text |:put| :pu[t] insert contents of register in the text
|:quit| :q[uit] quit current window (when one window quit Vim) |:quit| :q[uit] quit current window (when one window quit Vim)
|:rewind| :rew[ind] go to the first file in the argument list |:rewind| :rew[ind] go to the first file in the argument list
@ -746,13 +750,15 @@ The commands are sorted on the non-optional part of their name.
|:write| :w[rite] write to a file |:write| :w[rite] write to a file
|:wq| :wq write to a file and quit window or Vim |:wq| :wq write to a file and quit window or Vim
|:yank| :y[ank] yank lines into a register |:yank| :y[ank] yank lines into a register
|:~| :~ repeat last ":substitute"
TODO: TODO:
============================================================================== ==============================================================================
5. EX commands *ex-cmd-index* *:index* 5. EX commands *ex-cmd-index* *:index*
|:!| :! filter lines or execute an external command
|:!!| :!! repeat last ":!" command
|:#| :# same as ":number" |:#| :# same as ":number"
|:&| :& repeat last ":substitute"
|:star| :* execute contents of a register |:star| :* execute contents of a register
|:@| :@ execute contents of a register |:@| :@ execute contents of a register
|:@@| :@@ repeat the previous ":@" |:@@| :@@ repeat the previous ":@"
@ -805,8 +811,6 @@ TODO:
|:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode |:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode
|:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode |:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode
|:ounmenu| :ounme[nu] remove menu for Operator-pending mode |:ounmenu| :ounme[nu] remove menu for Operator-pending mode
|:promptfind| :pro[mptfind] Search dialog
|:promptrepl| :promptr[epl] Search/Replace dialog
|:quitall| :quita[ll] quit Vim |:quitall| :quita[ll] quit Vim
|:qall| :qa[ll] quit Vim |:qall| :qa[ll] quit Vim
|:read| :r[ead] read file into the text |:read| :r[ead] read file into the text
@ -838,7 +842,6 @@ TODO:
|:wqall| :wqa[ll] write all changed buffers and quit Vim |:wqall| :wqa[ll] write all changed buffers and quit Vim
|:xit| :x[it] write if buffer changed and quit window or Vim |:xit| :x[it] write if buffer changed and quit window or Vim
|:xall| :xa[ll] same as ":wqall" |:xall| :xa[ll] same as ":wqall"
|:~| :~ repeat last ":substitute"
============================================================================== ==============================================================================
Commands that will probably never be implemented in @NAME@ Commands that will probably never be implemented in @NAME@
@ -906,7 +909,6 @@ tag char note action in Normal mode ~
click position click position
|<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position |<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position
|<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position |<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position
|<Undo>| <Undo> 2 same as "u"
|<MouseDown>| <MouseDown> scroll three lines downwards |<MouseDown>| <MouseDown> scroll three lines downwards
|<S-MouseDown>| <S-MouseDown> scroll a full page downwards |<S-MouseDown>| <S-MouseDown> scroll a full page downwards
|<MouseUp>| <MouseUp> scroll three lines upwards |<MouseUp>| <MouseUp> scroll three lines upwards
@ -1138,8 +1140,6 @@ tag command note action in Visual mode ~
============================================================================== ==============================================================================
10. EX commands *ex-cmd-index* *:index* 10. EX commands *ex-cmd-index* *:index*
|:!| :! filter lines or execute an external command
|:!!| :!! repeat last ":!" command
|:=| := print the cursor line number |:=| := print the cursor line number
|:Print| :P[rint] print lines |:Print| :P[rint] print lines
|:X| :X ask for encryption key |:X| :X ask for encryption key

View File

@ -1,4 +1,4 @@
*index.txt* For IdeaVIM version 0.1.1. Last change: 2003 Apr 17 *index.txt* For IdeaVIM version 0.1.1. Last change: 2003 Apr 18
IdeaVIM REFERENCE MANUAL by Rick Maddy IdeaVIM REFERENCE MANUAL by Rick Maddy
@ -37,12 +37,15 @@ tag char action ~
insert the contents of a register insert the contents of a register
|i_CTRL-T| CTRL-T insert one shiftwidth of indent in current |i_CTRL-T| CTRL-T insert one shiftwidth of indent in current
line line
|i_CTRL-U| CTRL-U delete all entered characters in the current
line
|i_CTRL-W| CTRL-W delete word before the cursor |i_CTRL-W| CTRL-W delete word before the cursor
|i_CTRL-Y| CTRL-Y insert the character which is above the cursor |i_CTRL-Y| CTRL-Y insert the character which is above the cursor
|i_<Esc>| <Esc> end insert mode |i_<Esc>| <Esc> end insert mode
|i_CTRL-[| CTRL-[ same as <Esc> |i_CTRL-[| CTRL-[ same as <Esc>
|i_CTRL-]| CTRL-] insert live template... |i_CTRL-]| CTRL-] insert live template...
|i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode |i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode
|i_0_CTRL-D| 0 CTRL-D delete all indent in the current line
|i_<Del>| <Del> delete character under the cursor |i_<Del>| <Del> delete character under the cursor
|i_<Left>| <Left> cursor one character left |i_<Left>| <Left> cursor one character left
|i_<S-Left>| <S-Left> cursor one word left |i_<S-Left>| <S-Left> cursor one word left
@ -62,6 +65,8 @@ tag char action ~
|i_<PageDown>| <PageDown> one screenfull forward |i_<PageDown>| <PageDown> one screenfull forward
|i_<Insert>| <Insert> toggle Insert/Replace mode |i_<Insert>| <Insert> toggle Insert/Replace mode
|i_<LeftMouse>| <LeftMouse> cursor at mouse click |i_<LeftMouse>| <LeftMouse> cursor at mouse click
|i_<F1>| <F1> stop insert mode and display help window
|i_<Help>| <Help> same as <F1>
============================================================================== ==============================================================================
2. Normal mode *normal-index* 2. Normal mode *normal-index*
@ -98,12 +103,14 @@ tag char note action in Normal mode ~
|quote| "{a-zA-Z0-9.%#:-"} use buffer {a-zA-Z0-9.%#:-"} for next |quote| "{a-zA-Z0-9.%#:-"} use buffer {a-zA-Z0-9.%#:-"} for next
delete, yank or put (uppercase to append) delete, yank or put (uppercase to append)
({.%#:} only work with put) ({.%#:} only work with put)
|@:| @: repeat the previous ":" command N times
|$| $ 1 cursor to the end of Nth next line |$| $ 1 cursor to the end of Nth next line
|%| % 1 find the next (curly/square) bracket on |%| % 1 find the next (curly/square) bracket on
this line and go to its match, or go to this line and go to its match, or go to
matching comment bracket, or go to matching matching comment bracket, or go to matching
preprocessor directive. preprocessor directive.
|N%| {count}% 1 go to N percentage in the file |N%| {count}% 1 go to N percentage in the file
|&| & 2 repeat last :s
|'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with |'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with
mark {a-zA-Z0-9} mark {a-zA-Z0-9}
|''| '' 1 cursor to the first CHAR of the line where |''| '' 1 cursor to the first CHAR of the line where
@ -265,6 +272,9 @@ tag char note action in Normal mode ~
|<S-Right>| <S-Right> 1 same as "w" |<S-Right>| <S-Right> 1 same as "w"
|<S-Up>| <S-Up> 1 same as CTRL-B |<S-Up>| <S-Up> 1 same as CTRL-B
|<Up>| <Up> 1 same as "k" |<Up>| <Up> 1 same as "k"
|<F1>| <F1> open a help window
|<Help>| <Help> same as <F1>
|<Undo>| <Undo> 2 same as "u"
============================================================================== ==============================================================================
2.1 Text objects *objects* 2.1 Text objects *objects*
@ -295,6 +305,7 @@ tag char note action in Normal mode ~
the current line that is on the screen; the current line that is on the screen;
when 'wrap' on go to the rightmost character when 'wrap' on go to the rightmost character
of the current screen line of the current screen line
|g&| g& 2 repeat last ":s" on all lines
|g0| g0 1 when 'wrap' off go to leftmost character of |g0| g0 1 when 'wrap' off go to leftmost character of
the current line that is on the screen; the current line that is on the screen;
when 'wrap' on go to the leftmost character when 'wrap' on go to the leftmost character
@ -441,6 +452,7 @@ The commands are sorted on the non-optional part of their name.
|:<| :< shift lines one 'shiftwidth' left |:<| :< shift lines one 'shiftwidth' left
|:>| :> shift lines one 'shiftwidth' right |:>| :> shift lines one 'shiftwidth' right
|:&| :& repeat last ":substitute"
|:Next| :N[ext] go to previous file in the argument list |:Next| :N[ext] go to previous file in the argument list
|:argument| :argu[ment] go to specific file in the argument list |:argument| :argu[ment] go to specific file in the argument list
|:browse| :bro[wse] Opens the 'File Open...' dialog |:browse| :bro[wse] Opens the 'File Open...' dialog
@ -458,13 +470,16 @@ The commands are sorted on the non-optional part of their name.
|:mark| :ma[rk] set a mark |:mark| :ma[rk] set a mark
|:next| :n[ext] go to next file in the argument list |:next| :n[ext] go to next file in the argument list
|:previous| :prev[ious] go to previous file in argument list |:previous| :prev[ious] go to previous file in argument list
|:promptfind| :pro[mptfind] Search dialog
|:promptrepl| :promptr[epl] Search/Replace dialog
|:put| :pu[t] insert contents of register in the text |:put| :pu[t] insert contents of register in the text
|:quit| :q[uit] quit current window (when one window quit Vim) |:quit| :q[uit] quit current window (when one window quit Vim)
|:rewind| :rew[ind] go to the first file in the argument list |:rewind| :rew[ind] go to the first file in the argument list
|:substitute| :s[ubstitute] Opens the 'Replace...' dialog |:substitute| :s[ubstitute] search and replace text
|:t| :t same as ":copy" |:t| :t same as ":copy"
|:write| :w[rite] write to a file |:write| :w[rite] write to a file
|:wq| :wq write to a file and quit window or Vim |:wq| :wq write to a file and quit window or Vim
|:yank| :y[ank] yank lines into a register |:yank| :y[ank] yank lines into a register
|:~| :~ repeat last ":substitute"