Saturday, June 11, 2011

My vi settings files - *still* avialable for all.

Wow, It's been nearly 6 years since I uploaded the first version of _vimrc (vi settings file). And near 11 years since I first started using it . By now I have used it on nearly every platform I've worked on - and those have been quite a few.

And still there isn't a single day that I don't discover something new I can do with Vi(m). Surely, there is no better proof that this little application has stood the test of time.

7 comments:

  1. nice config to start and play with

    btw, you missed the "," between BufRead and BufNewFile
    "autocmd BufRead BufNewFile *.java set makeprg=javac\ %"
    with it ...make works on .java files...(vim 6.3)
    "autocmd BufRead,BufNewFile *.java set makeprg=javac\ %"

    ReplyDelete
  2. Thanks! Correction made and a updated version avialable. Keep those suggestions coming.

    ReplyDelete
  3. Have you looked into ftplugins?
    File Type Plugins.
    Place the makeprg setting in a file (eg java_init.vim) and save it to the ftplugins folder instead of your plugins folder.
    I'm no guru but I think this is the preferred method in vim 6+. ie take any autocommands out of your _vimrc file.

    :h ftplugin

    ReplyDelete
  4. thats an excellent idea. Thanks for the suggestion. However, this _vimrc was a .vimrc file in a previous lifetime on a solaris box which was running a ancient version of Vi ;)

    It still has to be ship-shaped for 6+ changes. Thanks all the same. I will try and incorporate it in the next release :)

    - Mayuresh

    ReplyDelete
  5. Mayuresh,

    last version is really good, infact i am new in using vim on windows earlier i was using notepad++ and your file helped me a lot , i really appreciate your efforts,

    ReplyDelete
  6. there is still an issue that when you open multiple files it either opens them in same instance of gvim or in a separate one,

    can you make some changes so that by default it will open the next file in a tab.

    also include ctrl+tab functionality if possible.

    you can contact me on manu4480@gmail.com

    ReplyDelete
  7. Hi,

    You can do that in the present gvim as well. Select multiple files, right click and then select the menu item - "Edit with multiple Vims" or "Edit with single Vim" (as required).

    Hope this helps!

    ReplyDelete