Re: Reduce search to unfolded parts

2010-02-20 Thread Jean Johner
Hello, The answers are correct. Thank you. I still have a problem with the foldd command. Applied to a file without any fold, the following commands should behave exactly the same: :%s/foobar/foo/gc :foldd s/foobar/foo/gc Please create a file with the two following lines: dimension

Re: strange behaviour of normal command

2010-02-20 Thread Andy Wokula
Am 20.02.2010 07:30, schrieb KKde: Hi folks, I'm seeing a strange behaviour of normal comand. Let's say I have the below function. function! NormalNTest() let saveCursor = getpos('.') call setpos([0, 1, 1, 0 ] ) normal gg call setpos('.', saveCursor) echohl Special |

Re: [Bulk] Re: Reduce search to unfolded parts

2010-02-20 Thread Andy Wokula
Am 20.02.2010 10:14, schrieb Jean Johner: Hello, The answers are correct. Thank you. I still have a problem with the foldd command. Applied to a file without any fold, the following commands should behave exactly the same: :%s/foobar/foo/gc :foldd s/foobar/foo/gc Please create a file with the

Re: help about the shortcut key

2010-02-20 Thread Jan Larres
Xueqian Zhao xueqianz...@gmail.com: Current, I met that when I press Enter key, vim executed :make automatically. However, I only map ctrl+M to be the shortcut of :make. I don't knwo why this happens. After I remove my .vimrc file, no such problem, so I think it results from the .vimrc file.

Re: How can I do a splash screen?

2010-02-20 Thread Tony Mechelynck
On 19/02/10 08:32, epanda wrote: Hi, Using a confirm dialog, how can I do a splash information box at startupt of Gvim ? Thank you Well, Vim normally already has a splash screen, which you can recall at any time by doing :intro If you want to display something else, you can use one or

Re: Mapping only fields of a Dictionnary (help says only List and all items of Dict)

2010-02-20 Thread Tony Mechelynck
On 23/12/09 13:04, epanda wrote: Hi, I am building some info in Dict and hash like this : let myHash = {} let g:cnt = 1 g/pattern/=call storingData()/ func! storingData(param1, param2) let myHash[g:cnt] = {'information':a:param1 , 'clue':a:param2 }

Re: make a reference colorscheme

2010-02-20 Thread Christian Brabandt
Hi Bee! On Fr, 19 Feb 2010, Bee wrote: I just wanted to learn more about redir and to see if I could redirect the output of :highlight thru TOhtml to create an HTML file thus saving the color content. Not directly I am afraid. But you could do something like this: fu! sidSyntax()

Re: How to change font on the fly?

2010-02-20 Thread Tony Mechelynck
On 19/02/10 14:49, Dotan Cohen wrote: On 19 February 2010 15:05, Christian Brabandtcbli...@256bit.org wrote: It gave no error, but the font size did not change. Where in the vast Is that gvim? What does :echoguifont return? No, it was in Konsole. In GVIM things work better. [...] In

Re: How to change font on the fly?

2010-02-20 Thread David Fishburn
One thing that is really holding me up is font sizes, as discussed earlier. I suspect that I could put a line in the config file which increases font size with Ctrl = and decreases with Ctrl -, however I cannot figure out what that line should be. Last question for today, I promise! I created a

Re: custom complete function is not found

2010-02-20 Thread hni
Thanks a lot, you are very helpful. This works great apart from the little quirk that it will show the entire command command line in the popup menu, i.e. it doesn't show only the tag I want to complete, but instead it show all tags that have been entered so far. But I think I can live with that.

Re: :wa don't save recovered files

2010-02-20 Thread Ben Fritz
On Feb 19, 4:15 am, smith dmitriy.kuznet...@gmail.com wrote: Windows Vista, GVIM 7.2 (Big version with GUI) I was opened file in GVIM after system crash. GVIM offers to recover file as it was not saved. I  agree and try to save recovered file using command ':wa', but GVIM to do nothing (may

Re: custom complete function is not found

2010-02-20 Thread Tom Link
you start typing a few characters when you have typed enough characters to that only one item is matched, the item is highlighted (at the moment once this happens the list will automatically return the value) instead of returning automatically, the user can then either press return to

Re: How to change font on the fly?

2010-02-20 Thread Dotan Cohen
On 20 February 2010 14:54, David Fishburn dfishburn@gmail.com wrote: One thing that is really holding me up is font sizes, as discussed earlier. I suspect that I could put a line in the config file which increases font size with Ctrl = and decreases with Ctrl -, however I cannot figure out

Re: strange behaviour of normal command

2010-02-20 Thread KKde
When you move around in the buffer, the command-line area may be cleared. Try prepending the first :echo command with a      :redraw You may be right, the command-line are being cleared. I added :redraw, now it shows the output. But after adding the redraw command the window scrolls little

Re: How can I do a splash screen?

2010-02-20 Thread epanda
On 20 fév, 12:22, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 19/02/10 08:32, epanda wrote: Hi, Using a confirm dialog, how can I do a splash information box at startupt of Gvim ? Thank you Well, Vim normally already has a splash screen, which you can recall at any time

Re: How to change font on the fly?

2010-02-20 Thread pansz
Dotan Cohen 写道: Depending on what I am editing, I sometimes prefer a fixed-width font and other times a proportional font. My previous editor, Kate (KDE Advanced Text Editor) lets the user change the font on the fly. Can VIM do this, or is playing with the config file (thus requiring a restart)

Counting Lines between two markers

2010-02-20 Thread zzapper
Hi :'a,'bs/^// will count the lines between two markers a and b but is there any more elegant way, one that is not seen as an edit? -- zzapper http://zzapper.co.uk/ Technical Tips -- You received this message from the vim_use maillist. For more information, visit

Re: Counting Lines between two markers

2010-02-20 Thread Tim Chase
zzapper wrote: Hi :'a,'bs/^// will count the lines between two markers a and b but is there any more elegant way, one that is not seen as an edit? You can add the n flag :'a,'bs/^//n Or you can do the math (adjust for fenceposting): :echo line('b)-line('a) -tim -- You received this

RE: Counting Lines between two markers

2010-02-20 Thread John Beckett
zzapper wrote: :'a,'bs/^// will count the lines between two markers a and b but is there any more elegant way, one that is not seen as an edit? I would be inclined to just add 'n' to count the hits (does not attempt to change the buffer): :'a,'bs/^//n However, you could fiddle with things

Re: strftime vs date

2010-02-20 Thread jbw
On Fri, Feb 19, 2010 at 1:04 AM, John Little john.b.lit...@gmail.com wrote: On Feb 19, 5:01 pm, jbw jbwalt...@gmail.com wrote: Is there a way have the strftime ... Vim just hands on to the system's strftime, so you get whatever your unix supports.  However, strftime formats a time you give

log color highlighting using vim. Or injecting log-colorizer output into vim

2010-02-20 Thread Rahul
Are there any vim plugins that allow smart coloring of log files? I tried using ccze, colorize and severeal other utilities made specifically to color code log files making trend spotting easier. But I am so used to vim commands that it would be nice if I could somehow keep using vim. My vim

Re: strftime vs date

2010-02-20 Thread Tom Link
Until the cygwin-problem gets fixed, what do you think about: function! DateLastDay(day) let day = abs(a:day) % 7 let dir = a:day 0 ? -1 : 1 let sday = 60 * 60 * 24 * dir let time = localtime() + sday while strftime('%w', time) != day let time += sday endwh