Motions and text objects for erlang!
Vim script Perl
Latest commit e2eca97 Mar 30, 2014 @edkolev Add doc file
Permalink
Failed to load latest commit information.
after Populate b:undo_ftplugin Mar 30, 2014
doc Add doc file Mar 30, 2014
test Support prefixing motions with a count Mar 23, 2014
.gitignore Initial commit Mar 19, 2014
LICENSE Initial commit Mar 19, 2014
README.md Update README.md Mar 23, 2014

README.md

erlang-motions.vim

Motions and text objects for erlang!

Motions

  • ]] go to next function declaration

  • [[ previous function declaration

  • ]m next function clause

  • [m previous function clause

  • And more: ]M, [M, ][, [] go to end of next/previous clause/declaration.

    Each motion can be prefixed with a count.

Text objects

  • im, am inside/around function clause

  • iM, aM inside/around function declaration

Example

  • vim "visual inner method (function clause)":

screen shot 2014-03-21 at 11 05 25 pm copy

  • vaM "visual arround Method (function declaration)":

screen shot 2014-03-21 at 11 04 53 pm

Installation

  • Pathogen git clone https://github.com/edkolev/erlang-motions.vim ~/.vim/bundle/erlang-motions.vim
  • Vundle Bundle 'edkolev/erlang-motions.vim'
  • NeoBundle NeoBundle 'edkolev/erlang-motions.vim'

Inspired by