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.
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.
nice config to start and play with
ReplyDeletebtw, 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\ %"
Thanks! Correction made and a updated version avialable. Keep those suggestions coming.
ReplyDeleteHave you looked into ftplugins?
ReplyDeleteFile 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
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 ;)
ReplyDeleteIt still has to be ship-shaped for 6+ changes. Thanks all the same. I will try and incorporate it in the next release :)
- Mayuresh
Mayuresh,
ReplyDeletelast 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,
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,
ReplyDeletecan 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
Hi,
ReplyDeleteYou 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!