sponsor Vim development Vim logo Vim Book Ad

erlang-motions.vim : Motions and text objects for erlang

 script karma  Rating 0/0, Downloaded by 561  Comments, bugs, improvements  Vim wiki

created by
Evgeni Kolev
 
script type
ftplugin
 
description
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

To remind yourself what's an erlang function clause/declaration:
http://erlang.org/doc/reference_manual/functions.html

All these additions are consistent with vim's default behaviour (but vim's default behaviour doesn't work on erlang).

For a screenshot and better docs, and latest version check out GitHub:
https://github.com/edkolev/erlang-motions.vim
 
install details
Extract in ~/.vim (~\vimfiles on Windows)
Or even better, grab it from https://github.com/edkolev/erlang-motions.vim
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
erlang-motions.zip 1.0 2014-07-01 7.0 Evgeni Kolev Initial upload
ip used for rating: 3.81.139.99

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github