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
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 |
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
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.
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
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 }
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()
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
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
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.
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
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
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
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
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
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)
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
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
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
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
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
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
22 matches
Mail list logo