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?
7Ewill give you~, Ctrl-Shift-u, then60will give you ```. – muru Sep 25 '15 at 08:48Ctrl-v u 007e– VanLaser Sep 25 '15 at 10:12inoremap <leader>t <C-v>u007e,inoremap <leader>' <C-v>u0060etc. to create insert mode maps. Just search for the Unicode values for the special characters you want mapped, as @muru mentioned. Note: don't use those maps if your<leader>is<Space>:D – VanLaser Sep 25 '15 at 10:24man asciion Ubuntu. – muru Sep 25 '15 at 10:25AltGr ^andAltGr 'combos ? Reference: http://superuser.com/a/667654/292962 – VanLaser Sep 25 '15 at 10:30