Re: compile vim7 with different or without local prefix /usr/local

2007-01-09 Thread Bram Moolenaar
Michael Haubenwallner wrote: maybe I've overlooked something in configure.in, but to me it seems that it is impossible to compile vim7 without searching /usr/local/include and /usr/local/lib. Thing is, on solaris fex, if iconv.h is found in /usr/local/include,

patch 7.0.179

2007-01-09 Thread Bram Moolenaar
Patch 7.0.179 Problem:Using :recover or vim -r without a swapfile crashes Vim. Solution: Check for buf to be unequal NULL. (Yukihiro Nakadaira) Files: src/memline.c *** ../vim-7.0.178/src/memline.cTue Nov 21 20:57:21 2006 --- src/memline.c Tue Jan 9 14:33:44 2007

patch 7.0.181

2007-01-09 Thread Bram Moolenaar
Patch 7.0.181 Problem:When reloading a file that starts with an empty line, the reloaded buffer has an extra empty line at the end. (Motty Lentzitzky) Solution: Delete all lines, don't use bufempty(). Files: src/fileio.c *** ../vim-7.0.180/src/fileio.c Thu Oct 12 21:15:04

patch 7.0.182

2007-01-09 Thread Bram Moolenaar
Patch 7.0.182 Problem:When using a mix of undo and g- it may no longer be possible to go to every point in the undo tree. (Andy Wokula) Solution: Correctly update pointers in the undo tree. Files: src/undo.c *** ../vim-7.0.181/src/undo.c Tue Aug 29 17:28:56 2006 ---

Re: patch 7.0.182

2007-01-09 Thread Ali Akcaagac
Hi Bram, may you tell us, when you plan to release VIM 7.1 ? mfg, Ali Akcaagac On Tue, 2007-01-09 at 20:30 +0100, Bram Moolenaar wrote: Patch 7.0.182 Problem:When using a mix of undo and g- it may no longer be possible to go to every point in the undo tree. (Andy Wokula)

Re: patch 7.0.182

2007-01-09 Thread Bram Moolenaar
Ali Akcaagac wrote: may you tell us, when you plan to release VIM 7.1 ? I don't know. I still have quite a few bugs to fix. -- hundred-and-one symptoms of being an internet addict: 15. Your heart races faster and beats irregularly each time you see a new WWW site address in print or on

recent.vim plugin

2007-01-09 Thread Ilia N Ternovich
Hi all! I'm trying to make recent.vim plguin working with vim-7.0 There is some kind of problem with mapping keys inside plugin: function! OptionFiles() let file = bufname(%) if bufname()==recent_files map Enter gf set number set noswapfile else set

Re: Mac Questions

2007-01-09 Thread Bram Moolenaar
Dave Land wrote: On Jan 8, 2007, at 3:03 PM, Dave Land wrote: Happily, Apple provided a utility that handles it for you: defaults read ${HOME}/.MacOSX/environment Actually, making this work in bash (or other shell) requires a little more than just reading the file... Here's the

Re: :sort by date

2007-01-09 Thread Vigil
This works on my admittedly small test set: :%!sort -k3 -t/ You're making several unstated assumptions. (1) The records are already sorted by month and day. I would have thought that, too, but sorting this: 01/04/2007 blah 01/03/2007 blah 12/30/2006 blah 07/05/2003 blah 02/04/2007

RE: Find and replace in visual area.

2007-01-09 Thread Silva, Paulo
Nope, that didn't helped much. But no worries, the simple replace when visual is still selected works fine. I gess I'll never know why, but then again it dosen't matter really if I can do it some other way. Thanks =) -Original Message- From: Mr. Shawn H. Corey Sent: segunda-feira, 8 de

Re: Mac Questions

2007-01-09 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8-Jan-07, at 5:31 PM, Brett Calcott wrote: This does seem to be the case. No amount of fiddling with .profile .bashrc .bash_profile /etc/bashrc or whatever makes any difference to the environment that ends up in the GUI version that is started

Re: Find and replace in visual area.

2007-01-09 Thread Charles E Campbell Jr
Silva, Paulo wrote: Nope, that didn't helped much. But no worries, the simple replace when visual is still selected works fine. I gess I'll never know why, but then again it dosen't matter really if I can do it some other way. In that case, you may wish to consider vis.vim -- it allows you

Reformat in visual area - vmap question

2007-01-09 Thread John Cordes
I have *very* little experience writing 'map' commands for my .vimrc (Linux). For some years I've had the following two commands for reformatting with the par utility. reformat paragraph with no arguments: map ** {!}par^M} reformat paragraph with arguments: map *^V {!}par They both work

how to auto set all 26 markers when a match is made?

2007-01-09 Thread o1792
Hi So apparently when manually navigating a file in vim you can set a marker by typing ma at the point of your choosing, the other 25 are represneted by b-z. Great stuff. But what I'd like to is have vim put in the markers itself, based on a regex I give it. So I suppose I need some sort of

Re: Reformat in visual area - vmap question

2007-01-09 Thread Charles E Campbell Jr
John Cordes wrote: I have *very* little experience writing 'map' commands for my .vimrc (Linux). For some years I've had the following two commands for reformatting with the par utility. reformat paragraph with no arguments: map ** {!}par^M} reformat paragraph with arguments: map *^V

Re: how to auto set all 26 markers when a match is made?

2007-01-09 Thread Tim Chase
But what I'd like to is have vim put in the markers itself, based on a regex I give it. So I suppose I need some sort of exec command the kind used in unix find, etc. i.e. :%s/myfabregex/exec ma/g of course that will only work for the first marker, so I will need a loop that increments

Re: Reformat in visual area - vmap question

2007-01-09 Thread Tim Chase
reformat paragraph with no arguments: map ** {!}par^M} reformat paragraph with arguments: map *^V {!}par They both work well, but I frequently would like to run par on a visual selection. I naively tried vmap *^V {!}par I suspect you want something like vnoremap *^V :!par I'll throw

Re: Reformat in visual area - vmap question

2007-01-09 Thread John Cordes
On [2007-01-09 at 10:50am] Charles E Campbell Jr [EMAIL PROTECTED] wrote: John Cordes wrote: They both work well, but I frequently would like to run par on a visual selection. I naively tried vmap *^V {!}par but this fails with the message (when I try * 55 on a selected area)

Re: Reformat in visual area - vmap question

2007-01-09 Thread Tim Chase
Thanks for the response. I usually would be using Shift-V to select the lines for formatting; I take it vis.vim wouldn't work in that case? Heh, Dr. Chip answered the other half of my response. :) Normal ranges operate linewise. Dr. Chip's vis.vim plugin overcomes this limitation, and

compile options

2007-01-09 Thread striker
I successfully compiled vim 7 on Mac OS X, but neglected to set options for things like Python, Perl, and digraphs, etc... I did the following to re-compile: make distclean ./configure --enable-perlinterp --enable-pythoninterp --enable- tclinterp --enable-fontset --with-features=huge make

Re: Reformat in visual area - vmap question

2007-01-09 Thread John Cordes
On [2007-01-09 at 11:00am] Tim Chase [EMAIL PROTECTED] wrote: I suspect you want something like vnoremap *^V :!par This one worked the way I expected - thanks! I'll throw in the obligatory caution that the * is an actual Vim command (and thus useful...I employ it nearly daily). You

Re: Reformat in visual area - vmap question

2007-01-09 Thread Albie
John Cordes wrote: On [2007-01-09 at 11:00am] Tim Chase [EMAIL PROTECTED] wrote: I suspect you want something like vnoremap *^V :!par This one worked the way I expected - thanks! I'll throw in the obligatory caution that the * is an actual Vim command (and thus useful...I employ

Re: Reformat in visual area - vmap question

2007-01-09 Thread Charles E Campbell Jr
John Cordes wrote: On [2007-01-09 at 10:50am] Charles E Campbell Jr [EMAIL PROTECTED] wrote: John Cordes wrote: They both work well, but I frequently would like to run par on a visual selection. I naively tried vmap *^V {!}par but this fails with the message (when I try * 55 on a

Re: Reformat in visual area - vmap question

2007-01-09 Thread Albie
John Cordes wrote: On [2007-01-09 at 11:00am] Tim Chase [EMAIL PROTECTED] wrote: I suspect you want something like vnoremap *^V :!par This one worked the way I expected - thanks! I'll throw in the obligatory caution that the * is an actual Vim command (and thus useful...I employ

Re: Reformat in visual area - vmap question

2007-01-09 Thread Charles E Campbell Jr
Tim Chase wrote: Thanks for the response. I usually would be using Shift-V to select the lines for formatting; I take it vis.vim wouldn't work in that case? Heh, Dr. Chip answered the other half of my response. :) Normal ranges operate linewise. Dr. Chip's vis.vim plugin overcomes this

Re: Reformat in visual area - vmap question

2007-01-09 Thread John Cordes
On [2007-01-09 at 11:55am] Albie [EMAIL PROTECTED] wrote: John Cordes wrote: On [2007-01-09 at 11:00am] Tim Chase [EMAIL PROTECTED] wrote: vnoremap leader= :!parcr vnoremap leaderg= :!parspace I never encountered leader before; I have just read :h on Leader but don't seem to be much

Re: Upper casing a UTF-8 character

2007-01-09 Thread A.J.Mechelynck
Przemyslaw Gawronski wrote: Hi I've got csv file, with some text fields encoded in utf-8. I would like to upper case the first letter in a word. Normally I would just use '~' on that character, but it doesn't seem to work with utf-8 encoding. Thanks for suggestions Przemek Works for me.

Re: compile options

2007-01-09 Thread A.J.Mechelynck
striker wrote: I successfully compiled vim 7 on Mac OS X, but neglected to set options for things like Python, Perl, and digraphs, etc... I did the following to re-compile: make distclean ./configure --enable-perlinterp --enable-pythoninterp --enable-tclinterp --enable-fontset

Re: compile options

2007-01-09 Thread A.J.Mechelynck
A.J.Mechelynck wrote: striker wrote: I successfully compiled vim 7 on Mac OS X, but neglected to set options for things like Python, Perl, and digraphs, etc... I did the following to re-compile: make distclean ./configure --enable-perlinterp --enable-pythoninterp --enable-tclinterp

Re: :sort by date

2007-01-09 Thread Bill McCarthy
On Tue 9-Jan-07 4:11am -0600, Vigil wrote: This works on my admittedly small test set: :%!sort -k3 -t/ You're making several unstated assumptions. (1) The records are already sorted by month and day. I would have thought that, too, but sorting this: 01/04/2007 blah 01/03/2007

Formatting an all uppercase message

2007-01-09 Thread Brian McKee
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, This issue must be familiar to at least somebody I get text files that are ALL UPPERCASE and formatted to an odd line width from an internal email system. I'd like to pretty them up. Has somebody come up with a slick way to do

netrw woes

2007-01-09 Thread Guido Van Hoecke
Hi, :h netrw-a describes how one can hide certain files. It gives \.obj as example of a file mask that can be used. I want to browse my thunderbird mail directory, but ignore the msf files. So I use the c-h map to enter \.msf as mask of files to be hidden. So the normal list (only the top most

Re: Reformat in visual area - vmap question

2007-01-09 Thread Yegappan Lakshmanan
Hi, On 1/9/07, John Cordes [EMAIL PROTECTED] wrote: I have *very* little experience writing 'map' commands for my .vimrc (Linux). For some years I've had the following two commands for reformatting with the par utility. .. I never encountered leader before; I have just read :h on Leader

Re: Formatting an all uppercase message

2007-01-09 Thread A.J.Mechelynck
Brian McKee wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, This issue must be familiar to at least somebody I get text files that are ALL UPPERCASE and formatted to an odd line width from an internal email system. I'd like to pretty them up. Has somebody come up with a

Re: netrw woes

2007-01-09 Thread Bill McCarthy
On Tue 9-Jan-07 1:33pm -0600, Guido Van Hoecke wrote: I realised that v98 is an old one, it came with the default install of my vim 7 with patches 1-35. So I got netrw v107 and sourced it with :so% Indeed you are out of date. I was using netrw 108b until, apparently, yesterday when I updated

Re: netrw woes

2007-01-09 Thread A.J.Mechelynck
Guido Van Hoecke wrote: Hi, :h netrw-a describes how one can hide certain files. It gives \.obj as example of a file mask that can be used. I want to browse my thunderbird mail directory, but ignore the msf files. So I use the c-h map to enter \.msf as mask of files to be hidden. So the normal

syntax for vcard/vcf files

2007-01-09 Thread Friedrich Strohmaier
Hello everybody, A happy new year to all vimmers. :o) I am looking for a syntax highlighting file for vcard/vcf files. Nor $searchengine nor vim.org could give me advice. Does somebody know about syntax highlighting for vcard/vcf files? Friedrich

Folding to produce a high-level index of code

2007-01-09 Thread Noah Spurrier
I have folding set to use expr. I have a foldexpr that identifies lines for functions and classes in PHP. Lines that are part of a function are folded. Function definition lines are NOT folded. This gives me a single level of folding that works like an index to my code. This works great. Is it

Re: :sort by date

2007-01-09 Thread Arun Easi
On Tue, 9 Jan 2007, Bill McCarthy wrote: On Tue 9-Jan-07 4:11am -0600, Vigil wrote: This works on my admittedly small test set: :%!sort -k3 -t/ You're making several unstated assumptions. (1) The records are already sorted by month and day. I would have thought that, too, but

Re: Folding to produce a high-level index of code

2007-01-09 Thread Peter Hodge
Hello, Try this script: http://www.vim.org/scripts/script.php?script_id=1623 regards, Peter --- Noah Spurrier [EMAIL PROTECTED] wrote: I have folding set to use expr. I have a foldexpr that identifies lines for functions and classes in PHP. Lines that are part of a function are folded.

recent.vim plugin

2007-01-09 Thread Ilia N Ternovich
Hi all! I'm trying to make recent.vim plguin working with vim-7.0 There is some kind of problem with mapping keys inside plugin: function! OptionFiles() let file = bufname(%) if bufname()==recent_files map Enter gf set number set noswapfile else set