An open API service indexing awesome lists of open source software.

https://github.com/matveyt/vim-opera

Ex commands for arbitrary selections and motions
https://github.com/matveyt/vim-opera

vim vim-plugin

Last synced: over 1 year ago
JSON representation

Ex commands for arbitrary selections and motions

Awesome Lists containing this project

README

          

### Description

This plugin allows to use any `:h :range` commands with non-linewise motions and
selections.

#### Download and Install

```
$ git clone https://github.com/matveyt/vim-opera ~/.vim/pack/manual/start/vim-opera
```

### Usage

" map gs{motion} / {Visual}gs / gss to sort selection
nnoremap gs opera#mapto('sort')
xnoremap gs opera#mapto('sort')
nnoremap gss :sort

" apply :sort to arbitrary selection
:'<,'>B sort

See `:help opera.txt`.