VIM: command aliases in Windows

VIM: command aliases in Windows

Considering, we have folder with Makefile, other useful files (tags file, some bat files and so on) and deep-deep folders with sources. We are working with make/gmake in top folder but need to change directory to another deep-deep folders to make something there, for example, run vim… ^) To do it, I use script:

@echo off
PATH = C:\Program Files\Atmel\Atmel Studio 6.0\avrdbg;C:\Program Files\Atmel\Atmel Studio 6.0\extensions\Atmel\AVRGCC\3.3.2.31\AVRToolchain\bin;C:\papps\PortableApps\MinGWPortable\App\MinGW\msys\1.0\bin;%PATH%
start /D %CD%\deep\deep\src /B cmd.exe
doskey myvim=c:\Vim\vim73\gvim.exe -c ":set tags=../../../tags" $*

You can see there set of PATH variable for new terminal, aliasing new command myvim with autoset tags file. You can also setup individual _vimrc (per project:), if you need. Save this script as cli.bat, run it and call in terminal: myvim some_src.c No more long paths and pushd/popd/cd! :)