All Projects → joequery → Stupid Easymotion

joequery / Stupid Easymotion

A dumbed down version of EasyMotion that aids navigation on the current line

Labels

Projects that are alternatives of or similar to Stupid Easymotion

Vim Operator Substitute
Vim-Plugin: Use :substitute like an operator
Stars: ✭ 6 (-72.73%)
Mutual labels:  viml
Vim Nosecompiler
Vim Compiler file for the nose framework
Stars: ✭ 16 (-27.27%)
Mutual labels:  viml
Funcoo.vim
Functional Object Oriented VimL
Stars: ✭ 18 (-18.18%)
Mutual labels:  viml
Vim Pants
Vim plugin for Pants
Stars: ✭ 6 (-72.73%)
Mutual labels:  viml
Rainbow parentheses.vim
Better Rainbow Parentheses
Stars: ✭ 892 (+3954.55%)
Mutual labels:  viml
Vim Stim
StIm - Star Improved
Stars: ✭ 18 (-18.18%)
Mutual labels:  viml
Pocket.vim
Stars: ✭ 5 (-77.27%)
Mutual labels:  viml
Vim lib
Stars: ✭ 22 (+0%)
Mutual labels:  viml
Vimpeg
A PEG parser for Vim
Stars: ✭ 16 (-27.27%)
Mutual labels:  viml
Dotfiles
My dot files
Stars: ✭ 18 (-18.18%)
Mutual labels:  viml
Vim Slantstatus
A segmented vim statusline plugin
Stars: ✭ 6 (-72.73%)
Mutual labels:  viml
Easytags.vim
Automated tag file generation and syntax highlighting of tags in Vim
Stars: ✭ 15 (-31.82%)
Mutual labels:  viml
Vimrc
Stars: ✭ 18 (-18.18%)
Mutual labels:  viml
Phpclassexplorer
Simple (and I mean SIMPLE) method explorer for vim
Stars: ✭ 6 (-72.73%)
Mutual labels:  viml
Markmywords
Arbitrary bookmarks for your files and Vim docs
Stars: ✭ 19 (-13.64%)
Mutual labels:  viml
Vim Textobj Help
Vim plugin: Text objects for Vim help documents
Stars: ✭ 5 (-77.27%)
Mutual labels:  viml
Vim Diff Toggle
🛠 Vim plugin to speed up editing diff files
Stars: ✭ 17 (-22.73%)
Mutual labels:  viml
Learnviml
A suggested path for learning Vim's scripting language, VimL
Stars: ✭ 22 (+0%)
Mutual labels:  viml
Vim Session
Extended session management for Vim (:mksession on steroids)
Stars: ✭ 907 (+4022.73%)
Mutual labels:  viml
Gist.vim
Create gists from Vim
Stars: ✭ 18 (-18.18%)
Mutual labels:  viml

Stupid EasyMotion

Stupid EasyMotion is a fork of the popular EasyMotion plugin that only applies the target search to the current line.

Screencast

This screencast covers how to install and use Stupid-EasyMotion

Screencast

Why?

EasyMotion did too much to serve my needs effectively. I find navigating the lines of a document extremely easy thanks to the relative line numbering feature of Vim 7.3. Consequently, I felt the target characters created after the current line just added clutter. For example,

EasyMotion Example

(Image credit: Nettuts+)

I wanted a version of EasyMotion that only created target characters on the current line.

What does it look like?

Here's my cursor on a line before calling Stupid EasyMotion

Stupid EasyMotion Before

And After

Stupid EasyMotion After

How do I install?

Assuming your vim directory is located at ~/.vim, move the contents of autoload to ~/.vim/autoload, and the contents of plugin to ~/.vim/plugin.

How do I use?

The available commands are

  • <Leader><Leader>w - make every word a target
  • <Leader><Leader>W - make every space separated word a target
  • <Leader><Leader>fx - make every character x in the line a target

By default, your <Leader> key is "\"

If you don't like leader based commands, you can remap in your ~/.vimrc via

" Easymotion shortcut
map <C-O> <Leader><Leader>w
map <C-E> <Leader><Leader>W

I chose Ctrl-o and Ctrl-e because I never use those commands, but you can change it to whatever.

Can I use Stupid EasyMotion with normal EasyMotion?

Yes! If you have both EasyMotion and Stupid EasyMotion installed, Stupid EasyMotion will use the w, W, and f commands, but all other EasyMotion commands will be executed by the normal EasyMotion plugin.

Additionally, if Stupid EasyMotion overrides an EasyMotion command that you'd rather not have overridden, you can simply adjust the Default key mapping section of the plugin/StupidEasyMotion.vim file. For example, to free up the f mapping, change

" Default key mapping {{{
	call StupidEasyMotion#InitMappings({
	\   'f' : { 'name': 'F'  , 'dir': 0 }
	\ , 'w' : { 'name': 'WB' , 'dir': 0 }
	\ , 'W' : { 'name': 'WBW', 'dir': 0 }
	\ })
" }}}

to

" Default key mapping {{{
	call StupidEasyMotion#InitMappings({
	\   'w' : { 'name': 'WB' , 'dir': 0 }
	\ , 'W' : { 'name': 'WBW', 'dir': 0 }
	\ })
" }}}

Credit

Thanks to the EasyMotion team for providing a such a well written plugin. I know absolutely nothing about Vimscript, yet I was able to make these adjustments.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].