" Make commands work when keyboard sends greek characters if &encoding == "utf-8" set langmap=ΑA,ΒB,ΨC,ΔD,ΕE,ΦF,ΓG,ΗH,ΙI,ΞJ,ΚK,ΛL,ΜM,ΝN,ΟO,ΠP,QQ,ΡR,ΣS,ΤT,ΘU,ΩV,WW,ΧX,ΥY,ΖZ,αa,βb,ψc,δd,εe,φf,γg,ηh,ιi,ξj,κk,λl,μm,νn,οo,πp,qq,ρr,σs,τt,θu,ωv,ςw,χx,υy,ζz elseif &encoding == "utf-16le" " Can't set the encoding directly; do it as follows: silent execute "e /home/dds/.vim/langmap-greek-ucs-2le.vim"|silent execute "normal \"uyy@u" elseif !exists(&encoding) set encoding=cp1253 " ISO-8859-7 and cp1253 set langmap=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,QQ,R,S,T,U,V,WW,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,qq,r,s,t,u,v,w,x,y,z endif