https://github.com/airblade/vim-accent
A Vim plugin for typing accented characters without remembering their pseudo versions.
https://github.com/airblade/vim-accent
Last synced: 5 months ago
JSON representation
A Vim plugin for typing accented characters without remembering their pseudo versions.
- Host: GitHub
- URL: https://github.com/airblade/vim-accent
- Owner: airblade
- Created: 2016-02-04T11:38:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-09-15T12:04:36.000Z (about 3 years ago)
- Last Synced: 2025-03-30T12:12:31.077Z (6 months ago)
- Language: Vim Script
- Size: 3.91 KB
- Stars: 9
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# vim-accent
A Vim plugin for typing accented characters without having to remember the handful of pseudo versions. It's an alternative to digraphs and the accents keymap.
How would you type `ä` in insert mode? How would you replace `a` with `ä` in normal mode?
## With this plugin
In insert mode: type `a` and hit `` to bring up a list of accented `a`s to choose from.
In normal mode with the cursor on `a`: use `gx` to cycle through the alternatives.
It's always the same process, no matter what accent you want.
## Digraphs
In insert mode: type `a:`.
In normal mode with the cursor on `a`: type `ra:`.
See `:help digraphs`.
## Accents keymap
Type `:set keymap=accents`. This could be in your vimrc.
In insert mode: type `:a`.
In normal mode with the cursor on `a`: type `r:a`.
See `:help mbyte-keymap` and `$VIMRUNTIME/keymap/accents.vim`. You can toggle the keymap on and off with `` in insert mode or command mode.
## Limitations
The plugin uses a custom completion function for its list of accents, but Vim only allows one type of custom completion at a time. A workaround is to use a wrapper function, as described [at the end of this article](http://junegunn.kr/2014/06/emoji-completion-in-vim/).
The plugin could allow you to opt in or out of accents by language...but it doesn't yet.
## Licence
Copyright Andrew Stewart. Distributed under the MIT licence.