53858Re: vimrc on windows
- Sep 29, 2004Dan Sharp <dwsharp@...> wrote:
> Antoine J. Mechelynck wrote:I used to know but forgot. Thanks for reminding me.
> > David.Fishburn@... wrote:
> > > NB. I don't see an "Application Data" subdir in my C:\Documents
> > > and Settings\Tony (aka %USERPROFILE%) on my new (French-language)
> > > XP system.
> > > That directory is hidden, so in explorer you have to tell it to
> > > show hidden files.
> > > Dave
> > [...]
> > Oh, I see. And I tend to forget that in CMD.EXE I have to use /A:
> > to see the full contents, hidden or not (on my former system I ueds
> > NDOS.COM, a clone of 4DOS.COM, and there I could tell it once and
> > for all that I always wanted to see them). On Unix I seem to
> > remember ls -a somewhat more easily -- and I can use aliases.
> For the 'dir' command, you can set the DIRCMD environment variable to
> contain whatever flags you want to use by default. See the output of
> help dir
> in a CMD.EXE prompt.
> > Does CMD.EXE know anything similar to the "alias" command of bash
> > and 4DOS? It'd be useful. (I already found out about
> > [HKEY_LOCAL_MACHINE|HKEY_CURRENT_USER]\Software\Microsoft\Command
> > Processor\AutoRun and set it to run a BAT script of my choice when
> > it starts up. I don't like editing the registry but in this case it
> > seemed simple enough -- and it works AFAICT)
> From the CMD.EXE prompt, type
> help doskey
> doskey is a program (available starting with Dos 6.x, I believe) to
> give more shell-like capabilities to the command interpreter. On
> Win9x, it is an executable file that you must load manually, usually
> in the autoexec.bat. On NT/XP systems, it is built in. Type part of
> a command and hit F8 to cycle through matching commands from the
> history. hit F7 to get a popup menu of the history. You can also
> define macros, like
> doskey dira=dir /a
> You can put all the aliases in a file, then add a line to your AutoRun
> script like
> doskey /macrofile=filename
> to have all the aliases preloaded each type you open a command prompt.
> BTW, I didn't know about the AutoRun option. That will be quiteCMD.EXE /? told me about it. Lots of interesting stuff there. (several
> useful, especially combined with the macros. Thanks!
screenfuls, but it pauses, no need to filter it explicitly through MORE).
> Let's see...I don't think the 'help' references are enough to bring
> this back to Vim. What to add? Oh, regarding the placement of
> vimfiles, I like it all under Vim. That way, I can just zip up the
> one directory tree to move everything to another machine, and can
> synchronize between them easily.
> Dan Sharp
- << Previous post in topic Next post in topic >>