Don
Faire un don pour aider au developpement de WiPhA

Recherche




Préférences

 Nombre de membres 29 membres


Utilisateurs en ligne

( personne )
Visites

 147726 visiteurs

 13 visiteurs en ligne

Poster une réponse

Je vous remercie de prendre le temps d'écrire ce message.

 

Votre nom (ou pseudo) :

Votre e-mail :

Masquer aux visiteurs votre adresse e-mail :      

Note : l'adresse e-mail utilisée est protégée contre le SPAM.

 

Etre avisé par mail d'une réponse :      

Vous répondez à Globs qui a écrit :


I can tell you what I do to launch NEdit in Windows using Cygwin. Then, you should be able to change the scri­pts to adapt it to gvim.

I actually launch nedit.bat with the file as a parameter.

@ECHO OFF

IF '%1'=='' GOTO EMPTY

:LOOP
IF '%1'=='' GOTO END
D:\cygwin\bin\sh.exe /cygdrive/c/nedit/start-nc.sh %1
SHIFT
GOTO LOOP

:EMPTY
D:\cygwin\bin\sh.exe /cygdrive/c/nedit/start-nc.sh

:END



This .bat calls start-nc.sh:
I highlighted the important parts.


#!/bin/sh

# Hide the command window:
/cygdrive/c/nedit/hidewndw  /n /fh "C:\WINDOWS\System32\cmd.exe"  # when dragging a file on the NEdit icon
/cygdrive/c/nedit/hidewndw  /n /fh "NEdit"  # when double-click the NEdit icon

# to find the display
export DISPLAY=127.0.0.1:0.0

# specify a home directory, NEdit needs it to store its preference files
export HOME=/cygdrive/c/nedit

# this is a new variable. when set, NEdit stores its preference files
# in this directory under the new names 'nedit.rc' (previous name '.nedit')
# and `autoload.nm' (previous name '.neditmacro')
export NEDIT_HOME=/cygdrive/c/nedit/neditrc

# for the keyboard, isn't always necessary
export XKEYSYMDB=/cygdrive/c/nedit/xkeysymdb

# to find the cygwin1.dll, shell commands, X libraries
export PATH=/cygdrive/c/nedit:/cygdrive/c/cygwin/bin:/usr/X11R6/bin/:"$­PATH"

# if you bind NEdit to file extensions, you should start your X server here
# to make sure not to forget to start it before NEdit!
# For example "/cygdrive/c/path-to-server/xserver &"
/cygdrive/c/Program\ Files/myXserver/xserver.exe &

# handling calls with multiple files, files and path names with empty spaces and
# upper-case - lower-case difference
if [ "$­1" != "" ]
then
    if [ "$­1" = "-wait" ]
    then
        opt="$­opt $­1"
        shift
    fi
    filename="$­*"
    # since under Windows there is o difference between small and capital
    # letters, but NEdit sees a difference internally, the file name and
    # path get translated to all lower-case
    filename=`cygpath -u "$­filename" | tr A-Z a-z`
    nc $­opt "$­filename"
else
    nc
fi


Not so easy, is it ?cool


Votre réponse :

texte en gras  texte en italique  texte souligné  texte préformaté  couleur du texte  texte centré  insérer un lien  défaire  refaire  Cite 
|:-) ;-) :-)) :-) :-o :o) :-(( :-( 8-) :-p ;-(  Help


 
^ Haut ^

Site non déclaré à la CNIL dans le cadre de la dispense n°6
Vous disposez d'un droit d'accès, de modification, de rectification et de suppression des données qui vous concernent via votre profil.
GuppY - http://www.freeguppy.org/    Site créé avec GuppY v4.5.14 © 2004-2005 - Licence Libre CeCILL   GuppY - http://www.freeguppy.org/

Document généré en 0.1 seconde