Plugins for Vimpulse ( www.emacswiki.org/emacs/Vimpulse ).
(require 'vimpulse-cjk)
It provides the following CJK patch for Viper/Vimpulse.
-
w/b acts properly on CJK texts
-
iw/aw text-object acts properly on CJK texts
This patch only affects on the implementation of Viper. So, it works fine if you are not using Vimpulse but Viper.
(require 'vimpulse-operator-comment)
It provides comment/uncomment operator. You can use it by typing C*
, for example, CC
for commenting out a line at the cursor, Ciw
for commenting out a word at the cursor. The key can be changed by setting custom variable vimpulse-operator-comment-key
.
|
denotes the cursor position.
Ciw
on
(foo ba|r)
comments out ‘bar
’, and Ci(
comments out ‘foo bar
’.
The idea is taken from relaxedcolumn.blog8.fc2.com/blog-entry-154.html, which is to add comment/uncomment operator to Vim.
(require 'vimpulse-operator-moccur)
It provides an operator for moccur-grep-find
command. You can use it by typing M*
, for example, Miw
for grepping a word under the cursor. The key can be changed by setting custom variable vimpulse-operator-moccur-grep-find-key
. You will be asked in which directory files to be grepped are located. Setting custom variable vimpulse-operator-moccur-use-current-directory
disables asking a directory and files in the current directory are grepped.
-
color-moccur.el www.emacswiki.org/emacs/color-moccur.el
(require 'vimpulse-relative-linum)
It provides relative line numbers shown up when you hit operator keys.
-
linum.el stud4.tuwien.ac.at/~e0225855/linum/linum.html (you don’t need this if emacs-version >= 23)
(require 'vimpulse-textoj-between)
It provides text object for selecting a range between a character. Default key bindings are ib
and ab
, which select a range between a character by which the command is followed. ib
selects an inner range. These bindings can be changed by setting custom variable vimpulse-textobj-between-i-key
and vimpulse-textobj-between-a-key
.
|
denotes the cursor position.
dib,
on
foo, b|ar, baz
deletes ‘ bar
’, and vib:
on
:foo :b|ar :baz
selects ‘bar
’.
The idea is taken from d.hatena.ne.jp/thinca/20100614/1276448745, which is to define textobj-between for Vim.