-
Notifications
You must be signed in to change notification settings - Fork 0
Smart motions on words
vim-scripts/smartword
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2470 *smartword* is a Vim plugin to provide {motion}s on |word|s which are smarter than the built-in ones in some sense. For example, |w| moves the cursor to the next word as follows (here "#" means a position to which |w| moves the cursor for each time): <a href="http://www.vim.org/">www.vim.org</a> # # # # # # ## ## # # ## ## # # Because there are two types of words and |w| moves to the next word which can be the both types. Let's call "L" for a type of words and "P" for another type of words, where "L" means a word which consists of a sequence of letters (which are defined by 'iskeyword' option) and "P" means a word which consists of a sequence of other non-blank characters. In many cases, you might want to move to the next "L", not "P". This plugin provides {motion}s to behave so. For example, |<Plug>(smartword-w)| which is corresponding to |w| moves the cursor as follows: <a href="http://www.vim.org/">www.vim.org</a> # # # # # # # # # # See also |smartword-examples| for customization. See also the following image if the above figures aren't correctly displayed: http://gyazo.com/bc7887d9bb0f6aa3eee1e67b0d756b2e.png Requirements: - Vim 7.2 or later Latest version: http://github.com/kana/vim-smartword Document in HTML format: http://kana.github.com/config/vim/smartword.html