A.J.Mechelynck [EMAIL PROTECTED] 写于 2006-10-19 13:42:46:
(I think I read the help correctly in
understanding that ctermbg=NONE and ctermfg=NONE are not syntactically
valid
settings, but I'm not 100% sure that I understood it correctly.)
Best regards,
Tony.
Hi Tony,
Thanks very much for
Peter Hodge [EMAIL PROTECTED] 写于 2006-10-19 13:44:19:
Hello,
If you change the background=light, Vim reloads the colorscheme so it has
a
chance to give you new colors. But if the colorscheme changes
background=dark
again, then Vim knows that the colorscheme isn't capable of picking
colors
On Wed 18-Oct-06 9:20pm -0600, Peng Yu wrote:
On 10/18/06, Bill McCarthy [EMAIL PROTECTED] wrote:
You're fairly close. Assuming you visually marked those
lines, this solution is magic:
','s/\%(}}\)\@!\n
but this solution is very magic:
','s/\v%(}})@!\n
:h /\@!
:h /\v
Could
[EMAIL PROTECTED] wrote:
A.J.Mechelynck [EMAIL PROTECTED] 写于 2006-10-19 13:42:46:
(I think I read the help correctly in
understanding that ctermbg=NONE and ctermfg=NONE are not syntactically
valid
settings, but I'm not 100% sure that I understood it correctly.)
Best regards,
Tony.
Hi
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.
Would you please
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 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
isn't it?
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 to
use the pattern
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).
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, assuming
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 to time
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).
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 tab
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 SPACE it breaks the line
automatically. Always I start a comment, i
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
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 [EMAIL
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
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
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
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).
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 }}?
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 tab page, I'd
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
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.
except that
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?
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
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
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 visual
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 silent Leaderl :set invlistCR
Then type \l when
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]
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
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 it
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 only
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
display of
* 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
else
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, sweet, type
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. But sometime I
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
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
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? Maybe :help
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.
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' comments in
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
:help
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 line.
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 text
% as
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 worked
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,
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 and are
I am making a plugin which naturally requires nocp
because it uses keys 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
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 to
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 to
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
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
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 (
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), the
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 keys 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
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 gives
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 the
Hi all,
I am the creator of a mechanism called elastic tabstops (see
nickgravgaard.com/elastictabstops/). Right now, my plan is to try and
implement this in as many text widgets as possible so that the editors
that use them will be able to easily add this as a feature. Since vim
(well, gvim
There is bug in vim...
According to :help :map-alt-keys :
By default Vim assumes that pressing the ALT key sets the 8th bit
of a typed character.
This is wrong for 8-bit non-ascii locales. Example:
:imap M-i something
maps CYRILLIC CAPITAL I (in KOI8-R locale) instead of Alt-I.
Also, vim
Hello,
Do you intend to make Elastic Tabs available in a console vim as well?
regards,
Peter
--- Nick Gravgaard [EMAIL PROTECTED] wrote:
Hi all,
I am the creator of a mechanism called elastic tabstops (see
nickgravgaard.com/elastictabstops/). Right now, my plan is to try and
implement
I don't think so - just the GTK version. One of the advantages of the
elastic tabstop system is that proportional fonts can be used without
breaking vertical alignment, and obviously this advantage is invalid
in a monospaced console.
I'm not fussed about proportional fonts, I'm interested in
--- Nick Gravgaard [EMAIL PROTECTED] wrote:
On 20/10/06, Peter Hodge [EMAIL PROTECTED] wrote:
I don't think so - just the GTK version. One of the advantages of the
elastic tabstop system is that proportional fonts can be used without
breaking vertical alignment, and obviously this
Almost every plugin begins with this check:
if exists(g:plugin_name) | finish | endif
let g:plugin_name = 1
I understand this tries to save time if vim tries to load plugins 2nd time.
But aren't plugins loaded only at vim startup ? Does vim *ever*
ever try to load plugins 2nd time ? In
I think it is because you may have a copy of the plugin in $VIMRUNTIME as well
as in your .vim folder. In this way, your .vim copy is sourced first (well,
according to 'rtp'), sets the g:plugin_name variable and when the $VIMRUNTIME
plugins are sourced, and it sees the variable and prevents
On 10/20/06, Peter Hodge [EMAIL PROTECTED] wrote:
--- Yakov Lerner [EMAIL PROTECTED] wrote:
Almost every plugin begins with this check:
if exists(g:plugin_name) | finish | endif
let g:plugin_name = 1
I understand this tries to save time if vim tries to load plugins 2nd time.
But
Alexey I. Froloff wrote:
There is bug in vim...
According to :help :map-alt-keys :
By default Vim assumes that pressing the ALT key sets the 8th bit
of a typed character.
This is wrong for 8-bit non-ascii locales. Example:
:imap M-i something
maps CYRILLIC CAPITAL I (in KOI8-R locale)
67 matches
Mail list logo