-----Original Message----- From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf Of meino.cra...@gmx.de Sent: Thursday, April 22, 2010 5:13 PM To: vim_use@googlegroups.com Subject: Re: Doing Unix on Windows
Benjamin R. Haskell <v...@benizi.com> [10-04-22 19:56]: > On Thu, 22 Apr 2010, meino.cra...@gmx.de wrote: > > > pansz <panshi...@routon.com> [10-04-22 17:16]: > > > > > > meino.cra...@gmx.de 写道: > > > >Hi, > > > > at home I am using Vim on Linux. > > > > at work I am using Vim on Windows. > > > > I am a Unixxer... > > > > At work I am not allowed all that nice gimmicks like > > > > grep, find, sed etc. which were ported to windows also due to > > > >security reasons. > > > > I would like to get back some of that functionality > > > > mainly of text related Unix tools via vim. > > > > > > Install Cygwin on windows and install Mintty from googlecode, use > > > Mintty as your terminal emulator and Cygwin/bash as your shell, use the > > > vim provided by Cygwin. > > > > > > Then you'll feel at home on Windows. > > > > > > > > > That is what I would like to install on every Windows computer. > > > > > > > As I tried to explain with my broken English, I am not allowed to > > install anything on my Windows-PC. > > Sorry... > > The only tool I have is: Vim. > > Not to discount other suggestions (using glob()/etc. within Vim), but > it's probably worth your while to find a workaround. Vim's > not-the-kitchen-sink philosophy[1] probably prevents it from being the > swiss army knife you seem to be looking for. > > Cygwin was the first thing I found that made Windows tolerable. I > believe (but am not certain) it's installable to a USB thumb drive, if > that's an option. (CoLinux is my current preference for using Linux > under Windows, but that's far less likely to work under security > restrictions). I know MinGW is installable as such, but don't know if > it provides the range of utilities you're seeking. > > I've not tried Mintty, so I can't compare, but last time I was using > Windows (a while ago), I liked Console2[2] as a cmd.exe replacement. > > -- > Best, > Ben H > > [1] see: :help design-not > [2] http://console.sf.net/ > To emphasis the security related things in "installing" something on the Windows PC at work and "doing something, which is no installation but results in something, which works like that": We (the workers) are even not allowed to carry any USB-stick or other storage devices with us. Same goes for mobile phones with cameras and so on. Or in other words: Executing anything else than what is already installed is FORBIDDEN -- otherwise I get fired. I /have to/ rely on what I have : VIM. > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en > Here's something I used from a perl script. You can call something like this from a bat file. But this snippet has the basics of how to use vim in line mode from the command line. It may get you where you want. `c:\\vim\\vim63\\vim -e -s -c "g\/^ttl\$\/d" -c "\%s\/^ttl\/\/" -c "g\/\^\$\/d" -c "\%s\/.\/\\L\&\/g" -c "\%\!sort" -c "\%\!uniq" -c "\%\!aspell -l" -c "wq" badlist.txt`; -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php