Bug? (Re: local map and vmap not cleared when buffer deleted)

2006-12-05 Thread Peter Hodge
--- Alan G Isaac <[EMAIL PROTECTED]> wrote: > > Quoting from :h :bd :: > > Actually, the buffer isn't completely deleted, it is > removed from the buffer list |unlisted-buffer| and > option values, variables and mappings/abbreviations > for the buffer are clear

RE: your best vim scripting tip

2006-12-05 Thread C.G.Senthilkumar.
What I wanted to know is could the same functionality have been achieved by a better sequence of commands? Can an experienced 'vimmer' do better? There is a comments plugin that I yanked off the Internet a while ago that can do the same for several different languages. From the file header: "

local map and vmap not cleared when buffer deleted

2006-12-05 Thread Alan G Isaac
> Alan G Isaac wrote: >> Suppose I have defined:: >> imap ;fn %\footnote{%}%-i >> in my tex_ai.vim file in my local ftplugin directory. >> I create the buffer ``:e c:\temp.tex`` >> then I leave the buffer by deleting it ``:bd`` >> and then later I decide to reopen it ``:e c:\temp.tex``.

RE: your best vim scripting tip

2006-12-05 Thread Sibin P. Thomas
Hi, While we are at the subject of tips for budding Vim scripters - I had created this mapping --> nmap com ^:if search('\/\*.*\*\/','c',line("."))!=0 :.s/\/\*\(.*\)\*\//\1/g :else :.s/\(\s*\)\(.*\)\(\s*\)/\1\/\*\2\*\/\3/g :endif :noh this command basically toggles C-style commenting on a line i

Re[2]: your best vim scripting tip

2006-12-05 Thread Alan G Isaac
On Tue, 5 Dec 2006, Michael Phillips apparently wrote: > What does the I-CTRL_R command do? :h i_ctrl-r hth, Alan Isaac

Re: your best vim scripting tip

2006-12-05 Thread Michael Phillips
Towards the bottom of Luc Hermitte message, the following was said: > substitute(), match*(), exists(), ... > But also :exe, :normal!, I-CTRL_R, :s, ... which are not functions > indeed. What does the I-CTRL_R command do? TIA Michael --- Luc Hermitte <[EMAIL PROTECTED]> wrote: > Hello, > > *

Re: Formatting text in reply e-mails

2006-12-05 Thread C.G.Senthilkumar.
On Wed, 6 Dec 2006, [EMAIL PROTECTED] wrote: Vim may very well be able to do that with built-in commands. I use the external paragraph reformatter 'par-1.52' for this: For example, to format and justify this reply in vim, I used: :'<,'>!par 66j No, this doesn't answer my question. My question

Re: your best vim scripting tip

2006-12-05 Thread Luc Hermitte
Hello, * On Sat, Dec 02, 2006 at 07:05:40PM +0100, Kim Schulz <[EMAIL PROTECTED]> wrote: > It you should give one (or more) tips to a person who was going to > start creating scripts for vim, then what would it be? Tough question. > ideas could be: > Do's and dont's * Do know the various kin

Re: Formatting text in reply e-mails

2006-12-05 Thread dominique . pelle
Vim may very well be able to do that with built-in commands. I use the external paragraph reformatter 'par-1.52' for this: http://www.nicemice.net/par/ For example, to format and justify this reply in vim, I used: :'<,'>!par 66j A patch for 'par' also exists to make it work with Unicode UTF

Formatting text in reply e-mails

2006-12-05 Thread C.G.Senthilkumar.
Hi I know vim understands character sequences that delimit comments in various programming languages and gqap formats them appropriately. However, while typing a reply to an e-mail, the gqap command doesn't seem to identify the end of a paragraph in the original message because empty lines are

Re: Problem with VCSCommand

2006-12-05 Thread Joakim Olsson
Good question. I only had problems with vcscommand at the time at least. /Joakim On tis, 2006-12-05 at 10:08 -0600, Bob Hiestand wrote: > On 11/30/06, Joakim Olsson <[EMAIL PROTECTED]> wrote: > > I solved the problem by setting shell to cmd.exe in my .vimrc. > > > > The problem stems from the fa

Re: Do a grep -r without match .svn directory ?

2006-12-05 Thread Bob Davis
I tested it with '*svn*' and on cygwin grep which is: grep (GNU grep) 2.5.1 and it worked. Strangely enough if I put '*.svn*' it didn't work. bob Gary Johnson wrote: Hi Bob, That doesn't seem to work either. I executed the following: cd ~/.vim grep -Rli --exclude=\*syntax\* mainta

Re: aligning text to a certain column

2006-12-05 Thread A.J.Mechelynck
Jean-Rene David wrote: * Lev Lvovsky [2006.12.05 13:53]: how can I align text under and after the cursor position to a specific column number? :.,$s/^\s*/ /g will align the first non-blank on the fourth column, from the cursor's line to the end of the file. and probably just as importan

Re: aligning text to a certain column

2006-12-05 Thread hermitte
Hello, Lev Lvovsky <[EMAIL PROTECTED]> wrote: > how can I align text under and after the cursor position to a > specific column number? and probably just as important, how can I > find out which column number a cursor is at ;)? In an unreleased plugin, I have the following definitions - >

Re[2]: sourcing

2006-12-05 Thread C.G.Senthilkumar.
On Tue, 5 Dec 2006, Alan G Isaac wrote: On Mon, 4 Dec 2006, Bill McCarthy apparently wrote: Instead of using an autocmd, you could place those maps in a file called tex.vim in your local ftplugin directory. Place this single line in such a file: map :echo 'It worked!' I did this. It wor

Re: aligning text to a certain column

2006-12-05 Thread Gary Johnson
On 2006-12-05, Lev Lvovsky <[EMAIL PROTECTED]> wrote: > how can I align text under and after the cursor position to a > specific column number? and probably just as important, how can I > find out which column number a cursor is at ;)? :set ruler will show you the cursor's line and colum

Re: sourcing

2006-12-05 Thread A.J.Mechelynck
Alan G Isaac wrote: On Mon, 4 Dec 2006, Bill McCarthy apparently wrote: Instead of using an autocmd, you could place those maps in a file called tex.vim in your local ftplugin directory. Place this single line in such a file: map :echo 'It worked!' OK, I did this. But there is still

Re: aligning text to a certain column

2006-12-05 Thread Jean-Rene David
* Lev Lvovsky [2006.12.05 13:53]: > how can I align text under and after the cursor > position to a specific column number? :.,$s/^\s*/ /g will align the first non-blank on the fourth column, from the cursor's line to the end of the file. > and probably just as important, how can I > find

Re[2]: sourcing

2006-12-05 Thread Alan G Isaac
On Mon, 4 Dec 2006, Bill McCarthy apparently wrote: > Instead of using an autocmd, you could place those maps in a > file called tex.vim in your local ftplugin directory. Place > this single line in such a file: > map :echo 'It worked!' OK, I did this. But there is still a problem. Su

aligning text to a certain column

2006-12-05 Thread Lev Lvovsky
how can I align text under and after the cursor position to a specific column number? and probably just as important, how can I find out which column number a cursor is at ;)? thanks! -lev

Re: Can I open "data.fs" file in R/W with ZODB in two programs (two process, no thread) at the same time ?

2006-12-05 Thread KLEIN Stéphane
2006/12/5, KLEIN Stéphane <[EMAIL PROTECTED]>: Hi, Can I open "data.fs" file in R/W with ZODB in two programs (two process, no thread) at the same time ? If not, is there storage system to do that ? I'm mistaken of mailing list, sorry for the disturbance. Stephane

Can I open "data.fs" file in R/W with ZODB in two programs (two process, no thread) at the same time ?

2006-12-05 Thread KLEIN Stéphane
Hi, Can I open "data.fs" file in R/W with ZODB in two programs (two process, no thread) at the same time ? If not, is there storage system to do that ? Thanks for your help, Stephane

Re: :Nread errors

2006-12-05 Thread Charles E Campbell Jr
striker wrote: My OS is Mac OS X 10.4.8, so yes, it is Unix/Linux based. After I sent my original e-mail, I did think to check where $VIMRUNTIME was located. I removed all instances of anything vim* related. I then attempted the :Nread command and got what I expected... E492: Not an edi

Re: :Nread errors

2006-12-05 Thread striker
My OS is Mac OS X 10.4.8, so yes, it is Unix/Linux based. After I sent my original e-mail, I did think to check where $VIMRUNTIME was located. I removed all instances of anything vim* related. I then attempted the :Nread command and got what I expected... E492: Not an editor command: Nrea

Re: Problem with VCSCommand

2006-12-05 Thread Bob Hiestand
On 11/30/06, Joakim Olsson <[EMAIL PROTECTED]> wrote: I solved the problem by setting shell to cmd.exe in my .vimrc. The problem stems from the fact that I set the SHELL environment variable to /usr/bin/bash to make rxvt work for Cygwin. Vim sees that and set shell to the same value of course.

Re: I can't make gvim the default application for .txt files in WinXP

2006-12-05 Thread A.J.Mechelynck
[ post reordered to conform with mailing list no-top-posting conventions ] Jeffrey Robertson wrote: -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Friday, December 01, 2006 4:07 PM To: Robertson, Jeffrey (CAR:QW32) Cc: Sean Plank; vim@vim.org Subject: Re: I can'

Re: :Nread errors

2006-12-05 Thread Charles E Campbell Jr
striker wrote: I am having some trouble with Netrw in Vim 7. I had been using it to ftp to a web server and update files. I recently began receiving the following error(s) when running :Nread ftp://[EMAIL PROTECTED]/public_html/ ftp://[EMAIL PROTECTED]/public_html/ [not edited] --no lines in

Thanks for Colo(u)red Syntax!

2006-12-05 Thread zzapper
Hi Just wanted to thank those involved in colouring syntax. I've just had a case where I foolishly "ignored" the fact that colouring was indicating an error! . I often have Javascript, html, mixed up with Php or Coldfusion and yet the colouring works. And to think when I moved from Vi to VIM I t

:Nread errors

2006-12-05 Thread striker
I am having some trouble with Netrw in Vim 7. I had been using it to ftp to a web server and update files. I recently began receiving the following error(s) when running :Nread ftp://[EMAIL PROTECTED]/public_html/ ftp://[EMAIL PROTECTED]/public_html/ [not edited] --no lines in buffer-- If I t

Re: separator in user-defined command name

2006-12-05 Thread Luc Hermitte
* On Mon, Dec 04, 2006 at 12:09:34PM -0800, Gary Johnson <[EMAIL PROTECTED]> wrote: > On 2006-12-04, [EMAIL PROTECTED] wrote: > > > I tried '-' and '_' in user-defined command name, both are not accepted > > > (like X_Y, X-Y). Is there maybe some [other] separator that is > > > allowed in user-d

Re: Do a grep -r without match .svn directory ?

2006-12-05 Thread Gary Johnson
On 2006-12-05, "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote: > Greg Matheson wrote: > > On Tue, 05 Dec 2006, A.J.Mechelynck wrote: > > > >> KLEIN Stéphane wrote: > >>> Hi, > > > >> This is actually OT for Vim, since grep is an external program; but you > >> can use > > > >>grep -r --exclude=PATT