On Sun, Jun 27, 2021 at 11:32:21AM +0530, Manas wrote:
> I wanted to know that will it be interesting to add a dedicated support
> for typing unicode characters in Vim? Like we have insert and replace
> modes, will it be useful to have a "unicode-mode" which when activated
> can enable a typist to type in unicodes at ease and allow them to type
> those characters continuously? Current implementations of using <C-v> for
> unicodes and <C-k> for digraphs become tedious for typing continually.
Probably you can set this in your .vimrc:
`autocmd set digraph`
I had the reverse problem a while ago in mutt, where vim is my editor --
making a typo, hitting <backspace>, typing the right character and
ending up with Japanese katakana or hiragana. After some searching, I
found out that I had a line in my .vimrc that triggered this when
writing an email. Your wish is the reverse of this, although I don't
know if the line above is syntaxually right. But you just can find out.
As with my line that only worked when composing an email in mutt, you
could set it in your .vimrc only to work for specific file types, etc.
The original line I had is
`autocmd BufNewFile,BufRead /tmp/mutt* set noautoindent filetype=mail
wm=0 tw=78 digraph nonumber nolist`
Since I am a search-copy-paste sysadmin, I can't tell you what to change
for your purposes, but there is plenty of info on the Net.
//meine