iconv, vim 7

iconv rocks. so often do i find this command really useful:
iconv -f original_encoding -t utf8 file > utf8_file

i've been using vim 7 beta for a while (which, by the way, was just released as vim 7 a day or so ago), but i never really realized how easy they've made it to look at arabic text files now (compared to what it used to be... there used to be an intricate setup process and a set of patches to run for vim 6x as documented by nadim on arabeyes. now, all you have to do is :set encoding=utf8 and :set arabic and you're set.

you can see a screenshot here.

Tags: ,

6 Responses to “iconv, vim 7”

  1. fariha says:

    salaam ahmed,

    i hope you are doing well insha-Allah. so, i was thinking about a dilemma with our MSA website that we have and was trying to think of any CS junkie i knew, and i thought of you (as is evident by the plot on ur site usually involving CS) :). i was wondering if you would like to help with the dilemma, take it like a part-time hobby? actually, it shouldn’t be that hard, but i need to build a database on the website or figure out some system for Muslims (like new freshman) who need housing accomodations at Tech and prefer to dorm with Muslims. do you think you can help?

  2. ahmedre says:

    wsalams,
    hope all is well with you too - i can probably help build the initial database, but i don’t think i can maintain the website (due to both 1. the fact that i am not good at making websites look good, and 2. the time needed to keep the site updated regularly etc). insha’Allah send me an email and we can discuss this further.
    wsalams.

  3. Anonymous says:

    The number of FBI agents that visit ones house is proportional to the number of muslims living with oneself. A good feature to add would be how many FBI agents to expect.

    I believe the formula is

    IF (muslims) = 1 #living alone
    Then Agents_Required = 2
    Else
    Agents_Required = (2 x (muslims)) - 1

  4. muchfitna says:

    You need to include a few factors to get it spot on:
    i) beard length, obviously
    ii) pants above the ankles
    iii) frequency of usage of ‘inshaAllah, mashaAllah, Alhamdulillah’

  5. Mazen says:

    Hi Ahmed, I just installed vim 7 on my Debian box, and Arabic doesn’t look at the pretty in Gvim like in your screenshot :/

    btw, I did :set encoding=utf8 and :set arabic.

    could it be the font?? what font are you using?

  6. ahmedre says:

    mazen -
    currently, i am using the Monospace font, size 11. (just do :set gfn=Monospace\ 11).