"李 俊燕" <[EMAIL PROTECTED]> 写于 2006-10-20 14:17:55:
> hi,all
>
> I don't know how to say that.
> I just remember that I can type [ control - a ] before a number
> to let it add 1, for example let 1 change to 2.
> But it doesn't work in gvim 7.0 for windows.
> Is there any other method to do that?
>
I remember someone posting a patch to add a new event called GetChar to
receive an event for every keypress. This trick is not as powerful and
flexible as that, but it can be very useful for a plugin, and is
supported in Vim7.0 with no patches.
Often there are questions on this list on how to cap
hi,all
I don't know how to say that.
I just remember that I can type [ control - a ] before a number
to let it add 1, for example let 1 change to 2.
But it doesn't work in gvim 7.0 for windows.
Is there any other method to do that?
thank you very much.
Li
On 10/20/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
Akbar wrote:
> Hi, I use vim7 ( compiled from source )
>
> This is my situation:
> open bla.rb
>
> def bla ( type def bla, enter )
> print "bla"( type two spaces and print "bla", enter )
> print "bli" ( no need
On Thu, 19 Oct 2006 at 3:15pm, Yegappan Lakshmanan wrote:
> Hi Yakov,
>
> On 10/19/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
> > I'd like to cache some information about file, into
> > b:variables, and be able to check in my function,
> > whether buffer changed in any way between 2 calls
> > to
On Thu, Oct 19, 2006 at 11:57:22PM +0200, Eric Smith wrote:
> Vim does not complete pdf files with C-X C-F.
>
> Is there a place where I can alter this (mis)behavior?
>
> --
> Eric Smith
It does for me. Two options that may affect this are 'suffixes'
and 'wildignore'. The first just give
On Thu, Oct 19, 2006 at 11:43:22PM +0200, Yakov Lerner wrote:
> I am making a plugin which naturally requires &nocp
> because it uses in lhs and rhs of mappings it defines.
> What if that plugin sees &cp, what it shall do ? Shall I
> save old value of &cp, then temporarily 'set nocp', define
> map
On Thu, Oct 19, 2006 at 07:46:04PM +0200, Yakov Lerner wrote:
> On 10/19/06, Lev Lvovsky <[EMAIL PROTECTED]> wrote:
> >For some reason, with the many buffers that I have open, the path
> >that a particular file takes, is instead of the initial directory
> >where I started from (which is what I want
Akbar wrote:
Hi, I use vim7 ( compiled from source )
This is my situation:
open bla.rb
def bla ( type def bla, enter )
print "bla"( type two spaces and print "bla", enter )
print "bli" ( no need to type two spaces, sweet, type print
"bli", enter )
end
Meghdad Azriel wrote:
I was just kidding ;)
I know that they are not secret but, they´re not that intuitive... and i´m
still learning how to use that help effectivelly...
maybe I neet to read those basic files with care...
[...]
To use the help effectively, one should learn to use the tools
Kamaraju Kusumanchi wrote:
On Thursday 19 October 2006 15:00, Paul Irofti wrote:
Of course if you're
stuck with Windows then I'd suggest Thunderbird
Thunderbird does not have a reply-to-list facility and is one of the long
standing bugs (6 years and still going). More details at
https://bugz
--- Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>
> Peter Hodge wrote:
>
> > When I have formatoptions=t, it makes comment lines wrap when they
> > shouldn't, and it also ignores whatever comment leader is defined in
> > 'comments'. To reproduce:
> >
> >
> > :set formatoptions=roc
> > :set
On Thursday 19 October 2006 15:00, Paul Irofti wrote:
> Of course if you're
> stuck with Windows then I'd suggest Thunderbird
Thunderbird does not have a reply-to-list facility and is one of the long
standing bugs (6 years and still going). More details at
https://bugzilla.mozilla.org/show_bug.c
Hi Yakov,
On 10/19/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
I'd like to cache some information about file, into
b:variables, and be able to check in my function,
whether buffer changed in any way between 2 calls
to the function. Is there any "change counter" that I can
store and compare later
Vim does not complete pdf files with C-X C-F.
Is there a place where I can alter this (mis)behavior?
--
Eric Smith
On Thu, 19 Oct 2006 at 11:25pm, Yakov Lerner wrote:
> I'd like to cache some information about file, into
> b:variables, and be able to check in my function,
> whether buffer changed in any way between 2 calls
> to the function. Is there any "change counter" that I can
> store and compare later t
I am making a plugin which naturally requires &nocp
because it uses in lhs and rhs of mappings it defines.
What if that plugin sees &cp, what it shall do ? Shall I
save old value of &cp, then temporarily 'set nocp', define
mappings, then restore &cp ? Is this OK ?
Or it shall check &cp and silen
Didn´t work for me...
It gave me an error saying that it could not make the backup file...
Mathias Michaelis wrote:
>
> Hello Kev
>
>> Whenever I edit a file in gvim on Windows, a temporary
>> file of the same name but with a tilde (~) on the end
>> is created.
>>
> This are backup files an
I'd like to cache some information about file, into
b:variables, and be able to check in my function,
whether buffer changed in any way between 2 calls
to the function. Is there any "change counter" that I can
store and compare later to detect the buffer change (any
change like any insertion, dele
I was just kidding ;)
I know that they are not secret but, they´re not that intuitive... and i´m
still learning how to use that help effectivelly...
maybe I neet to read those basic files with care...
Gary Johnson wrote:
>
> On 2006-10-19, eric1235711 <[EMAIL PROTECTED]> wrote:
>> this wor
Peter Hodge wrote:
> When I have formatoptions=t, it makes comment lines wrap when they
> shouldn't, and it also ignores whatever comment leader is defined in
> 'comments'. To reproduce:
>
>
> :set formatoptions=roc
> :set comments=b:%
> :set textwidth=30
>
> % type these lines of tex
On Thu, 19 Oct 2006 12:15:17 -0700
"Yegappan Lakshmanan" <[EMAIL PROTECTED]> wrote:
> You can use the detailed example code under ":help
> CursorHold-example". It uses the ":ptag" command and the cursorhold
> autocmd to jump to the tag under the cursor in the preview window and
> highlight the li
On 2006-10-19, eric1235711 <[EMAIL PROTECTED]> wrote:
> this worked too
>
> I think this is better, help tells that this formatoptions is specific to
> coments and things...
>
> But I´m getting disgusted of these "secret and magic commands"...
Secret? You might find it helpful to look at
:
On 2006-10-19, eric1235711 <[EMAIL PROTECTED]> wrote:
> here it's in this way:
> C:/Program Files/Vim
> and it contains vim70/ and vimfiles/
>
> Oh, thanks, Gary! it worked!!!
>
> But I didn´t like it!!!
>
> when I changed C:/Program Files/Vim/vimfiles/ftplugin/php.vim it stoped
> 'autowriting'
On Thu, 19 Oct 2006 18:29:19 +0200
Preben Randhol <[EMAIL PROTECTED]> wrote:
> Still doesn't work from my ISP, but works from other ISPs, so I guess
> it will take a bit time before it trinkles down to all dns servers...
Works now.
Hi,
On 10/19/06, Kim Schulz <[EMAIL PROTECTED]> wrote:
On Thu, 19 Oct 2006 15:18:12 +0200
"A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
[snip]
>
> Instead of calling the program "vim", call it "rview". Then you won't
> be able to write anything, nor to use a shell command. Is that safe
> enough?
Works just fine for me. Here's a traceroute for those in doubt:
$ traceroute www.vim.org
traceroute to vhost.sourceforge.net (66.35.250.210), 64 hops max, 40
byte packets
1 nautilus (192.168.1.1) 0.173 ms 0.183 ms 0.145 ms
2 86.106.2.2 (86.106.2.2) 0.456 ms 0.707 ms 0.430 ms
3 192.168
On Thu 19-Oct-06 9:26am -0600, Charles E Campbell Jr wrote:
> So, to do what you ask with LogiPat's result:
>
> :g/^\%(\%(}}$\)[EMAIL PROTECTED])*$/j
Please see my response to Tony Mechelynck. Your solution
changes the text of Peng Yu's example to 5 lines. As I
understand his goal, the correct
On Thursday 19 October 2006 07:22, Kamaraju Kusumanchi wrote:
> On Wednesday 18 October 2006 22:22, Peng Yu wrote:
> > Hi,
> >
> > Can the mailing list owner set "Reply-to" field in every mail
> > forward from this mailing list be "vim@vim.org"?
> >
> > I replied some mails to the original poster.
On Thursday 19 October 2006 18:26, Akbar wrote:
> Hi, I use vim7 ( compiled from source )
>
> This is my situation:
> open bla.rb
>
> def bla ( type def bla, enter )
> print "bla"( type two spaces and print "bla", enter )
> print "bli" ( no need to type two spaces,
* Jeff Lanzarotta [2006.10.19 13:13]:
> If there a way to check and see if the listchar
> is actually set or not?
For options I change often, I use the following to
display its value in the statusline.
function! OptSet(opt, string)
if(exists("a:opt") && expand(a:opt))
return a:string
On Thu, 2006-10-19 at 08:59 -0700, Jeff Lanzarotta wrote:
>
> I have the following in my vimrc,
>
>
> " This shows spaces and tabs characters. Visual Whitespace.
> set listchars=tab:»·,trail:·
> set list
>
>
> That all work well and good, but I would like to disable this
> disp
On 10/19/06, Lev Lvovsky <[EMAIL PROTECTED]> wrote:
For some reason, with the many buffers that I have open, the path
that a particular file takes, is instead of the initial directory
where I started from (which is what I want), the directory that the
file resides in. Trying ":cd", or ":lcd" onl
For some reason, with the many buffers that I have open, the path
that a particular file takes, is instead of the initial directory
where I started from (which is what I want), the directory that the
file resides in. Trying ":cd", or ":lcd" only temporarily changes
it, and in a few seconds
Awesome. Thanks...
--- Tim Chase <[EMAIL PROTECTED]> wrote:
> > Thanks for all the suggestions. They helped out... If there a way
> to
> > check and see if the listchar is actually set or not?
> >
> > In my script, I now turn off the display with 'set invlist list?',
> but
> > I do not want to t
Thanks for all the suggestions. They helped out... If there a way to
check and see if the listchar is actually set or not?
In my script, I now turn off the display with 'set invlist list?', but
I do not want to turn it back on if it was not previously set...
Well, you can use the common idiom
Thanks for all the suggestions. They helped out... If there a way to
check and see if the listchar is actually set or not?
In my script, I now turn off the display with 'set invlist list?', but
I do not want to turn it back on if it was not previously set...
--- Bill McCarthy <[EMAIL PROTECTED]>
On 10/19/06, Jeff Lanzarotta <[EMAIL PROTECTED]> wrote:
That all work well and good, but I would like to disable this display
of visual white space temporarily, do something, and then reset it back
to what I had. Is there a way to do this?
:map l :set invlist
Then type \l when you want to tog
On Thu 19-Oct-06 10:59am -0600, Jeff Lanzarotta wrote:
> I have the following in my vimrc,
>
>
> " This shows spaces and tabs characters. Visual Whitespace.
> set listchars=tab:»·,trail:·
> set list
>
>
> That all work well and good, but I would like to disable this display
> of
On 10/19/06, Jeff Lanzarotta <[EMAIL PROTECTED]> wrote:
Hello,
I have the following in my vimrc,
" This shows spaces and tabs characters. Visual Whitespace.
set listchars=tab:»·,trail:·
set list
That all work well and good, but I would like to disable this display
of visual w
On Wed, 18 Oct 2006 23:30:15 +0200
Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> SourceForge has fixed the VHOST service, www.vim.org is back!
Still doesn't work from my ISP, but works from other ISPs, so I guess
it will take a bit time before it trinkles down to all dns servers...
Preben
" This shows spaces and tabs characters. Visual Whitespace.
set listchars=tab:»·,trail:·
set list
That all work well and good, but I would like to disable this
display of visual white space temporarily, do something, and
then reset it back to what I had. Is there a way to do this?
Well
On Thu, 19 Oct 2006 15:18:12 +0200
"A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
[snip]
>
> Instead of calling the program "vim", call it "rview". Then you won't
> be able to write anything, nor to use a shell command. Is that safe
> enough? Maybe ":help starting.txt" will give you other ideas.
Hello,
I have the following in my vimrc,
" This shows spaces and tabs characters. Visual Whitespace.
set listchars=tab:»·,trail:·
set list
That all work well and good, but I would like to disable this display
of visual white space temporarily, do something, and then reset it ba
Hi, I use vim7 ( compiled from source )
This is my situation:
open bla.rb
def bla ( type def bla, enter )
print "bla"( type two spaces and print "bla", enter )
print "bli" ( no need to type two spaces, sweet, type print
"bli", enter )
end ( type en
Hi,
On 10/19/06, Marius Roets <[EMAIL PROTECTED]> wrote:
On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > 1) I would like to open a new window/tab, rather than use the one
> > above the quickfix window.
>
> :h 'switchbuf' -> split
>
> > 2) If the buffer is already open in another
Peng Yu wrote:
Hi,
I have the following file segments. I want to concatenate all the
lines with their next lines, except that it ends with "}}". I want to
use the pattern "\(}}\)[EMAIL PROTECTED]". It seems not working.
Would you please help me to figure out how to match the lineend
without "
I want to redefine * such that if next match is not found, it
does # instead (goes to previous match).
Also, I want to redefine # so that is previoue match is not found,
it does * instead.
How to do do it ? I want it to be independent of 'wrapscan'
option (I have 'nowrapscan' always, anyway).
Brecht Machiels schrieb:
Hi,
You can clear the 'modifiable' option to disable unintended
modifications to a buffer.
setlocal nomodifiable
Is is possible to prevent, for example, the project plugin from opening
another file (other than the current) in a window? The nomodifiable
option only
Brecht Machiels wrote:
Hi,
You can clear the 'modifiable' option to disable unintended
modifications to a buffer.
setlocal nomodifiable
Is is possible to prevent, for example, the project plugin from opening
another file (other than the current) in a window? The nomodifiable
option only a
On 10/19/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
I want to redefine * such that if next match is not found, it
does # instead (goes to previous match).
Also, I want to redefine # so that is previoue match is not found,
it does * instead.
How to do do it ? I want it to be independent of 'wra
this worked too
I think this is better, help tells that this formatoptions is specific to
coments and things...
But I´m getting disgusted of these "secret and magic commands"...
thaks
Peter Hodge-2 wrote:
>
>
> --- Gary Johnson <[EMAIL PROTECTED]> wrote:
>
>> On 2006-10-18, eric1235711 <[E
here it's in this way:
C:/Program Files/Vim
and it contains vim70/ and vimfiles/
Oh, thanks, Gary! it worked!!!
But I didn´t like it!!!
when I changed C:/Program Files/Vim/vimfiles/ftplugin/php.vim it stoped
'autowriting' comments in new lines...
but when I changed C:/Program Files/Vim/vimfiles
My gvim version is 7.0
eric1235711 wrote:
>
> Hello
>
> I´m PHP programmer and I started programming in gVim last weak, and I´m
> liking it very much
>
> But I got a trouble...
>
> When I´m commenting (// or /* or #) and I type it breaks the line
> automatically. Always I start a comment, i
On 10/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 1) I would like to open a new window/tab, rather than use the one
> above the quickfix window.
:h 'switchbuf' -> split
> 2) If the buffer is already open in another tab page, I'd like to jump
> there, instead of opening it in this ta
I want to redefine * such that if next match is not found, it
does # instead (goes to previous match).
Also, I want to redefine # so that is previoue match is not found,
it does * instead.
How to do do it ? I want it to be independent of 'wrapscan'
option (I have 'nowrapscan' always, anyway).
Y
On Wed, 18 Oct 2006, Peng Yu wrote:
> Can the mailing list owner set "Reply-to" field in every mail
> forward from this mailing list be "vim@vim.org"?
>
> I replied some mails to the original poster. But sometime I forget
> to reply the mails to the mailing list.
This request comes up from time
Hello,
Marius Roets <[EMAIL PROTECTED]> wrote:
> In a quickfix window, selecting an error (pressing enter) takes you to
> that error. The way it does this is by opening the file in the window
> above the quickfix window (if it is not open already, in which case it
> jumps to the open buffer, assu
Hi everybody,
In a quickfix window, selecting an error (pressing enter) takes you to
that error. The way it does this is by opening the file in the window
above the quickfix window (if it is not open already, in which case it
jumps to the open buffer, assuming the buffer is in the same tabpage).
T
On Thu 19-Oct-06 2:28am -0600, you wrote:
> Bill McCarthy wrote:
>> On Wed 18-Oct-06 10:24pm -0600, A.J.Mechelynck wrote:
>>
>>> Peng Yu wrote:
Hi,
I have the following file segments. I want to concatenate all the
lines with their next lines, except that it ends with "}}". I w
Bill McCarthy wrote:
On Thu 19-Oct-06 2:28am -0600, you wrote:
Bill McCarthy wrote:
On Wed 18-Oct-06 10:24pm -0600, A.J.Mechelynck wrote:
Peng Yu wrote:
Hi,
I have the following file segments. I want to concatenate all the
lines with their next lines, except that it ends with "}}". I want
On Thu 19-Oct-06 3:08am -0600, you wrote:
> Hadn't thought of that. So IIUC our final try is
> 1,$-1v/}}$/
> \ while getline(".") !~ '}}$'
> \ && line(".") != line ("$")
> \ | join
> \ | endwhile
Hi,
You can clear the 'modifiable' option to disable unintended
modifications to a buffer.
setlocal nomodifiable
Is is possible to prevent, for example, the project plugin from opening
another file (other than the current) in a window? The nomodifiable
option only applies to the buffer. Th
Bill McCarthy wrote:
On Wed 18-Oct-06 10:24pm -0600, A.J.Mechelynck wrote:
Peng Yu wrote:
Hi,
I have the following file segments. I want to concatenate all the
lines with their next lines, except that it ends with "}}". I want to
use the pattern "\(}}\)[EMAIL PROTECTED]". It seems not working
On Wed 18-Oct-06 10:24pm -0600, A.J.Mechelynck wrote:
> Peng Yu wrote:
>> Hi,
>>
>> I have the following file segments. I want to concatenate all the
>> lines with their next lines, except that it ends with "}}". I want to
>> use the pattern "\(}}\)[EMAIL PROTECTED]". It seems not working.
>>
>>
65 matches
Mail list logo