Re: Weird problem with helpgrep

2007-01-29 Thread DervishD
Hi Tony :) * A.J.Mechelynck [EMAIL PROTECTED] dixit: DervishD wrote: I've discovered that :helpgrep pattern doesn't work for me, always returning E480 (BTW, :help E480 shows help about argdelete, as if E numbers in source code and docs weren't synchronized). But that's not the

A suggestion about runtime files and documentation

2007-01-29 Thread DervishD
Hi all, specially Bram :) The source code for vim is full of hardcoded directories, rendering useless the constants defined in src/Makefile. Moreover, it doesn't use configure values to establish locations, but that's a minor problem. The major problem is that this scheme breaks LSB for

Re: replace with a number sequence

2007-01-29 Thread John Little
Hi IMHO simpler and more flexible (works if there are lines not matching the pattern) is: :let n=0 | g/opIndex(\zs\d\+/s//\=n/|let n+=1 A useful idiom I learned here. Usually I muck around with ordinary searches until the search highlighting shows I've got it right, then :let

Re: cut/paste character conversion issues from Word or Notepad to vim

2007-01-29 Thread A.J.Mechelynck
ben lieb wrote: Alas, most of my clients give me text in Word Format. However even when I cut-paste from Notepad into gvim certain characters don't convert over, namely quotes (single, double) and diacritics (áé...). Instead ' for example turns into ¿. When I pasted in a lot of text, it can be

Re: Weird problem with helpgrep

2007-01-29 Thread A.J.Mechelynck
DervishD wrote: Hi Bill :) * Bill McCarthy [EMAIL PROTECTED] dixit: On Sun 28-Jan-07 4:33pm -0600, DervishD wrote: Finally, examining the source code, I found the problem. I have my vim documentation installed in /usr/doc, which is where all documentation is installed on my system. I've

Re: Updating $VIMRUNTIME on Windows

2007-01-29 Thread Yongwei Wu
On 1/29/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: I don't know a purely native-Windows way of doing it (though I suspect Bill might). If you have a functioning rsync program (maybe a Cygwin version) you could try the Unix method to keep the runtime directory up-to-date. The following maintains

Re: Weird problem with helpgrep

2007-01-29 Thread DervishD
Hi Tony :) * A.J.Mechelynck [EMAIL PROTECTED] dixit: DervishD wrote: That won't work, because docs are not in /usr/doc/vim/doc, but in /usr/doc/vim. Otherwise it would work. On my system, documentation is under /usr/share/doc/packagename (the share part is variable, since I maintain

RE: viminfo - bad craziness

2007-01-29 Thread Stahlman, Brett
Here are some comments from my _vimrc that seem to apply. Hope it helps... IMPORTANT NOTE: Never noticed this, but apparently, if you don't escape the `' option, then everything after it is considered to be a comment! In Vim 6.3, the `' option changed to (but you can still use `'). IMPORTANT

Using :g on folds

2007-01-29 Thread David Fishburn
Vim 7 WinXP SP2 I have a file with folding enabled. What I would like to do is use something like this: :v/dave/d But I only want this to operate on folds. I can do this manually by moving to the fold and pressing V (linewise visual mode) followed by x to delete it. That deletes all lines

RE: Substitute tabs for specific column locations

2007-01-29 Thread David Fishburn
-Original Message- From: Tim Chase [mailto:[EMAIL PROTECTED] Sent: Sunday, January 21, 2007 11:08 PM To: David Fishburn Cc: vim@vim.org Subject: Re: Substitute tabs for specific column locations So for each row, replace the tab with an appropriate number of spaces to

[code_complete] Do tab and untab in template code ?

2007-01-29 Thread KLEIN Stéphane
Hello, First, Mingbai, congratulation on your code_complete script. Now, I would like to use indent and unindent in my template code. Example : let g:template['php']['if'] = if( .s:rs.s:re. )\cr{\cr\tab.s:rs.s:re.\cr\untab} To indent, I use tab. I haven't found char to unindent, untab

Re: [code_complete] Do tab and untab in template code ?

2007-01-29 Thread KLEIN Stéphane
2007/1/29, KLEIN Stéphane [EMAIL PROTECTED]: Hello, First, Mingbai, congratulation on your code_complete script. Now, I would like to use indent and unindent in my template code. Example : let g:template['php']['if'] = if( .s:rs.s:re. )\cr{\cr\tab.s:rs.s:re.\cr\untab} To indent, I

Conditional autocmd question

2007-01-29 Thread Evan Klitzke
Hi everyone, I have the F2 key mapped as a compile function for the programs I write, e.g. if I am editing a .tex file I have an autocmd to execute pdflatex, if I am editing a .py file I have an autocmd to execute python. The case of .c files is somewhat trickier: I want to use autocmd to map F2

Re: [code_complete] Do tab and untab in template code ?

2007-01-29 Thread A.J.Mechelynck
KLEIN Stéphane wrote: Hello, First, Mingbai, congratulation on your code_complete script. Now, I would like to use indent and unindent in my template code. Example : let g:template['php']['if'] = if( .s:rs.s:re. )\cr{\cr\tab.s:rs.s:re.\cr\untab} To indent, I use tab. I haven't found

Re: Writeup on mkdownload, getunix.aap and getdos.aap

2007-01-29 Thread Bram Moolenaar
Suresh Govindachar wrote: Is there a write-up describing what :mkdownload does and describing the sturcture of the following files? ftp.nluug.nl/vol/1/vim/runtime/getunix.aap ftp.nluug.nl/vol/1/vim/runtime/getdos.aap I suspect that knowing the answer will enable me to

Re: A suggestion about runtime files and documentation

2007-01-29 Thread Bram Moolenaar
DervishD wrote: Hi all, specially Bram :) The source code for vim is full of hardcoded directories, rendering useless the constants defined in src/Makefile. Moreover, it doesn't use configure values to establish locations, but that's a minor problem. The major problem is that this

Re: Weird problem with helpgrep

2007-01-29 Thread Bram Moolenaar
DervishD wrote: I've discovered that :helpgrep pattern doesn't work for me, always returning E480 (BTW, :help E480 shows help about argdelete, as if E numbers in source code and docs weren't synchronized). But that's not the weird part. If I search for a very common word (let's

Re: Structure of runtime directory on ftp.vim.org

2007-01-29 Thread Bram Moolenaar
Bill McCarthy wrote: On Sun 28-Jan-07 9:36pm -0600, you wrote: I noticed that for getting the runtime files, Bill McCarthy uses ftp.vim.org/pub/vim/runtime/dos/ whereas Tony uses everything inside ftp.vim.org/pub/vim/runtime/ except the dos subdirectory. So I surmise that

Re: Structure of runtime directory on ftp.vim.org

2007-01-29 Thread Bill McCarthy
On Mon 29-Jan-07 8:13pm -0600, Bram Moolenaar wrote: Bill McCarthy wrote: I don't know why, but the spell directory is missing for dos/. Because the files in the spell directory are exactly the same for Unix and DOS. They are quite big too, thus saving the space is worth the effort.

Re: 7.0.188 - problem with directory browser?

2007-01-29 Thread Charles E Campbell Jr
Denis Perelyubskiy wrote: in version 7.0.188 (I am on windows xp, us) nothing works when I select '..' when browsing a directory. has anyone seen this? is this something peculiar to my installation, a bug, or a feature? I suspect that you need a recent version of netrw. To get an

Re: BOF Vim 8 - EncryptLine

2007-01-29 Thread Charles E Campbell Jr
Matthew Winn wrote: Text editors don't do encryption and never should. How else would you ensure that you can have encrypted text _without_ the need to temporarily store a plaintext copy of the file? Pipe the text through to an external encryption tool, such as pgp. Assuming your

for vim v8: how about keepundo ?

2007-01-29 Thread Charles E Campbell Jr
The idea would be to leave the undo list alone, so that when the undo table gets updated next it'll have a bigger change. Regards, Chip Campbell

Re: Odp: BOF Vim 8 - Suggestions

2007-01-29 Thread Alexei Alexandrov
Hi Stefano Zacchiroli, you wrote: The solution of being compatible when invoked as 'vi' and being nocompatible when invoked in a different way made everybody happy. The (trivial) patch we are using to implement this behaviour is available at:

Re: BOF Vim 8 - Suggestions

2007-01-29 Thread Alexei Alexandrov
Hi Bram Moolenaar, you wrote: To finish, I'm not suggesting that the optimum one-size-fits-all set of mappings be determined. Any set of well-planned mappings would be better than the current blank slate. The best set of mappings is what you make yourself. That's like: don't give a

Re: for vim v8: how about keepundo ?

2007-01-29 Thread Nikolai Weibull
On 1/29/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: The idea would be to leave the undo list alone, so that when the undo table gets updated next it'll have a bigger change. What do you mean? From the very short description it sounds like your describing :undojoin. nikolai

Re: for vim v8: how about keepundo ?

2007-01-29 Thread Charles E Campbell Jr
Nikolai Weibull wrote: On 1/29/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: The idea would be to leave the undo list alone, so that when the undo table gets updated next it'll have a bigger change. What do you mean? From the very short description it sounds like your describing

Re: for vim v8: how about keepundo ?

2007-01-29 Thread Nikolai Weibull
On 1/29/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 1/29/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: The idea would be to leave the undo list alone, so that when the undo table gets updated next it'll have a bigger change. What do you mean?

Re: for vim v8: how about keepundo ?

2007-01-29 Thread A.J.Mechelynck
Nikolai Weibull wrote: On 1/29/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 1/29/07, Charles E Campbell Jr [EMAIL PROTECTED] wrote: The idea would be to leave the undo list alone, so that when the undo table gets updated next it'll have a bigger

Vim8 idea: complete strings

2007-01-29 Thread Martin Stubenschrott
I often want to complete full strings in quotes (foo, 'bla', `command bla blub`). But for now, I really need to type all these things again and again. It would be nice, if I could say fc-x-c- to complete full strings. Or maybe also c-xc-' for single qouted strings, and c-xc-` for `-quoted

Re: Vim8 idea: complete strings

2007-01-29 Thread A.J.Mechelynck
Martin Stubenschrott wrote: I often want to complete full strings in quotes (foo, 'bla', `command bla blub`). But for now, I really need to type all these things again and again. It would be nice, if I could say fc-x-c- to complete full strings. Or maybe also c-xc-' for single qouted strings,

Vim 8.0 Suggestion

2007-01-29 Thread Robert Lee
I'd like to see an external .vimrc editor shipping with gVim and directly accessible from within easy mode (e.g. on the tools menu). The editor would likely be a totally separate binary though, so maybe a separate project is called for. What I have in mind is a tabbed dialog (depending on

Re: JavaScript indentation

2007-01-29 Thread Bram Moolenaar
Martin Stubenschrott wrote: On Sun, Jan 28, 2007 at 01:12:00AM +0100, Bram Moolenaar wrote: Hope that gets added to the default vim 7.1 distribution, because it's quite the best working omni complete script I have seen so far. Can you mention on what points cppcomplete.vim works