Re: Update plugin description on website does not work

2009-03-14 Thread Tom
> I was just updating one of my plugins descriptions onwww.vim.organd > I hit the update button.  Everything appears to work, but any of my > changes were discarded. Did you try to fully reload the page? I sometimes get outdated data when editing a plugin's description. If reload the page with th

Re: How to delete all marks in current line?

2009-03-14 Thread Tom
>   " Remove elements from the list that aren't on linenum >   call filter(marks_list, '(line("''" . v:val) == a:linenum)') Since upper-case marks are available in all buffers, you should probably also check the buffer number via getpos(). For buffer-local marks, getpos() returns 0 as buffer numb

Re: How to delete all marks in current line?

2009-03-14 Thread 张书瀚
This works very good, thank you very much![?] On Sun, Mar 15, 2009 at 9:11 AM, Matt Wozniski wrote: > > On Sat, Mar 14, 2009 at 1:23 PM, 书瀚张 wrote: > > Hi everyone, > >I am trying to write a function to delete all mark in current line. > > I want to have something like this: > > > > function

how to search multiple patterns and move to end

2009-03-14 Thread vimlover
Hello, I have new for vim. I have a file like alter table a1 enable constraints xxx; alter table b1 enable constraints xxx; alter table c1 enable constraints xxx; (millions of rows...) I know if I want to search pattern "a1", and, move the line (with this pattern) to end of file by using

Re: Save and quit all gvim sessions and restore them all on startup

2009-03-14 Thread _sc_
On Saturday 14 March 2009 5:59 pm, ggrothendieck wrote: > > One thing I really like about Firefox is that one can save and quit so > that when one > restarts firefox after rebooting, say, one is returned to the exact > same set of tabs one > had before. > > I often have many gvim processes going

Re: insert a line break

2009-03-14 Thread Matt Wozniski
On Sat, Mar 14, 2009 at 9:16 PM, Jack T Mudge III wrote: > > On Friday 13 March 2009 06:54:01 am Ben Fritz wrote: >> On Mar 13, 1:56 am, Jack T Mudge III >> >> wrote: >> > ^4li >> Save a keystroke: >> >> 4|i > > I never knew about |; then again, I can't say I've read that particular help > page be

Re: Update plugin description on website does not work

2009-03-14 Thread Zeft
confirm here too, I can only upload a new version, but I cannot change the original script description. On Sun, Mar 15, 2009 at 5:27 AM, David Fishburn wrote: > > Good Morning. > > I was just updating one of my plugins descriptions on www.vim.org and > I hit the update button. Everything appears

Re: script vs source?

2009-03-14 Thread Ben Fritz
On Mar 13, 10:59 am, roger koenker wrote: > %s/^M\([A-Z][ A-Z]\)/\r\1/g > %s/^M//g > g/^ /-1join > write tmp > quit > > If, interactively, I use > >         :source v.vim > > where v.vim contains the first 3 lines of the above file,  everything   > seems fine, but when I try > on the command

Re: Always displaying the tag stack

2009-03-14 Thread Ben Fritz
On Mar 12, 2:28 am, Yang Zhang wrote: > Hi, can I have the tag stack always displayed in a window, instead of > repeatedly bringing it up with :tags? This would probably be pretty difficult. What I've done instead is the following: nnoremap :tags nnoremap :tag \| tags What this does is, e

Re: insert a line break

2009-03-14 Thread Jack T Mudge III
On Friday 13 March 2009 06:54:01 am Ben Fritz wrote: > On Mar 13, 1:56 am, Jack T Mudge III > > wrote: > > ^4li > > > > replace 4 with your column number. > > Save a keystroke: > > 4|i > > This is from normal mode. > > | is one of the many cursor-movement commands that make Vim so > > powerful. I

Re: How to delete all marks in current line?

2009-03-14 Thread Matt Wozniski
On Sat, Mar 14, 2009 at 1:23 PM, 书瀚张 wrote: > Hi everyone, >    I am trying to write a function to delete all mark in current line. > I want to have something like this: > > function DelMark() >     > endfunction > > map call DelMark():DoShowMarks > > DoShowMarks is a command from ShowMarks

How to delete all marks in current line?

2009-03-14 Thread 书瀚张
Hi everyone, I am trying to write a function to delete all mark in current line. I want to have something like this: function DelMark() endfunction map call DelMark():DoShowMarks DoShowMarks is a command from ShowMarks (ShowMark c

Re: How to catch interrupts when block in input()?

2009-03-14 Thread Dasn
On 14/03/09 20:37 +0200, Agathoklis D. Hatzimanikas wrote: > Here is how I've made my test: > > > function! TASK1() > sleep 10 > endfunction > > function! TASK2() > sleep 20 > endfunction > > function! Test() > while 1 > try > let command = input("Type a comman

Re: How to pack and move current VIM environment to another computer

2009-03-14 Thread Michael Henry
vincent wrote: > On Mar 13, 6:18 pm, Justin Li wrote: > > I like all of the current configuraion of VIM in my computer 1. However, I > > want to use VIM in computer 2 exactly the same with the VIM which I am using > > in computer 1. > > > > Which files should be packed and moved into PC2 from

Save and quit all gvim sessions and restore them all on startup

2009-03-14 Thread ggrothendieck
One thing I really like about Firefox is that one can save and quit so that when one restarts firefox after rebooting, say, one is returned to the exact same set of tabs one had before. I often have many gvim processes going at once on Vista and might need to reboot for some reason unrelated to g

Re: 50 lines maximum allowed when copy-paste

2009-03-14 Thread Matt Wozniski
On Sat, Mar 14, 2009 at 2:45 AM, Tony Mechelynck wrote: > > This way, you'll have RedHat's GUI-enabled version of Vim doing double > duty as both gvim and Console Vim, and it should be able to access the > clipboard even from an xterm, konsole, or gnome-terminal (but of course > not from the pure-

Update plugin description on website does not work

2009-03-14 Thread David Fishburn
Good Morning. I was just updating one of my plugins descriptions on www.vim.org and I hit the update button. Everything appears to work, but any of my changes were discarded. Anyone else running into this? Thanks, Dave --~--~-~--~~~---~--~~ You received this me

ANN: dbext 10.00

2009-03-14 Thread David Fishburn
What is it? --- dbext.vim : Provides database access to most databases. http://www.vim.org/scripts/script.php?script_id=356 This plugin contains functions/mappings/commands to enable Vim to access several databases. This plugin contains functions/mappings/commands to enable Vim to access

Re: Bug with Title highliting

2009-03-14 Thread Maxim Kim
On 14 мар, 02:27, Maxim Kim wrote: > > Now I can see that letter. > I do not know what happend but I did those steps 3 times before post > here and the letter was invisible. > Weird. The problem is in Dejavu Sans Mono font. With font size 12 bold russian letter 'У' is invisible. In vim and notep

Re: How to catch interrupts when block in input()?

2009-03-14 Thread Agathoklis D. Hatzimanikas
On Sun, Mar 15, at 02:08 Dasn wrote: > > On 14/03/09 17:04 +0200, Agathoklis D. Hatzimanikas wrote: > > On Sat, Mar 14, at 06:27 Dasn wrote: > > > > > > Hi, > > > :h catch-interrupt > > > shows an example of catching interrupts, but it works not as it was > > > described. The document says: >

Re: How to catch interrupts when block in input()?

2009-03-14 Thread Dasn
On 14/03/09 17:04 +0200, Agathoklis D. Hatzimanikas wrote: > On Sat, Mar 14, at 06:27 Dasn wrote: > > > > Hi, > > :h catch-interrupt > > shows an example of catching interrupts, but it works not as it was > > described. The document says: > > > > > If you press CTRL-C at the prompt, the script

Re: Tooltips for signs: Mouse-over effect for signs?

2009-03-14 Thread Tom
Hi, > Since no one else has answered so far -- I don't think so. Thanks for the answer. I now decided to use ballonexpr. The bexpr function returns the text of an qfl item only if v:beval_col is 1. I originally wanted to avoid the use of balloonexpr in order not to interfere with other plugins t

Re: Tooltips for signs: Mouse-over effect for signs?

2009-03-14 Thread Charles E. Campbell, Jr.
Tom Link wrote: > Hi, > > I'd like to mark locations from the quickfix list with a sign. Well, > this wasn't so difficult to achieve. But I would also like to see a > small tooltip/balloon with the entry in the qf list when I hover with > the mouse over the sign. Is this possible somehow? > Sin

Re: How to catch interrupts when block in input()?

2009-03-14 Thread Agathoklis D. Hatzimanikas
On Sat, Mar 14, at 06:27 Dasn wrote: > > Hi, > :h catch-interrupt > shows an example of catching interrupts, but it works not as it was > described. The document says: > > > If you press CTRL-C at the prompt, the script is terminated. > > But the problem is: when I press CTRL-C at the prompt,

Re: vim doesn't source ~/.vimrc

2009-03-14 Thread Harry Putnam
Tony Mechelynck writes: >>> As a brute-force way to determine which of the scripts sourced after >>> your vimrc is disabling highlighting, you could move them all out of the >>> plugins directory temporarily, verify that syntax highlighting remains >>> enabled after your vimrc is sourced at star

Re: strangely increased indentation after a line ending with comma

2009-03-14 Thread Tony Mechelynck
On 13/03/09 21:29, Agathoklis D. Hatzimanikas wrote: > > Hi Tom, > > On Fri, Mar 13, at 12:40 tommm0 wrote: > >> fo=tcroq2 > > Please try fo-=o > >> Tom > > Regards, > Ag. The o flag is supposed to only affect the new line created by a Normal-mode o or O command, not by hitting Return in Insert

How to catch interrupts when block in input()?

2009-03-14 Thread Dasn
Hi, :h catch-interrupt shows an example of catching interrupts, but it works not as it was described. The document says: > If you press CTRL-C at the prompt, the script is terminated. But the problem is: when I press CTRL-C at the prompt, the script is not terminated, instead, it will give you

Re: about file infomation

2009-03-14 Thread Tony Mechelynck
On 13/03/09 11:42, StarWing wrote: > > how to get the infomation of editing file? i know a way that use > netrw: > :Explore %:p:h > i > but i only want to get the last modified time of current file, i want > a simple way to get it. > > another idea is shell-exec (!), e.g. :!ls -l % > > but it stil