erlang-motions.vim
erlang-motions.vim copied to clipboard
Motions and text objects for erlang!
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)":
-
vaM
"visual arround Method (function declaration)":
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'