On Dec 15, 6:47 pm, Shawn H Corey <[email protected]> wrote:
> On 10-12-15 12:44 PM, rameo wrote:
>
> > Is there a way to avoid this startup time and take the cygwin window
> > active?
>
> Have you tried running ViM from a cygwin window?  It should use the same
> window for the filters.
>
> --
> Just my 0.00000002 million dollars worth,
>    Shawn
>
> Confusion is the first step of understanding.
>
> Programming is as much about organization and communication
> as it is about coding.
>
> The secret to great software:  Fail early & often.
>
> Eliminate software piracy:  use only FLOSS.

Yes, I created an alias in gvim bash_profile.
I can launch gvim in cygwin. It works fine.
But not without these settings in vimrc:
        set shell=C:/tools/cygwin/bin/bash
        set shellcmdflag=--login\ -c
        set shellxquote=\"

However it still takes 20-30 seconds to put the command through
cygwin.

--------------

This is what I use now:

nnoremap <silent> <leader>bb :call CygwinC()<CR>
function! CygwinC()
  if &shell == 'c:\windows\system32\cmd.exe'
        set shell=C:/tools/cygwin/bin/bash
        set shellcmdflag=--login\ -c
        set shellxquote=\"
        "set backupdir=d:\temp\VIM-tmp
        let $TMP="d:/temp/VIM-tmp"
  else
        set shell=c:\windows\system32\cmd.exe
        set shellcmdflag=/c
        set shellxquote=""
        "set backupdir=c:\tmp
        let $TMP="d:/temp/VIM-tmp"
  endif
endfunction

-----------------

but as I mentioned in my previous message, it takes 20-30 seconds for
every command to put through cygwin.


-- 
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

Reply via email to