I usually use Vim with an Italian keyboard (I'm from Italy), (mainly in an Ubuntu Linux Virtualbox guest from a Windows host).
I have problems when I have to enter some frequently used characters (in Unix) not present in Italian keyboard layout, I'm referring especially to these chars:
- tilde: ~ (home directory alias)
- back quote / back tick:
`
(mainly in ruby programs)
Ok, I can use $HOME
instead of ~
, but there is any Vim specific way (maybe some keystroke sequence) to enter these (and other) "special" chars non present in keyboard available?
Solution could be a key-binding in .vimrc
?
By example I have in my .vimrc
this:
map ' `
but as you can imagine I'm unhappy with this specific key remap...( and I have <Fx>
already occupied)
BTW, Maybe the question is a bit off-topic because it is not related to Vim directly, but to the keyboard hw/ language setting; maybe ask in Stack Overflow is better?
7E
will give you~
, Ctrl-Shift-u, then60
will give you`
. – muru Sep 25 '15 at 8:48Ctrl-v u 007e
– VanLaser Sep 25 '15 at 10:12man ascii
on Ubuntu. – muru Sep 25 '15 at 10:25AltGr ^
andAltGr '
combos ? Reference: superuser.com/a/667654/292962 – VanLaser Sep 25 '15 at 10:30