Skip to content

robertbasic/vim-argument-swapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-argument-swapper

A VIM plugin to swap 2 arguments in a method call/definition.

Usage

Put cursor over the first argument, :ArgumentSwapperSwap, done.

Map it to a leader shortcut, for example:

map <leader>as :ArgumentSwapperSwap<cr>

Why?

To make it easy to turn:

in_array($haystack, $needle);

into:

in_array($needle, $haystack);

Installation

Using vim-plug:

Plug 'robertbasic/vim-argument-swapper'

Configuration

By default the plugin uses Python 3.

let g:argumentswapper_python_version = 2 in your .vimrc file to use Python 2.

About

A Vim plugin to swap 2 arguments in a method call/definition.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published