1. introduction
  2. basics
  3. commands
  4. search
  5. visual mode
  6. configuration
  7. commandline commands
  8. macros
  9. marks and registers
  10. optional plugins

Commands

This is an overview of all the commands implemented in Vrapper. There is no description of their function as an excellent documentation for Vim is already available.

Motions

  • h
  • j
  • k
  • l
  • w
  • W
  • e
  • E
  • b
  • B
  • f
  • F
  • t
  • T
  • ;
  • ,
  • ^
  • $
  • 0
  • |
  • %
  • [[
  • []
  • [{
  • [(
  • [m
  • [M
  • ]]
  • ][
  • ]}
  • ])
  • ]m
  • ]M
  • H
  • M
  • L
  • {
  • }
  • (
  • )
  • gg
  • G
  • ge
  • g_
  • gE
  • <n>%
  • +
  • -
  • _

Operators and commands

  • y
  • Y
  • d
  • D
  • c
  • C
  • s
  • S
  • p
  • P
  • r
  • J
  • x
  • X
  • i
  • I
  • a
  • A
  • o
  • O
  • .
  • <
  • >
  • gc
  • gu
  • gU
  • gJ
  • &
  • g&
  • gq
  • gp
  • gP
  • gI

Search

  • /
  • ?
  • n
  • N
  • *
  • #
  • g*
  • g#

Text Objects

  • All text objects may be defined with i to exclude the bounding characters or a to include the bounding characters. For example, di( will delete everything within the parentheses and da( will delete the parentheses and everything within them.
    m<char> allows you to define any arbitrary <char> as the delimiter. For example, vim* will select (in visual mode) text between two * characters.
  • Comment text object c will select lines that start with single-line comments (//, #, --) or block comments (/* */, <!-- -->). Comment text object C will select multiple contiguous lines of single-line comments.

  • b
  • (
  • )
  • B
  • {
  • }
  • [
  • ]
  • <
  • >
  • "
  • '
  • `
  • w
  • W
  • s
  • p
  • t
  • c
  • C
  • m<char>
  • gn
  • gN

Counts

  • You can use the number keys to specify counts in front of other commands.

Other Commands

  • v
  • V
  • u
  • ~
  • !
  • q
  • @<char>
  • @@
  • gf
  • zo
  • zR
  • zc
  • zM
  • zt
  • zz
  • zb
  • z.
  • z-
  • gt
  • gT
  • ZZ
  • ZQ
  • ga
  • gv
  • gi
  • g;
  • g,
  • g~

Ctrl Commands

    Vrapper defines operations for some Ctrl keys. However, in all cases, if you have an Eclipse shortcut bound to that Ctrl key it will always perform the Eclipse operation. You have to unbind all instances of that Ctrl key from Eclipse for any of the following Vrapper bindings to work.

    Normal Mode

    <C-F>Page down
    <C-B>Page up
    <C-D>Half-page down
    <C-U>Half-page up
    <C-Y>Scroll line up
    <C-E>Scroll line down
    <C-I>
    TAB
    Forward navigation history
    <C-O>Backward navigation history
    <C-Home>Move to first character in file
    <C-End>Move to last character in file
    <C-R>Redo
    <C-A>Increment number under cursor
    <C-X>Decrement number under cursor
    g_<C-G>Display cursor position info
    <C-W>_qClose current buffer
    <C-^>Switch to previous buffer
    <C-6>Switch to previous buffer
    <buffer id><C-6 / C-^>Switch to buffer with given id

    Insert Mode

    <C-C>Leave insert mode
    <C-R>Paste contents of a register
    <C-A>Paste contents of last insert
    <C-E>Insert character below cursor
    <C-Y>Insert character above cursor
    <C-W>Delete previous word
    <C-N>Word completion, like content assist
    <C-P>Word completion, like content assist
    <C-X><C-L>Line completion
    <C-X><C-N>Next Line completion
    <C-X><C-P>Previous Line completion
    <C-U>Delete characters on line before cursor
    <C-O>Perform a single NormalMode command
    <C-T>Insert one shiftwidth (indent) at the beginning of the line
    <C-D>Remove one shiftwidth (indent) at the beginning of the line

    Content-Assist Mode

    (Enabled with :set contentassistmode)
    <C-N>Next Match
    <C-P>Previous Match

    Visual Mode

    <C-C>Leave visual mode
    <C-F>Page down
    <C-B>Page up
    <C-D>Half-page down
    <C-U>Half-page up

    Command-Line Mode

    <C-C>Leave command mode
    <C-W>Delete previous word
    <C-U>Delete all characters before the cursor
    <C-Y>Copy selection to clipboard
    <C-R><C-W>Insert word under cursor into command line
    <C-R><C-A>Insert (whitespace-delimited) WORD under cursor into command line
    <Shift-Insert>Paste clipboard contents into command line

    Search Mode

    <C-C>Leave search mode
    <C-W>Delete previous word

    CDT/JDT/PyDev optional plugins

    <C-]>Go to declaration

    Split Editor optional plugin

    <C-W><C-W>Go to other split
    <C-W><C-O>Close other splits
    <C-W><C-H>Move to left split
    <C-W><C-L>Move to right split
    <C-W><C-J>Move to split below
    <C-W><C-K>Move to split above

Quirks (incompatibilities with Vim)

    Some commands are directly bound to Eclipse actions so they behave a little differently than in Vim. They are:
    • zo
    • zR
    • zc
    • zM
    • <C-F>
    • <C-B>
    • <C-Y>
    • <C-E>
    • <C-I>
    • <C-O>
    • <C-N>
    • <C-P>