sponsor Vim development Vim logo Vim Book Ad

colon_operator.vim : Use colon commands with motions

 script karma  Rating 20/5, Downloaded by 640  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
 
script type
utility
 
description
This plugin provides a mapping target to use an Ex command as an operator, in a way repeatable with the . (dot) operator. This allows you to, for example, :sort a text object like a paragraph, and then repeat it on another paragraph. Think of it as the : analogue to the ! motion.

https://sanctum.geek.nz/cgit/vim-colon-operator.git/
 
install details
Drop plugin/colon_operator.vim in your ~/.vim/plugin directory, and autoload/colon_operator.vim in ~/.vim/autoload. Add doc/colon_operator.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.

The single normal mode mapping target is <Plug>(ColonOperator). There is no default key mapping; you should define one yourself in your vimrc. For example:

        nmap g: <Plug>(ColonOperator)
 

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
vim-colon-operator-0.5.0.tar.gz 0.5.0 2021-04-23 7.0 Tom Ryder Code and documentation refactoring and cleanup, no significant usage changes
ip used for rating: 142.132.191.50

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