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
- Host: GitHub
- URL: https://github.com/matveyt/vim-opera
- Owner: matveyt
- Created: 2020-05-15T05:26:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-11T09:21:39.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T22:17:56.617Z (over 1 year ago)
- Topics: vim, vim-plugin
- Language: Vim script
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.