Friday, May 27, 2011

langmap & utf8 encoding

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iQIcBAEBAgAGBQJN32uxAAoJELhxXPVStcgQ/+YP/iMx5Ix8PlmSD5pIfiK/ZaCh
EWivfTknOrhpT6kq8booACbJSrRBAcm5ZUO41ndTOL7D83u4Sncvl8gGNO4k5Emz
56WvlZPW4HDFw3BIZSv0FlGEIZuZdB/67xpIgvfahjRjfaT7D5U9eppbWrgA5qwe
UH4PtObe3IKUIw4J7AXAkV5J2/Q8DxePicxeO1gs15kOn+MXr0SF+2bAtMADFveg
uDw73WmMBNOs184ABB4r3OTQyMChqrNnj47KR5PtNc5926Gbyal1R5DqXlWOEf+B
LbuDanEeNJtZevobRGEOCkZJAxvBnAhhwCCC3Knz1Tfts26kqjEeuUacgnMJH8AM
y1pQ6+Cd7Vb7UCUGf3R/av8CU5ojKe+B95ZKgMxx0Fs/3uTDxbeonrbLml8JYmk7
irQZ0874pHgGn+P2/tfp9aNTYJF8LjZS3awXBRJAjkxiM6HhP6rml5dCRibrCuvy
rxXtw3z/ocHtgqaIx3WDme25UEBiHEt4m1N/nDqUTQcJRvqGARS345otYc6IIBPS
7L9wGUgCZsHWJRq+I9RX37gOBmUZkzRpdTm0CooFgKNDfoasjIX0ZGL/nqYPUrcD
+/pbO58rIpw35pqo2p+TIurfvaAH96YhMkjOWaqEr9dZngDGE/xfdyo4mZEbvpTi
qnRvVYzAC0VcKO3EsMcG
=ELbP
-----END PGP SIGNATURE-----
Hello,

after some years spent with Emacs (used it due to 'possibly' better Haskell
mode), I'm back with here and my wrists are telling me: "Thank you!".

I want to learn Vim and use it for all my writings which means native
texts as well as (python+qt) programming. One problem is that Vim's
command mode commands are suitable for US keyboard layout, but I use
Croatian one which has the following mapping:

š --> [
Š --> {
đ --> ]
Đ --> }
[ --> altgr+f
] --> altgr+g
{ --> altgr+b
} --> altgr+n
....

I can bear and use e.g. altgr+[ to get square bracket while doing Python
programming, but using CTRL-altgr+g instead of CTRL-] is too much like Emacs
and I do not want to go back there. :-)

I read about 'langmap' option and tried to put the following in my .vimrc:

set langmap=đ]

in order to be able to use: CTRL-đ to simulate CTRL-].

Have I misunderstood langmap feature or do I miss something?

I've found the following tip:

http://vim.wikia.com/wiki/VimTip1348

but found some other info that langmap should work with utf-8 encoding in
vim>=7.2.x.

Any one can help?


Sincerely,
Gour

--
"In the material world, conceptions of good and bad are
all mental speculations…" (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810

No comments:

Post a Comment