https://github.com/tenfyzhong/axring.vim
:ring: Enhance `<c-a>`, `<c-x>` ability to switch keywords.
https://github.com/tenfyzhong/axring.vim
c-a c-x plugin vim
Last synced: 5 months ago
JSON representation
:ring: Enhance `<c-a>`, `<c-x>` ability to switch keywords.
- Host: GitHub
- URL: https://github.com/tenfyzhong/axring.vim
- Owner: tenfyzhong
- License: mit
- Created: 2017-08-29T12:11:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2025-10-01T04:34:24.000Z (9 months ago)
- Last Synced: 2025-10-01T06:24:27.391Z (9 months ago)
- Topics: c-a, c-x, plugin, vim
- Language: Vim Script
- Homepage:
- Size: 40 KB
- Stars: 30
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# axring.vim
[](https://github.com/tenfyzhong/axring.vim/actions/workflows/test.yml)
[](https://github.com/tenfyzhong/axring.vim/tags)
[](https://github.com/tenfyzhong/axring.vim/blob/master/doc/axring.txt)

:ring: Enhance ``, `` ability to switch keywords.
# Feature
1. `` to select next word on the ring.
1. `` to select previous word on the ring.
1. Echo the ring when select a word.
1. Support [repeat.vim][]
# Screenshot

# Install
I suggest you to use a plugin manager, such vim-plug or others.
- [vim-plug][]
```viml
Plug 'tenfyzhong/axring.vim'
```
- Manual
```
git clone https://github.com/tenfyzhong/axring.vim.git ~/.vim/bundle/axring.vim
echo 'set rtp+=~/.vim/bundle/axring.vim' >> ~/.vimrc
vim -c 'helptag ~/.vim/bundle/axring.vim/doc' -c qa!
```
# Example Configruation
```viml
let g:axring_rings = [
\ ['&&', '||'],
\ ['&', '|', '^'],
\ ['&=', '|=', '^='],
\ ['>>', '<<'],
\ ['>>=', '<<='],
\ ['==', '!='],
\ ['>', '<', '>=', '<='],
\ ['++', '--'],
\ ['true', 'false'],
\ ['verbose', 'debug', 'info', 'warn', 'error', 'fatal'],
\ ]
let g:axring_rings_go = [
\ [':=', '='],
\ ['byte', 'rune'],
\ ['complex64', 'complex128'],
\ ['int', 'int8', 'int16', 'int32', 'int64'],
\ ['uint', 'uint8', 'uint16', 'uint32', 'uint64'],
\ ['float32', 'float64'],
\ ['interface', 'struct'],
\ ]
```
# Usage
1. Configure option *g:axring_ring*
1. Edit a file.
1. Place you cursor on a word which is in the *g:axring_ring*
1. type `` or ``
[vim-plug]: https://github.com/junegunn/vim-plug
[repeat.vim]: https://github.com/tpope/vim-repeat