Re: findfile() results are inconsistent

2006-07-25 Thread Mikolaj Machowski
Dnia wtorek, 25 lipca 2006 02:14, Eric Van Dewoestine napisał: 1. We are in /home/mikolaj:: echo findifile(b, 1;) 1/b You are giving findfile() a relative path to search, so it is returning a relative result. Result is the same regardless to path in second argument.

Re: findfile() results are inconsistent

2006-07-25 Thread Mikolaj Machowski
Dnia wtorek, 25 lipca 2006 07:11, A.J.Mechelynck napisał: I don't see any inconsistency. According to the help, findfile() is Just like |finddir()|, but find a file instead of a directory. and finddir() has: When the found directory is below the current directory a relative path is returned.

Re: findfile() results are inconsistent

2006-07-25 Thread Eric Van Dewoestine
On 7/25/06, Mikolaj Machowski [EMAIL PROTECTED] wrote: Dnia wtorek, 25 lipca 2006 02:14, Eric Van Dewoestine napisał: 1. We are in /home/mikolaj:: echo findifile(b, 1;) 1/b You are giving findfile() a relative path to search, so it is returning a relative result.

Re: Crazy wish: vimcat

2006-07-25 Thread mwoehlke
Benji Fisher wrote: On Fri, Jul 21, 2006 at 03:31:15PM -0500, mwoehlke wrote: Is this possible? It just occurred to me that it would be great if there was a VIM-related program that would 'cat' in color using VIM's highlighting rules. Is this something that VIM could be made to do via

Bug in filetype.vim w.r.t. mutt temp file names

2006-07-25 Thread Gary Johnson
I noticed recently that vim does not always set 'filetype' to mail when I edit mutt temporary files, e.g., postponed messages. I traced the problem to mutt's use of mktemp() with the pattern muttXX. I don't know about other OSs, but mktemp() on SunOS 5.8 replaces those Xs with characters

Re: Bug in filetype.vim w.r.t. mutt temp file names

2006-07-25 Thread Yakov Lerner
On 7/26/06, mwoehlke [EMAIL PROTECTED] wrote: Gary Johnson wrote: I noticed recently that vim does not always set 'filetype' to mail when I edit mutt temporary files, e.g., postponed messages. I traced the problem to mutt's use of mktemp() with the pattern muttXX. I don't know about

Re: Bug in filetype.vim w.r.t. mutt temp file names

2006-07-25 Thread mwoehlke
Yakov Lerner wrote: On 7/26/06, mwoehlke [EMAIL PROTECTED] wrote: Gary Johnson wrote: I noticed recently that vim does not always set 'filetype' to mail when I edit mutt temporary files, e.g., postponed messages. I traced the problem to mutt's use of mktemp() with the pattern muttXX.

Re: Why does Press ENTER or type command to continue appear when 12 columns left?

2006-07-25 Thread Nikolai Weibull
On 7/25/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 7/23/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 7/23/06, Yakov Lerner [EMAIL PROTECTED] wrote: On 7/23/06, Nikolai Weibull [EMAIL PROTECTED] wrote: When output from for example :echon comes within 12 columns of the right hand

Re: findfile() results are inconsistent

2006-07-25 Thread Mikolaj Machowski
Dnia wtorek, 25 lipca 2006 16:50, Eric Van Dewoestine napisał: So, the results are still consistent with the documented behavior. But not internally consistent. But OK - it is documented behaviour. Regarding ';', the docs imply that it forces a search upwards, but should probably state that

Bug in :runtime ?

2006-07-25 Thread Bill McCarthy
Hello Vim Developers, I was timing the startup process by stepping though what I think Gvim does (on Win XP Pro with 7.0.42). gvim -u NONE -N That starts up without _vimrc or _gvimrc or plugins and sets nocp. :so $vim\_vimrc worked fine. :so $vim\_gvimrc also worked fine.

Re: Bug in :runtime ?

2006-07-25 Thread A.J.Mechelynck
Bill McCarthy wrote: Hello Vim Developers, I was timing the startup process by stepping though what I think Gvim does (on Win XP Pro with 7.0.42). gvim -u NONE -N That starts up without _vimrc or _gvimrc or plugins and sets nocp. :so $vim\_vimrc worked fine. :so $vim\_gvimrc

Running win32 vim and gvim under Cygwin and pure Windows XP

2006-07-25 Thread Gary Johnson
Most of my development work is done on a Unix system (usually SunOS but sometimes Linux or HP-UX), but some requires that I use Windows XP. Source code is maintained under ClearCase on all these systems except Linux. I'm trying to get my Windows environment tuned up so that development is as

Re: Other European languages on a US keyboard [OT]

2006-07-25 Thread A.J.Mechelynck
Yakov Lerner wrote: On 7/24/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: The French have used accented letters since (IIUC) before Gutenberg invented printing. While Antonie helps us with bits of history, I thought I'd ask this. I was on irc chat, and somehow the issue of French using a lot

Re: Running win32 vim and gvim under Cygwin and pure Windows XP

2006-07-25 Thread A.J.Mechelynck
Gary Johnson wrote: Most of my development work is done on a Unix system (usually SunOS but sometimes Linux or HP-UX), but some requires that I use Windows XP. Source code is maintained under ClearCase on all these systems except Linux. I'm trying to get my Windows environment tuned up so

search and result

2006-07-25 Thread SHANKAR R-R66203
In a function, I am executing a search. I have to implement different things based on whether search got a result or failed with an error. exec '/^\w\+\t\w\+' In the next line, I have to check whether the test passed or failed. How do I do this ? Regards, Shankar Shankar Ramakrishnan

Re: search and result

2006-07-25 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: In a function, I am executing a search. I have to implement different things based on whether search got a result or failed with an error. exec '/^\w\+\t\w\+' In the next line, I have to check whether the test passed or failed. How do I do this ?

RE: search and result

2006-07-25 Thread SHANKAR R-R66203
I am actually having a little bit complicated situation. Inside a search() fucntion, can I use, variables. The part of the code is given below. let rs_sig = expand(cword) exec '1' exec '/^\s*module\s\+\w\+' let rs_line=getline(.) let

Re: search and result

2006-07-25 Thread Jürgen Krämer
Hi, SHANKAR R-R66203 wrote: I am actually having a little bit complicated situation. Inside a search() fucntion, can I use, variables. The part of the code is given below. let rs_sig = expand(cword) exec '1' exec '/^\s*module\s\+\w\+' let rs_line=getline(.) let

Re: Problem starting up vim: No mapping found

2006-07-25 Thread Tobias Herp
A.J.Mechelynck [EMAIL PROTECTED] wrote: If you want step-by-step help about how to compile Vim on Unix-like systems, see my page http://users.skynet.be/antoine.mechelynck/vim/compunix.vim I most probably won't compile on the productive servers, but consider to do it on my virtual server.

Re: Problem starting up vim: No mapping found

2006-07-25 Thread Yakov Lerner
On 7/25/06, Tobias Herp [EMAIL PROTECTED] wrote: A.J.Mechelynck [EMAIL PROTECTED] wrote: If you want step-by-step help about how to compile Vim on Unix-like systems, see my page http://users.skynet.be/antoine.mechelynck/vim/compunix.vim I most probably won't compile on the productive

Re: Problem starting up vim: No mapping found

2006-07-25 Thread Tobias Herp
Yakov Lerner [EMAIL PROTECTED] wrote: On 7/24/06, Tobias Herp [EMAIL PROTECTED] wrote: Hi, fellow vimmers, just returning to work after two weeks, I found that vim on several Linux machines doesn't start up properly anymore; it says Keine Zuordnung gefunden Keine Zuordnung gefunden

ANN: vim7_install.sh : {download + build + install} latest vim7 from svn sources in 1 command.

2006-07-25 Thread Yakov Lerner
If you were always wanted to build vim from sources (on unix/cygwin) but did not know where to start, don't hesitate to pick the vim7_install.sh from http://www.vim.org/scripts/script.php?script_id=1473 , also attached. It allows you to {download, build and install} vim7 in once command,

Re: ANN: vim7_install.sh : {download + build + install} latest vim7 from svn sources in 1 command.

2006-07-25 Thread Yakov Lerner
On 7/25/06, Yakov Lerner [EMAIL PROTECTED] wrote: If you were always wanted to build vim from sources (on unix/cygwin) Grammar correction. I wanted to write: If you always wanted ...

Re: Other European languages on a US keyboard [OT]

2006-07-25 Thread Russell Bateman
[more way off topic comments] ...some linguists say that those silent letters are not artifacts, but reflect __phonemes__ (is that the word?) that are still present in the mental representation of the language... --__morphemes__, actually, from a written point of view (you did say letters).

a question related to substitution using regular expression

2006-07-25 Thread Xiaoshen Li
Dear All, My file is like the following: data_1.dat pre= -1908.77 post= -48977.33 diff= -448.947 data_2.dat pre= -444.333 post= -333.545 diff= -777.333 . . I hope to find out a regular expression subtitution commad to delete everything after dat to get a file like: data_1.dat data_2.dat

Re: a question related to substitution using regular expression

2006-07-25 Thread Charles E Campbell Jr
Xiaoshen Li wrote: Dear All, My file is like the following: data_1.dat pre= -1908.77 post= -48977.33 diff= -448.947 data_2.dat pre= -444.333 post= -333.545 diff= -777.333 . . I hope to find out a regular expression subtitution commad to delete everything after dat to get a file like:

Re: a question related to substitution using regular expression

2006-07-25 Thread Tim Chase
My file is like the following: data_1.dat pre= -1908.77 post= -48977.33 diff= -448.947 data_2.dat pre= -444.333 post= -333.545 diff= -777.333 . . I hope to find out a regular expression subtitution commad to delete everything after dat to get a file like: data_1.dat data_2.dat . . I

Re: Other European languages on a US keyboard [OT]

2006-07-25 Thread cga2000
On Tue, Jul 25, 2006 at 10:27:58AM EDT, Russell Bateman wrote: [more way off topic comments] [...] Phonemes are (very) roughly equivalent to syllables and exist at the oral or phonetic level. French has the peculiarity, more than most other Western languages in my observation, of its end

Re: Other European languages on a US keyboard

2006-07-25 Thread cga2000
On Tue, Jul 25, 2006 at 03:09:29AM EDT, A.J.Mechelynck wrote: [..] and it can change fonts on-the-fly (change the font from Courier to Lucida to whatever, only through Vim keyboard commands). I would never want do that.. but just out of curiosity.. why would that not be possible in an

Re: a question related to substitution using regular expression

2006-07-25 Thread Marshall Abrams
Why not just s/ .*// ? (For either vim or sed.) Marshall On Jul 25, 2006, at 1:09 PM, Tim Chase wrote: My file is like the following: data_1.dat pre= -1908.77 post= -48977.33 diff= -448.947 data_2.dat pre= -444.333 post= -333.545 diff= -777.333 . . I hope to find out a regular

Matching non-capitalized words?

2006-07-25 Thread William O'Higgins Witteman
How would I match (and then delete) all of the words in a buffer that are not capitalized? Thanks. -- yours, William

RE: Matching non-capitalized words?

2006-07-25 Thread Halim, Salman
Make sure 'ignorecase' is off: :set noignorecase :%s/\[a-z]\+\//g Salman. -Original Message- From: William O'Higgins Witteman [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 25, 2006 4:24 PM To: vim Subject: Matching non-capitalized words? How would I match (and then delete)

Re: Matching non-capitalized words?

2006-07-25 Thread Tim Chase
Make sure 'ignorecase' is off: :set noignorecase :%s/\[a-z]\+\//g If you don't want to bung with your vim-wide (or bufferwide) settings, you can always just change your :s to include the I flag. :%s/\[a-z]\+\//gI Additionally, this will not find camel-case words, such as

Re: Other European languages on a US keyboard [OT]

2006-07-25 Thread A.J.Mechelynck
Russell Bateman wrote: [more way off topic comments] ...some linguists say that those silent letters are not artifacts, but reflect __phonemes__ (is that the word?) that are still present in the mental representation of the language... --__morphemes__, actually, from a written point of view

Re: Other European languages on a US keyboard

2006-07-25 Thread A.J.Mechelynck
cga2000 wrote: On Tue, Jul 25, 2006 at 03:09:29AM EDT, A.J.Mechelynck wrote: [..] and it can change fonts on-the-fly (change the font from Courier to Lucida to whatever, only through Vim keyboard commands). I would never want do that.. but just out of curiosity.. why would that not be

Re: search and result

2006-07-25 Thread A.J.Mechelynck
SHANKAR R-R66203 wrote: In a function, I am executing a search. I have to implement different things based on whether search got a result or failed with an error. exec '/^\w\+\t\w\+' In the next line, I have to check whether the test passed or failed. How do I do this ? Regards,

Re: Problem starting up vim: No mapping found

2006-07-25 Thread A.J.Mechelynck
Tobias Herp wrote: Charles E Campbell Jr wrote: Tobias Herp wrote: My vim version (SuSE Linux 9.1): VIM - Vi IMproved 6.2 (2003 Jun 1, compiled Apr 6 2004 03:03:03) ... Yakov gave you good advice; here's some more: build vim 7.0 . Well, I probably would, but those are business servers or

Re: Problem starting up vim: No mapping found

2006-07-25 Thread A.J.Mechelynck
Tobias Herp wrote: A.J.Mechelynck [EMAIL PROTECTED] wrote: If you want step-by-step help about how to compile Vim on Unix-like systems, see my page http://users.skynet.be/antoine.mechelynck/vim/compunix.vim I most probably won't compile on the productive servers, but consider to do it on

Inserting hex characters

2006-07-25 Thread Trent Gamblin
I'm editing binary files with Vim using set display=uhex and I was wondering if there's a way to insert characters given their scancode. Something like what I used to do in DOS by holding Alt then typing the number of the character to enter?

Re: Inserting hex characters

2006-07-25 Thread Tim Chase
I'm editing binary files with Vim using set display=uhex and I was wondering if there's a way to insert characters given their scancode. Something like what I used to do in DOS by holding Alt then typing the number of the character to enter? Sounds like you're looking for what's described at

Re: Inserting hex characters

2006-07-25 Thread A.J.Mechelynck
Tim Chase wrote: I'm editing binary files with Vim using set display=uhex and I was wondering if there's a way to insert characters given their scancode. Something like what I used to do in DOS by holding Alt then typing the number of the character to enter? Sounds like you're looking for

Re: Matching non-capitalized words?

2006-07-25 Thread Jürgen Krämer
Hi, Tim Chase wrote: Make sure 'ignorecase' is off: :set noignorecase :%s/\[a-z]\+\//g If you don't want to bung with your vim-wide (or bufferwide) settings, you can always just change your :s to include the I flag. :%s/\[a-z]\+\//gI another option is to include \C in