Re: Vim Help for deleting alternate lines in text

2007-03-30 Thread Gary Johnson
On 2007-03-31, Auro Ashish Saha <[EMAIL PROTECTED]> wrote:
> Hello Antoine,
> 
> Thanks for your post. I tried both the options but i could not get any
> result. I am using gvim. Please help.
> 
> Regards,
> 
> Auro Ashish Saha.
> > Auro Ashish Saha wrote:
> >> Hello,
> >>
> >> Please help me to remove alternate lines from a text file.
> >>
> >> 00 0
> >> 123456 9
> >> 99 9
> >> 123445 9
> >>
> >> I want to delete the line 1, 3, 5 and so on. What are the commands to be
> >> used. Thanks for help in advance.
> >>
> >> Regards,
> >>
> >> Auro Ashish Saha.
> >>
> >>
> >>
> >
> > Method I:
> >
> > q"ddjjq
> > @"
> >
> > where  is equal to the number of lines still to be deleted

One problem with this is that it attempts to store a sequence of 
normal-mode commands into the " register, which is the unnamed 
register, but then deletes the first line into this same register.

The other problem with it is that it moves the cursor too many 
times:  once the first line has been deleted with dd, the cursor 
automatically moves to the next line, so only one j is needed to get 
to the next line to be deleted.

This version will work:

qqddjq
@q

Note that it uses the q register instead of the " register.  Also, 
if you don't want to try to figure out what  should be, and 
if you don't want to remove a huge number of lines, you can execute 
the recorded commands the first time after you record them with this 
command:

@q

and every subsequent time with this command:

@@

That way, once you've recorded the command and executed it once from 
the q register, you can just hold your finger on the @ key and watch 
the lines disappear.  As you get close to the bottom of your file, 
you can start slowing down and typing just two @'s at a time.

> >
> > Method II (all on one line if typed on the Vim command-line):
> >
> >  :let i=1 | while i <= line('$') | if (i % 2) | exe i . "delete" |
> > endif |
> > endwhile

It looks as though Tony left out part of Method II:  i is never 
incremented.  I modified it as shown below (added "let i += 1 |")and 
verified that it works.

:let i=1 | while i <= line('$') | if (i % 2) | exe i . "delete" | endif | 
let i += 1 | endwhile

HTH,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Mobile Broadband Division
 | Spokane, Washington, USA


Re: Vim Help for deleting alternate lines in text

2007-03-30 Thread Auro Ashish Saha
Hello Antoine,

Thanks for your post. I tried both the options but i could not get any
result. I am using gvim. Please help.

Regards,

Auro Ashish Saha.
> Auro Ashish Saha wrote:
>> Hello,
>>
>> Please help me to remove alternate lines from a text file.
>>
>> 00 0
>> 123456 9
>> 99 9
>> 123445 9
>>
>> I want to delete the line 1, 3, 5 and so on. What are the commands to be
>> used. Thanks for help in advance.
>>
>> Regards,
>>
>> Auro Ashish Saha.
>>
>>
>>
>
> Method I:
>
>   q"ddjjq
>   @"
>
> where  is equal to the number of lines still to be deleted
>
> Method II (all on one line if typed on the Vim command-line):
>
>  :let i=1 | while i <= line('$') | if (i % 2) | exe i . "delete" |
> endif |
> endwhile
>
>
> Best regards,
> Tony.
> --
> Idaho state law makes it illegal for a man to give his sweetheart a box
> of candy weighing less than fifty pounds.
>


-- 
Auro Ashish Saha
QIP Ph.D. Research Scholar
Suman Mashruwala Laboratory
Mechanical Engineering Department
IIT Bombay, Powai
Mumbai - 400 076
India


Mobile: 09969074835

Email: [EMAIL PROTECTED]
   [EMAIL PROTECTED]




Netrw under Windows 98 doesn't go to upper directory

2007-03-30 Thread Cyril Slobin

Hi!

I've just upgraded to Vim 7.0.219 and netrw version 107, and under
WIndows 98 it doesn't go to upper directory (neither by pressing "-"
nor by pressing  on "../" line). I've guessed that reason is in
this lines:

  elseif !g:netrw_cygwin && (has("win32") || has("win95") ||
has("win64") || has("win16"))
   " windows
   if a:islocal
let dirname= substitute(dirname,'^\(\a:\\\)\=\(.*\)\\\([^\]\+$\)','\2','')
   else
let dirname=
substitute(dirname,'^\(\a:\\\)\=\(.*\\\)\([^\]\+\\$\)','\2','')
   endif

First, this code supposes that directory separator is "\" while a few
lines before it was replaced with "/". Second, this code cuts off
drive letter and backslash after them making directory relative
instead of absolute. My workaround follows:

  elseif !g:netrw_cygwin && (has("win32") || has("win95") ||
has("win64") || has("win16"))
   " windows
   if a:islocal
let dirname=
substitute(dirname,'^\(\a:[\\/]\)\=\(.*\)[\\/]\([^\\/]\+$\)','\1\2','')
   else
let dirname=
substitute(dirname,'^\(\a:[\\/]\)\=\(.*[\\/]\)\([^\\/]\+[\\/]$\)','\1\2','')
   endif

This works for me.

--
Cyril Slobin <[EMAIL PROTECTED]> `When I use a word,' Humpty Dumpty said,
 `it means just what I choose it to mean'


Re: gVim and Cygwin

2007-03-30 Thread Kev

Waters, Bill wrote:

Does anyone have experience with running gVim and using Cygwin commands (ex. 
indent)?  I would prefer not to run vim in a Cygwin terminal, unless someone 
has all of the configurations needed (syntax highlighting, etc) to have that 
act like gVim.

Thanks,
Bill



  
I do use gVim and cygwin.  For using the cygwin bash shell instead of 
the regular Windows DOS prompt, I use the following in my _vimrc:

:set shell=c:\cygwin\cygwin.bat

The only problem I have is that I have to type the command twice.  The 
first time opens the shell, the second will insert the result of the 
command.

For example to insert the current date, I do the following:
:r!date 
date 
exit 

On my Mac OS X box, I can just type :r!date




Re: gVim and Cygwin

2007-03-30 Thread Gary Johnson
On 2007-03-30, David Fishburn <[EMAIL PROTECTED]> wrote:
> 
> > -Original Message-
> > From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, March 30, 2007 6:42 PM

> > To compile a Unix-like "Vim for Cygwin" you must use the 
> > top-level Makefile or the src/Makefile which will invoke a 
> > configure step. If configure finds the necessary headers and 
> > libraries it may compile a GUI version of Vim, which will 
> > need Cygwin to run, and X11 to display a GUI.
> 
> Hmm, based on your response and Gary's (libncurses-devel) and this post:
> http://www.cygwin.com/ml/cygwin/2003-06/msg00886.html
> 
> I ran the following:
> cd /c/OpenSrc/vim7/src
> ./configure \
> --prefix=/usr \
>   --sysconfdir=/etc \
>   --libexecdir='$(sbindir)' \
>   --localstatedir=/var \
>   --datadir='$(prefix)/share' \
>   --enable-multibyte \
>   --without-x \
>   --enable-gui=no
> 
> This results in:
> ./configure: line 3: $'\r': command not found
> auto/configure: line 11: $'\r': command not found
> auto/configure: line 19: syntax error near unexpected token `elif'
> auto/configure: line 19: `elif test -n "${BASH_VERSION+set}" && (set -o
> posix) >'dev/null 2>&1; then
> ./configure: line 6: $'\r': command not found
> ./configure: line 11: syntax error: unexpected end of file
> 
> 
> I have never tried this before, I am wondering if it is related to dos line
> endings?
> 
> I pulled the source from a win32 SVN client.  It is the same directory I
> compile for win32 from.
> 
> Any suggestions?

I haven't had this problem myself, but from what I've seen posted to 
the cygwin list, this looks like a line-ending problem.  You can be 
pretty sure it didn't come from any file installed with setup.exe 
unless you edited some file with WordPad, for example, that changes 
LF endings to CR-LF.

Something else that can mess you up is using WinZip to unzip a 
package.  While the option can be changed, WizZip's default behavior 
is to change all text file line endings to CR-LF.

The 'file' command will show you the type of line endings that each 
file has, and 'd2u' will convert CR-LF endings to LF.

Regards,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Mobile Broadband Division
 | Spokane, Washington, USA


What does it mean when the screen needs to be refreshed a lot? (cygwin)

2007-03-30 Thread John Wiersba
When scrolling around, I frequently need to refresh the screen to clear up 
fragments of different parts of the screen which get left in the wrong place on 
the display.  What does this mean and how can I correct it?  This happens when 
running vim under cygwin with TERM=cygwin.




 

Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367


Why does "" sometimes get inserted in the text?

2007-03-30 Thread John Wiersba
When I press F2, rather than doing the action associated with F2?  Sometimes 
when this happens, it will happen again, but often it won't repeat for a while.




 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news


RE: gVim and Cygwin

2007-03-30 Thread David Fishburn
 

> -Original Message-
> From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 30, 2007 6:42 PM
> To: Charles E Campbell Jr
> Cc: Waters, Bill; vim@vim.org
> Subject: Re: gVim and Cygwin
> 
> Charles E Campbell Jr wrote:
> > Waters, Bill wrote:
> > 
> >> Does anyone have experience with running gVim and using Cygwin 
> >> commands (ex. indent)?  I would prefer not to run vim in a Cygwin 
> >> terminal, unless someone has all of the configurations 
> needed (syntax 
> >> highlighting, etc) to have that act like gVim.
> >>  
> >>
> > I generally compile both gvim and vim under cygwin, and haven't run 
> > into any problems.  I haven't used indent, though.  The problems I 
> > generally have had have been with Windows' paths and trying to get 
> > netrw to understand them properly, but that's not because 
> of gvim and cygwin.
> > 
> > If you already have cygwin, just get vim 7.0 source, and go to its 
> > source directory.
> > 
> > gmake -f Make_cyg.mak
> > 
> > will make gvim.exe by default.  Edit Make_cyg.mak, and 
> change GUI=yes 
> > to GUI=no, and type the same command above.  That way you'll get 
> > vim.exe.  Its really quite straightforward!
> > 
> > Regards,
> > Chip Campbell
> > 
> 
> Make_cyg.mak uses Cygwin tools to (cross-) compile a 
> native-Windows Vim or gvim which doesn't need Cygwin to run 
> and doesn't understand the POSIX paths of cygwin. It won't 
> interface easily with Cygwin bash (or any other Cygwin 
> program for that matter).
> 
> To compile a Unix-like "Vim for Cygwin" you must use the 
> top-level Makefile or the src/Makefile which will invoke a 
> configure step. If configure finds the necessary headers and 
> libraries it may compile a GUI version of Vim, which will 
> need Cygwin to run, and X11 to display a GUI.

Hmm, based on your response and Gary's (libncurses-devel) and this post:
http://www.cygwin.com/ml/cygwin/2003-06/msg00886.html

I ran the following:
cd /c/OpenSrc/vim7/src
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir='$(sbindir)' \
--localstatedir=/var \
--datadir='$(prefix)/share' \
--enable-multibyte \
--without-x \
--enable-gui=no

This results in:
./configure: line 3: $'\r': command not found
auto/configure: line 11: $'\r': command not found
auto/configure: line 19: syntax error near unexpected token `elif'
auto/configure: line 19: `elif test -n "${BASH_VERSION+set}" && (set -o
posix) >'dev/null 2>&1; then
./configure: line 6: $'\r': command not found
./configure: line 11: syntax error: unexpected end of file


I have never tried this before, I am wondering if it is related to dos line
endings?

I pulled the source from a win32 SVN client.  It is the same directory I
compile for win32 from.

Any suggestions?

Thanks,
Dave





Re: Esperanto dictionary

2007-03-30 Thread A.J.Mechelynck

Cyril Slobin wrote:

Hi all!

Who maintains Esperanto spell files for Vim? File eo.utf-8.spl is
completely broken! In fact it was broken long ago when I've download
Vim 7.0. Now I've upgrade to 7.0.219 and have checked if something
became better. No hope -- it is the same broken file. I use Win32
version of Vim.

I have complied my own eo.utf-8.spl from ispell sources by Sergio
Pokrovskij found in Debian 3.1 distribution. It understands both real
Unicode and surrogate "Cxirkaux"-style (if you don't speak Esperanto,
you don't need to understand this). Archive contains .spl file itself,
two .dic files, two .aff files and short readme file (it is in
Esperanto, not English, and named "legumin", not "readme"). You can
download it from:

   http://www.45.free.net/~slobin/vim/eo.utf-8.zip

Maybe it is a good idea to replace broken file with my one on Vim ftp site.

I've newer use aap and don't know vim maintaining technology, I've
just manually converted ispell files to myspell ones and than compiled
them to Vim format.

I have not checked eo.iso-8859-3.spl file, I newer use iso-8859-3.



That file is no less broken. I'm sending you the details in a private email in 
Esperanto.


Best regards,
Tony.
--
Oregano, n.:
The ancient Italian art of pizza folding.



Building gvim creates invalid executable

2007-03-30 Thread David Fishburn

This has been happening for a little while (at least a month).

I have been routinely building Vim on Win XP SP2 for a couple of years now.

Now when I build it and try to run it I get:
C:\OpenSrc\vim7\src>gvim.exe
The system cannot execute the specified program.


Unforutunately, the error message does not give me much to go on.
Running gvimd yields:
C:\OpenSrc\vim7\src>gvimd.exe
The system cannot execute the specified program.


So that doesn't help either.

I can build and successfully run the console versions:
VIM - Vi IMproved
 version 7.0.224

:ver
VIM - Vi IMproved 7.0 (2006 May 7, compiled Mar 30 2007 19:57:56)
MS-Windows 32 bit console version
Included patches: 1-224
Compiled by [EMAIL PROTECTED]
...


I grabbed the last part of the build of gvim.exe, it might shed some light:


if_cscope.c
netbeans.c
Generating Code...
cl -c /W3 /nologo  -D_MT -MT -I. -Iproto -DHAVE_PATHDEF -DWIN32
-DFEAT
_CSCOPE -DFEAT_NETBEANS_INTG   -DFEAT_XPM_W32   -DWINVER=0x0400
-D_WIN32_WINNT=0
x0400  /Fo.\ObjGOLY/ /Ox -DNDEBUG  -DFEAT_OLE -DFEAT_GUI_W32 -DDYNAMIC_ICONV
-DD
YNAMIC_GETTEXT -DFEAT_PYTHON -DDYNAMIC_PYTHON
-DDYNAMIC_PYTHON_DLL=\"python24.d
ll\" -DFEAT_PERL -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl58.dll\" -DFEAT_BIG
/Zi
 /Fd.\ObjGOLY/ if_ole.cpp
if_ole.cpp
cl -c /W3 /nologo  -D_MT -MT -I. -Iproto -DHAVE_PATHDEF -DWIN32
-DFEAT
_CSCOPE -DFEAT_NETBEANS_INTG   -DFEAT_XPM_W32   -DWINVER=0x0400
-D_WIN32_WINNT=0
x0400  /Fo.\ObjGOLY/ /Ox -DNDEBUG  -DFEAT_OLE -DFEAT_GUI_W32 -DDYNAMIC_ICONV
-DD
YNAMIC_GETTEXT -DFEAT_PYTHON -DDYNAMIC_PYTHON
-DDYNAMIC_PYTHON_DLL=\"python24.d
ll\" -DFEAT_PERL -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl58.dll\" -DFEAT_BIG
/Zi
 /Fd.\ObjGOLY/ version.c
version.c
link /RELEASE /nologo /subsystem:windows /incremental:no
/nodefaultlib:l
ibc -out:gvim.exe .\ObjGOLY\buffer.obj  .\ObjGOLY\charset.obj
.\ObjGOLY\diff.ob
j  .\ObjGOLY\digraph.obj  .\ObjGOLY\edit.obj  .\ObjGOLY\eval.obj
.\ObjGOLY\ex_c
mds.obj  .\ObjGOLY\ex_cmds2.obj  .\ObjGOLY\ex_docmd.obj
.\ObjGOLY\ex_eval.obj
.\ObjGOLY\ex_getln.obj  .\ObjGOLY\fileio.obj  .\ObjGOLY\fold.obj
.\ObjGOLY\getc
har.obj  .\ObjGOLY\hardcopy.obj  .\ObjGOLY\hashtab.obj  .\ObjGOLY\main.obj
.\Ob
jGOLY\mark.obj  .\ObjGOLY\mbyte.obj  .\ObjGOLY\memfile.obj
.\ObjGOLY\memline.ob
j  .\ObjGOLY\menu.obj  .\ObjGOLY\message.obj  .\ObjGOLY\misc1.obj
.\ObjGOLY\mis
c2.obj  .\ObjGOLY\move.obj  .\ObjGOLY\normal.obj  .\ObjGOLY\ops.obj
.\ObjGOLY\o
ption.obj  .\ObjGOLY\os_mswin.obj  .\ObjGOLY\os_win32.obj
.\ObjGOLY\pathdef.obj
  .\ObjGOLY\popupmnu.obj  .\ObjGOLY\quickfix.obj  .\ObjGOLY\regexp.obj
.\ObjGOL
Y\screen.obj  .\ObjGOLY\search.obj  .\ObjGOLY\spell.obj
.\ObjGOLY\syntax.obj  .
\ObjGOLY\tag.obj  .\ObjGOLY\term.obj  .\ObjGOLY\ui.obj  .\ObjGOLY\undo.obj
.\Ob
jGOLY\window.obj  .\ObjGOLY\vim.res .\ObjGOLY\gui.obj
.\ObjGOLY\gui_beval.obj
.\ObjGOLY\gui_w32.obj  .\ObjGOLY\os_w32exe.obj .\ObjGOLY\if_ole.obj
.\ObjGOLY\
if_perl.obj .\ObjGOLY\if_perlsfio.obj .\ObjGOLY\if_python.obj
.\ObjGOLY/if_c
scope.obj .\ObjGOLY/netbeans.obj  .\ObjGOLY/xpm_w32.obj
.\ObjGOLY\version.obj ad
vapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib uuid.lib
oldnames.lib ke
rnel32.lib gdi32.lib version.lib   winspool.lib comctl32.lib advapi32.lib
shell3
2.lib  /machine:i386 /nodefaultlib libcmt.lib oleaut32.lib  user32.lib
/node
faultlib:python24.libWSock32.lib
C:\download\OpenSrc\vim\XPM_support_for_Net
beans\xpm-4.2.0\lib\libXpm.lib /PDB:gvim.pdb -debug
cl /nologo -DNDEBUG vimrun.c
vimrun.c
cl /nologo -DNDEBUG -DWIN32 dosinst.c kernel32.lib shell32.lib
ole32.li
b advapi32.lib uuid.lib
dosinst.c
if exist install.exe del install.exe
ren dosinst.exe install.exe
cl /nologo -DNDEBUG -DWIN32 uninstal.c shell32.lib advapi32.lib
uninstal.c
cd xxd
nmake /NOLOGO -f Make_mvc.mak
cl /nologo -DWIN32 xxd.c
xxd.c
cd ..
cd GvimExt
nmake /NOLOGO -f Makefile
cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1  -DWIN32
-D_WI
N32 -W3 -D_WIN32_IE=0x0400 -DWINVER=0x0400 -DFEAT_GETTEXT  -D_MT -D_DLL -MD
gvim
ext.cpp
gvimext.cpp
Rc /r -DWIN32 -D_WIN32 -DWINVER=0x0400   gvimext.rc
link  /INCREMENTAL:NO /NOLOGO -dll -def:gvimext.def -base:0x1C00
-ou
t:gvimext.dll gvimext.obj gvimext.res ole32.lib uuid.lib oleaut32.lib
kernel32.l
ib  ws2_32.lib mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib
winspo
ol.lib shell32.lib comctl32.lib
gvimext.def(4) : warning LNK4017: DESCRIPTION statement not supported for
the ta
rget platform; ignored
   Creating library gvimext.lib and object gvimext.exp
cd ..




Any suggestions?

TIA,
Dave



Esperanto dictionary

2007-03-30 Thread Cyril Slobin

Hi all!

Who maintains Esperanto spell files for Vim? File eo.utf-8.spl is
completely broken! In fact it was broken long ago when I've download
Vim 7.0. Now I've upgrade to 7.0.219 and have checked if something
became better. No hope -- it is the same broken file. I use Win32
version of Vim.

I have complied my own eo.utf-8.spl from ispell sources by Sergio
Pokrovskij found in Debian 3.1 distribution. It understands both real
Unicode and surrogate "Cxirkaux"-style (if you don't speak Esperanto,
you don't need to understand this). Archive contains .spl file itself,
two .dic files, two .aff files and short readme file (it is in
Esperanto, not English, and named "legumin", not "readme"). You can
download it from:

   http://www.45.free.net/~slobin/vim/eo.utf-8.zip

Maybe it is a good idea to replace broken file with my one on Vim ftp site.

I've newer use aap and don't know vim maintaining technology, I've
just manually converted ispell files to myspell ones and than compiled
them to Vim format.

I have not checked eo.iso-8859-3.spl file, I newer use iso-8859-3.

--
Cyril Slobin <[EMAIL PROTECTED]> `When I use a word,' Humpty Dumpty said,
 `it means just what I choose it to mean'


Re: gVim and Cygwin

2007-03-30 Thread A.J.Mechelynck

Charles E Campbell Jr wrote:

Waters, Bill wrote:

Does anyone have experience with running gVim and using Cygwin 
commands (ex. indent)?  I would prefer not to run vim in a Cygwin 
terminal, unless someone has all of the configurations needed (syntax 
highlighting, etc) to have that act like gVim.
 

I generally compile both gvim and vim under cygwin, and haven't run into 
any problems.  I haven't used indent, though.  The problems I generally 
have had have been with Windows' paths and trying to get netrw to 
understand them properly, but that's not because of gvim and cygwin.


If you already have cygwin, just get vim 7.0 source, and go to its 
source directory.


gmake -f Make_cyg.mak

will make gvim.exe by default.  Edit Make_cyg.mak, and change GUI=yes  
to GUI=no, and type the same command above.  That way you'll get 
vim.exe.  Its really quite straightforward!


Regards,
Chip Campbell



Make_cyg.mak uses Cygwin tools to (cross-) compile a native-Windows Vim or 
gvim which doesn't need Cygwin to run and doesn't understand the POSIX paths 
of cygwin. It won't interface easily with Cygwin bash (or any other Cygwin 
program for that matter).


To compile a Unix-like "Vim for Cygwin" you must use the top-level Makefile or 
the src/Makefile which will invoke a configure step. If configure finds the 
necessary headers and libraries it may compile a GUI version of Vim, which 
will need Cygwin to run, and X11 to display a GUI.


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
153. You find yourself staring at your "inbox" waiting for new e-mail
 to arrive.


Re: gVim and Cygwin

2007-03-30 Thread Gary Johnson
On 2007-03-30, Charles E Campbell Jr <[EMAIL PROTECTED]> wrote:
> Waters, Bill wrote:
> 
> > Does anyone have experience with running gVim and using Cygwin commands 
> > (ex. indent)?  I would prefer not to run vim in a Cygwin terminal, unless 
> > someone has all of the configurations needed (syntax highlighting, etc) to 
> > have that act like gVim.
> >  
> >
> I generally compile both gvim and vim under cygwin, and haven't run into 
> any problems.  I haven't used indent, though.  The problems I generally 
> have had have been with Windows' paths and trying to get netrw to 
> understand them properly, but that's not because of gvim and cygwin.
> 
> If you already have cygwin, just get vim 7.0 source, and go to its 
> source directory.
> 
> gmake -f Make_cyg.mak
> 
> will make gvim.exe by default.  Edit Make_cyg.mak, and change GUI=yes  
> to GUI=no, and type the same command above.  That way you'll get 
> vim.exe.  Its really quite straightforward!

To build a console vim that used color, I had to also install the 
Cygwin libncurses-devel package.

HTH,
Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Mobile Broadband Division
 | Spokane, Washington, USA


Re: How can I pass the full path of the current buffer to a command line script?

2007-03-30 Thread Andrea Ratto
the symbol is %

Il giorno ven, 30/03/2007 alle 15.44 -0500, ben lieb ha scritto:
> I want to send the full path of the current buffer to a command line
> script like this:
> 
> :!command 
> 
> What symbol do I use to represent , meaning the current buffer?
> 
> This seems like an easy one, but I can't figure it out.



Re: gVim and Cygwin

2007-03-30 Thread Charles E Campbell Jr

Waters, Bill wrote:


Does anyone have experience with running gVim and using Cygwin commands (ex. 
indent)?  I would prefer not to run vim in a Cygwin terminal, unless someone 
has all of the configurations needed (syntax highlighting, etc) to have that 
act like gVim.
 

I generally compile both gvim and vim under cygwin, and haven't run into 
any problems.  I haven't used indent, though.  The problems I generally 
have had have been with Windows' paths and trying to get netrw to 
understand them properly, but that's not because of gvim and cygwin.


If you already have cygwin, just get vim 7.0 source, and go to its 
source directory.


gmake -f Make_cyg.mak

will make gvim.exe by default.  Edit Make_cyg.mak, and change GUI=yes  
to GUI=no, and type the same command above.  That way you'll get 
vim.exe.  Its really quite straightforward!


Regards,
Chip Campbell



two questions

2007-03-30 Thread Chuck Mason

1. I have been trying to figure out a command that would let me place
parenthesis (()) around a word, line paragraph or whatever. I.e.  

g(wcould put parens around a word
g($could put parens around cursor position and end of line, likewise
g(^could do beginning of line and cursor
g("around a quoted string
g(ap   around a paragraph, etc.  

I'm sure you get my point.  I tried to write a function visualmode()
parameter but I just can't seem to get all my situations. Ideally,
g({motion} would parenthesis whatever I specify in {motion}.

2. I often times like to line up certain characters to match characters
on the line above or below.  I.e:

void SomeLongFunctionName( void );
void SomeFunc( void );

I would like to put my cursor on the ( on the 2nd line and type
something like "\at("  for "align to (" (on the line above would be
implied, but perhaps "\aT(" would be line below? )

This I haven't attempted yet but my only idea would be to make a
function that calls getpos("."), subtract 1 from line, read the line,
count up to the next ( and do a for insert-loop.  Is there a better way?

Any help is much appreciated!
Chuck





Re[2]: Vim Help for deleting alternate lines in text

2007-03-30 Thread Alan G Isaac
On Sat, 31 Mar 2007, Auro Ashish Saha apparently wrote: 
> Please help me to remove alternate lines from a text file. 

http://rayninfo.co.uk/vimtips.html 

hth, Alan Isaac 




Re: How can I pass the full path of the current buffer to a command line script?

2007-03-30 Thread A.J.Mechelynck

ben lieb wrote:

I want to send the full path of the current buffer to a command line
script like this:

:!command 

What symbol do I use to represent , meaning the current buffer?

This seems like an easy one, but I can't figure it out.



Usually,

:!command %

will be enough. If you need an explicit full path (rather than a relative 
path), use


:!command %:p


Best regards,
Tony.
--
It is difficult to produce a television documentary that is both
incisive and probing when every twelve minutes one is interrupted by
twelve dancing rabbits singing about toilet paper.
-- Rod Serling



Re: Vim Help for deleting alternate lines in text

2007-03-30 Thread A.J.Mechelynck

Auro Ashish Saha wrote:

Hello,

Please help me to remove alternate lines from a text file.

00 0
123456 9
99 9
123445 9

I want to delete the line 1, 3, 5 and so on. What are the commands to be
used. Thanks for help in advance.

Regards,

Auro Ashish Saha.





Method I:

q"ddjjq
@"

where  is equal to the number of lines still to be deleted

Method II (all on one line if typed on the Vim command-line):

:let i=1 | while i <= line('$') | if (i % 2) | exe i . "delete" | endif | 
endwhile



Best regards,
Tony.
--
Idaho state law makes it illegal for a man to give his sweetheart a box
of candy weighing less than fifty pounds.


Re: How can I pass the full path of the current buffer to a command line script?

2007-03-30 Thread Gary Johnson
On 2007-03-30, ben lieb <[EMAIL PROTECTED]> wrote:
> I want to send the full path of the current buffer to a command line
> script like this:
> 
> :!command 
> 
> What symbol do I use to represent , meaning the current buffer?
> 
> This seems like an easy one, but I can't figure it out.

:!command %:p

See

:help :_%
:help filename-modifiers

Gary

-- 
Gary Johnson | Agilent Technologies
[EMAIL PROTECTED] | Mobile Broadband Division
 | Spokane, Washington, USA


How can I pass the full path of the current buffer to a command line script?

2007-03-30 Thread ben lieb
I want to send the full path of the current buffer to a command line
script like this:

:!command 

What symbol do I use to represent , meaning the current buffer?

This seems like an easy one, but I can't figure it out.


Re: Vim Help for deleting alternate lines in text

2007-03-30 Thread Auro Ashish Saha
Hello,

Please help me to remove alternate lines from a text file.

00 0
123456 9
99 9
123445 9

I want to delete the line 1, 3, 5 and so on. What are the commands to be
used. Thanks for help in advance.

Regards,

Auro Ashish Saha.





Re: gVim and Cygwin

2007-03-30 Thread A.J.Mechelynck
Cc to list. Next time, please use bottom-posting or inter-posting in 
preference to top-posting, and "Reply to All" or "Reply to List" in preference 
to "Reply to Sender".


ben lieb wrote:

I've had no real problems.

I use cygwin. I type 'startx' to run the x terminal. Then I run 'gvim'
from that.

As far as 'indent', it is not a bash command, it is a program that may
have to be installed with the cygwin package manager. Either way, I
don't have file or path translation problems.


It doesn't, if invoked from bash or from some other cygwin program (including 
a Cygwin build of console Vim or a Cygwin/X11 build of gvim). If invoked from 
a Windows-native build of gvim, the user would have to make sure that what 
gvim thinks of as "C:\Documents and Settings\johndoe\foobar.c" gets translated 
to /home/johndoe/foobar.c or /cygdrive/c/Documents\ and\ 
Settings/johndoe/foobar.c -- or even /cygdrive/c/DOCUME~1/johndoe/foobar.c -- 
when invoking Cygwin indent.


OTOH, since (IIRC) builds of Vim available on the Cygwin site are usually 
console builds, to get a Cygwin/X11 build of gvim you would have to compile it 
yourself.



Best regards,
Tony.
--
"Being disintegrated makes me ve-ry an-gry!" 



RE: Reannouncing vimplugin: A vim plugin for Eclipse

2007-03-30 Thread Sebastian Menge
Am Freitag, den 30.03.2007, 12:24 -0400 schrieb David Fishburn:
> The README indicates:
> The only external dependency is a functional gvim compiled with "netbeans" 
> support.
> 
> But your email says:
> > Microsoft users have to use the cygwin version of vim.
> 
> Can you confirm which is required.  Why would the cygwin version of Vim be
> required it is just talks to it over a protocol?
> 
> I have cygwin installed, but I have never actually compiled an actual cygwin
> version of Vim, I just use the standard win32 version which I compile
> myself.

for the UI-integration (simple textbased vim inside eclipse) you need
cygwin.

for the netbeans-prototype you need gvim. It fires up an external gvim
and talks with it via a socket. I havent tested that under windows.

One day i wanna integrate both. bvut at the moment they are mutual
exclusive.

Seb.



Re: gVim and Cygwin

2007-03-30 Thread A.J.Mechelynck

Waters, Bill wrote:

Does anyone have experience with running gVim and using Cygwin commands (ex. 
indent)?  I would prefer not to run vim in a Cygwin terminal, unless someone 
has all of the configurations needed (syntax highlighting, etc) to have that 
act like gVim.

Thanks,
Bill




Running gvim from Cygwin is much harder than running console Vim-for-Cygwin in 
a Cygwin bash terminal, because (unless you want to solve the endless problems 
of interfacing a Windows gvim [which expects a Dos-like filesystem 
architecture] with a Cygwin shell [which expects a POSIX filesystem 
architecture]), you'll have to compile a version of gvim with some flavour of 
X11 GUI, and display through a Cygwin X11 server.


To use individual Cygwin commands in a Windows environment, all disk paths 
must be translated back and forth. See "man cygpath" under Cygwin.


Best regards,
Tony.
--
You can only live once, but if you do it right, once is enough.


RE: Reannouncing vimplugin: A vim plugin for Eclipse

2007-03-30 Thread David Fishburn
 

> -Original Message-
> From: Sebastian Menge [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 30, 2007 11:49 AM
> To: vim@vim.org; vim-dev@vim.org
> Subject: Reannouncing vimplugin: A vim plugin for Eclipse
> 
> Hi all 
> 
> After a long time of no activity we restarted the work on a 
> small plugin to embed vim into the Eclipse IDE.
> 
> See http://vimplugin.sf.net and http://sf.net/vimplugin for details.
> 
> If you are familiar with eclipse, there is an update site 
> http://vimplugin.sf.net/update with the latest build.
> 
> Microsoft users have to use the cygwin version of vim.
> 
> We also have a prototype of an eclipse-plugin that talks to a 
> gvim that acts as "netbeans" server (:help netbeans).
> 
> More detailed info on that can be found here: 
> http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/branche
> s/vimclient/doc/README
> 
> Both projects are standard eclipse projects that can be 
> checked out anonymously via subversion (you need subclipse then):
> 
> http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/trunk/vimplugin
> http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/branche
> s/vimclient
> 
> This time we'll keep an better eye on community building: So 
> please try it out and give some feedback. On 
> http://sf.net/projects/vimplugin you can find forums and of 
> course mailinglists.

Sebastian, fantastic I have been wanting this for sometime.

I was writing up an email indicating I need some more direction, but I see
that was provided in the README via SVN.

I will try this out (I don't use Eclipse that often, but I do use it for
Perl, PHP and Java especially when I need an integrated debugger.

The README indicates:
The only external dependency is a functional gvim compiled with "netbeans" 
support.

But your email says:
> Microsoft users have to use the cygwin version of vim.

Can you confirm which is required.  Why would the cygwin version of Vim be
required it is just talks to it over a protocol?

I have cygwin installed, but I have never actually compiled an actual cygwin
version of Vim, I just use the standard win32 version which I compile
myself.

Thanks,
Dave



gVim and Cygwin

2007-03-30 Thread Waters, Bill
Does anyone have experience with running gVim and using Cygwin commands (ex. 
indent)?  I would prefer not to run vim in a Cygwin terminal, unless someone 
has all of the configurations needed (syntax highlighting, etc) to have that 
act like gVim.

Thanks,
Bill



Reannouncing vimplugin: A vim plugin for Eclipse

2007-03-30 Thread Sebastian Menge
Hi all 

After a long time of no activity we restarted the work on a small plugin
to embed vim into the Eclipse IDE.

See http://vimplugin.sf.net and http://sf.net/vimplugin for details.

If you are familiar with eclipse, there is an update site
http://vimplugin.sf.net/update with the latest build.

Microsoft users have to use the cygwin version of vim.

We also have a prototype of an eclipse-plugin that talks to a gvim that
acts as "netbeans" server (:help netbeans).

More detailed info on that can be found here: 
http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/branches/vimclient/doc/README

Both projects are standard eclipse projects that can be checked out
anonymously via subversion (you need subclipse then):

http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/trunk/vimplugin
http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/branches/vimclient

This time we'll keep an better eye on community building: So please try
it out and give some feedback. On http://sf.net/projects/vimplugin you
can find forums and of course mailinglists.

Best regards, Sebastian.



Re: please unsubscribe me

2007-03-30 Thread A.J.Mechelynck

Toon Knapen wrote:
I'm sorry to have to bother this list with this request but I have tried 
to unsubscribe multiple times since a few months. I also tried to 
contact the list-admin but did not succeed.


thanks

toon



Sending a request to the list like this, is not the way to do it.

1. Send an email to [EMAIL PROTECTED] -- the contents and subject are 
unimportant and may be blank but the From: must be your (subscribed) 
address-of-record.


2. The Vim-list robot will send you a confirmation email (to your 
address-of-record) to ascertain that the unsubscribe request was not a prank 
played on you by some malevolent third party. You must read that email: it 
will contain a secret pseudorandom code and additional instructions on how to 
make the unsubscribe final.


Best regards,
Tony.
--
It wasn't that she had a rose in her teeth, exactly.  It was more like
the rose and the teeth were in the same glass.


please unsubscribe me

2007-03-30 Thread Toon Knapen
I'm sorry to have to bother this list with this request but I have tried 
to unsubscribe multiple times since a few months. I also tried to 
contact the list-admin but did not succeed.


thanks

toon


Re: need a new way to scroll

2007-03-30 Thread shawn bright

cool, thanks,
i went with option 2.
works great.

sk

On 3/30/07, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:

shawn bright wrote:
> Hello all,
>
> i find myself doing a lot of scrolling. Usually, this is when i am
> tracing code to see the flow of a certain thing. I know i have Ctrl-u,
> d, f, b for doing a page at a time, but i need to be able to scroll
> like a quarter of a page or maybe 20 lines at a time. I know that i
> can do 20Ctrl-E or Y to do 20 at a time, but thats kinda long, is
> there another way that might be cool, maybe map 20 lines down to some
> key i don't use much ?
>
> thanks for any tips.
> sk
>

The answer is contained in your question.

Method I:

:map  20
:imap  20
:map  20
:imap  20

Replace  and  by anything that suits you.

Method II:

:set scroll=20
" From now on, Ctrl-D and Ctrl-U scroll by 20 lines.
" Ctrl-F/Ctrl-B (or PgUp/PgDn) still scroll by one page.


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
150. You find yourself counting emoticons to get to sleep.



Re: need a new way to scroll

2007-03-30 Thread Jean-Rene David
* shawn bright [2007.03.30 09:15]:
> I know that i can do 20Ctrl-E or Y to do 20 at a
> time, but thats kinda long, is there another way
> that might be cool, maybe map 20 lines down to
> some key i don't use much ?

Use the power of mappings!

:nmap  20
:nmap  20

I also often use H, M, L combined with zb, zz and
zt. I like being able to move around while keeping
control of the cursor position. And it allows
moving by half-screens, which I also find
convenient since I always have enough context to
follow the code.

-- 
JR


Re: need a new way to scroll

2007-03-30 Thread A.J.Mechelynck

shawn bright wrote:

Hello all,

i find myself doing a lot of scrolling. Usually, this is when i am
tracing code to see the flow of a certain thing. I know i have Ctrl-u,
d, f, b for doing a page at a time, but i need to be able to scroll
like a quarter of a page or maybe 20 lines at a time. I know that i
can do 20Ctrl-E or Y to do 20 at a time, but thats kinda long, is
there another way that might be cool, maybe map 20 lines down to some
key i don't use much ?

thanks for any tips.
sk



The answer is contained in your question.

Method I:

:map  20
:imap  20
:map  20
:imap  20

Replace  and  by anything that suits you.

Method II:

:set scroll=20
" From now on, Ctrl-D and Ctrl-U scroll by 20 lines.
" Ctrl-F/Ctrl-B (or PgUp/PgDn) still scroll by one page.


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
150. You find yourself counting emoticons to get to sleep.


need a new way to scroll

2007-03-30 Thread shawn bright

Hello all,

i find myself doing a lot of scrolling. Usually, this is when i am
tracing code to see the flow of a certain thing. I know i have Ctrl-u,
d, f, b for doing a page at a time, but i need to be able to scroll
like a quarter of a page or maybe 20 lines at a time. I know that i
can do 20Ctrl-E or Y to do 20 at a time, but thats kinda long, is
there another way that might be cool, maybe map 20 lines down to some
key i don't use much ?

thanks for any tips.
sk


Help file indention/formatting question

2007-03-30 Thread Jeff Lanzarotta
Hello,

I have a file open in a buffer. I do ':help autocmd' which opens the
help file in another window. The cursor is automatically placed in the
window containing the help. I switch back to the original window with
Ctrl-W-W, then back to the help window and all the text in the help
window shifts over to the left (like the tab or something are
converted)...

Any way of fixing this so that the text does not shift?

Thanks.

-Jeff

-Jeff


Re: font colour and font size for a few words in VIM files

2007-03-30 Thread Dr Tien Pham
Hi Tony

Thank you so much for your explanation. 
Kind regards

tien


- Original Message -
From: "A.J.Mechelynck" <[EMAIL PROTECTED]>
Date: Friday, March 30, 2007 10:17 pm
Subject: Re: font colour and font size for a few words in VIM files
> Tien Pham wrote:
> > Hi all
> > 
> > Is there anyway to change the background colour, font colour and 
> to 
> > convert normal font to bold font just for a few words in VIM files?
> > 
> > I have a large file with many different sections and headings. I 
> have 
> > been trying to find a way to make some headings or some notes 
> standing 
> > out from the rest of the text by using different colours or 
> different 
> > font sizes but I could find these things from the help command. 
> I would 
> > appreciate if someone show me how to do it or tell me it cannot 
> be done 
> > in VIM so that I can stop searching for my solution.
> > 
> > Many thanks
> > tien
> > 
> 
> Different font sizes are not possible. In Vim, all printable 
> characters must 
> be exactly the same height and width, with the exception of East-
> Asian "wide" 
> characters, which must be exactly the same height and exactly 
> twice the width 
> of ASCII (or other "narrow") characters.
> 
> Different colours, as well as bold and (in terminals which support 
> them) 
> underlined or italic, are possible using syntax highlighting. For 
> instance, in 
> HTML files, any combination of ,  and  tags produces the 
> corresponding combination of bold, italic and/or underlined text 
> in gvim. 
> Similarly, in help, the words "Note" and (IIRC) "TODO" are 
> highlighted in a 
> different colour than the rest (in gvim, usually black on yellow).
> 
> The commands :match, :2match and :3match (the latter is used for 
> bracket 
> matching and only the former exists prior to version 7) allow 
> setting 
> different bg/fg colours for text which matches a certain regular 
> expression.
> See
>   :help syntax.txt
>   :help :match
> 
> 
> Best regards,
> Tony.
> -- 
> ... Our second completely true news item was sent to me by Mr. H. 
> BoyceConnell Jr. of Atlanta, Ga., where he is involved in a law 
> firm.  One
> thing I like about the South is, folks there care about tradition. 
> If
> somebody gets handed a name like "H. Boyce," he hangs on to it, 
> puts it
> on his legal stationery, even passes it to his son, rather than do 
> whata lesser person would do, such as get it changed or kill himself.
>   -- Dave Barry, "This Column is Nothing but the Truth!"
> 


Re: How to remove 2 or more empty lines when closing the the file?

2007-03-30 Thread François Ingelrest

On 3/30/07, Jean-Rene David <[EMAIL PROTECTED]> wrote:

Note that this implementation will give you a
warning if the pattern is not found.


I'm using this to remove trailing spaces:

" Remove trailing spaces when saving text files
" See :help restore-position
function! RemoveTrailingSpaces()
   exe "normal msHmtgg"
   %s/\s\+$//ge
   exe "normal 'tzt`s"
endfunction

au BufWrite * if ! &bin | call RemoveTrailingSpaces() | endif

The function restores cursor position and does not give any warning
because of the 'e' flag. You can do the same things for empty lines.


Re: font colour and font size for a few words in VIM files

2007-03-30 Thread A.J.Mechelynck

Tien Pham wrote:

Hi all

Is there anyway to change the background colour, font colour and to 
convert normal font to bold font just for a few words in VIM files?


I have a large file with many different sections and headings. I have 
been trying to find a way to make some headings or some notes standing 
out from the rest of the text by using different colours or different 
font sizes but I could find these things from the help command. I would 
appreciate if someone show me how to do it or tell me it cannot be done 
in VIM so that I can stop searching for my solution.


Many thanks
tien



Different font sizes are not possible. In Vim, all printable characters must 
be exactly the same height and width, with the exception of East-Asian "wide" 
characters, which must be exactly the same height and exactly twice the width 
of ASCII (or other "narrow") characters.


Different colours, as well as bold and (in terminals which support them) 
underlined or italic, are possible using syntax highlighting. For instance, in 
HTML files, any combination of ,  and  tags produces the 
corresponding combination of bold, italic and/or underlined text in gvim. 
Similarly, in help, the words "Note" and (IIRC) "TODO" are highlighted in a 
different colour than the rest (in gvim, usually black on yellow).


The commands :match, :2match and :3match (the latter is used for bracket 
matching and only the former exists prior to version 7) allow setting 
different bg/fg colours for text which matches a certain regular expression.


See
:help syntax.txt
:help :match


Best regards,
Tony.
--
... Our second completely true news item was sent to me by Mr. H. Boyce
Connell Jr. of Atlanta, Ga., where he is involved in a law firm.  One
thing I like about the South is, folks there care about tradition.  If
somebody gets handed a name like "H. Boyce," he hangs on to it, puts it
on his legal stationery, even passes it to his son, rather than do what
a lesser person would do, such as get it changed or kill himself.
-- Dave Barry, "This Column is Nothing but the Truth!"


font colour and font size for a few words in VIM files

2007-03-30 Thread Dr Tien Pham
Hi all

I just read my pervious email regarding the question of font colour 
and font size
in VIM, I realise that I missed out one word. Please find below a 
corrected version.

Thanks for your help



Is there anyway to change the background colour, font colour and to 
convert 
normal font to bold font just for a few words in VIM files?

I have a large file with many different sections and headings. I have 
been 
trying to find a way to make some headings or some notes standing out 
from 
the rest of the text by using different colours or different font 
sizes but 
I could NOT find these things from the help command. I would 
appreciate if 
someone show me how to do it or tell me it cannot be done in VIM so 
that I 
can stop searching for my solution.

Many thanks
tien





Re: How to remove 2 or more empty lines when closing the the file?

2007-03-30 Thread Jean-Rene David
* Eric Leenman [2007.03.30 06:45]:
> With the follwing subtitue it's possible to
> remove blocks of 3 empty lines
> :%s/^\n\{3}//
> 
> How do you need to change it, so that it does
> remove blocks of 2, or more,
> empty lines?

:%s/^\n\{2,}//

> And how do you give this command just before
> closing the file?

One way is to use autocommands. 

:au BufLeave * :%s/^\n\{2,}//

Note that this implementation will give you a
warning if the pattern is not found.

See 

:h autocmd-events

if BufLeave isn't exactly what you want,

:h autocmd-patterns

if * isn't exactly the file pattern you want, or

:h autocommand

For the general discussion.

-- 
JR


Re: How to remove 2 or more empty lines when closing the the file?

2007-03-30 Thread A.J.Mechelynck

Eric Leenman wrote:

Hi,

With the follwing subtitue it's possible to remove blocks of 3 empty lines
:%s/^\n\{3}//

How do you need to change it, so that it does remove blocks of 2, or 
more, empty lines?

And how do you give this command just before closing the file?

Rgds,
Eric


:au BufWritePre %s/^\n$/\r/


Best regards,
Tony.
--
God is real, unless declared integer.



How to remove 2 or more empty lines when closing the the file?

2007-03-30 Thread Eric Leenman

Hi,

With the follwing subtitue it's possible to remove blocks of 3 empty lines
:%s/^\n\{3}//

How do you need to change it, so that it does remove blocks of 2, or more, 
empty lines?

And how do you give this command just before closing the file?

Rgds,
Eric

_
Get a FREE Web site, company branded e-mail and more from Microsoft Office 
Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/




RE: startup extremely slow

2007-03-30 Thread Jagpreet
Thanks a lot.
   Passing -X flag solves the problem.

Regards,
Jagpreet

-Original Message-
From: Tom Purl [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 29, 2007 8:34 PM
To: Jagpreet
Cc: 'A.J.Mechelynck'; vim@vim.org
Subject: RE: startup extremely slow

OK, so you tried passing the -X flag when opening the file?  If so, and
it's still slow, maybe you use use the -V[N] option to see what's going
on?

On Thu, March 29, 2007 9:48 am, Jagpreet wrote:
> Thanks for your quick reply.
>
> Well I'm not using any X-server nor do I intend to.
>
>   I just find that I logon to server with SSH instead of telnet(as server
> doesn't support this).
>
> All I want to use vim in consol mode because it works very fast, and is
> working on other server with the same settings.
> After the file gets open it works as expected but its very long time it
> takes to open the file.
>
> So far as display settings are concerned I have that in .bashrc file and
> I'm
> exporting DISPLAY variable anyways. I tried the same with without setting
> that as well but result is the same.
>
> Not sure whats happening.
>
>
>
> -Original Message-
> From: Tom Purl [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 29, 2007 7:51 PM
> To: A.J.Mechelynck
> Cc: Jagpreet; vim@vim.org
> Subject: Re: startup extremely slow
>
> On Thu, March 29, 2007 9:16 am, A.J.Mechelynck wrote:
>> To avoid trying to connect with an X server in an X-enabled console
>> Vim (which could be a console version with clipboard support, or a GUI
>> version being run in console mode), use -X on the shell command line
>> for Vim, thus:
>>
>>  vim -X foobar.txt
>
> Thanks a ton Richard and Tony!  This is a much easier solution to my
> problem than what I'm doing today (setting the DISPLAY var).
>
> Does this help you Jagpreet?
>
> Tom Purl
>
>