Hi guys,
Good day to all.
I have question about folding on C++.
How do I fold the if in following code? I typed 'zc' but it folded all main
function.
Any idea? Thanks
int main()
{
if ()
{
//...
}
switch ()
{
//...
}
while ()
{
//...
}
}
--
Best
> >> I don't think so. When case in filenames is ignored, it must not be
> >> relevant in filetypes either. Otherwise you could not create filetype
> >> plugins or syntax files for two filetypes that differ in case only.
>
> > You can't (reliably do so) when using a file system that has case
> > in
Hi,
Tom Link wrote:
I don't think so. When case in filenames is ignored, it must not be
relevant in filetypes either. Otherwise you could not create filetype
plugins or syntax files for two filetypes that differ in case only.
>>
>>> You can't (reliably do so) when using a file syst
On Mon, Oct 18, 2010 at 12:34 AM, flebber wrote:
> Hi
>
> I was wondering if there was a way to setup vim so that it opens in
> Ruby mode. For Ruby Programming. I don't want it to be anything
> extravagent I just want it to handle Ruby language features syntax etc
I think you can acconplish this
On Oct 18, 10:41 pm, "Ivan S. Freitas"
wrote:
> On Mon, Oct 18, 2010 at 12:34 AM, flebber wrote:
> > Hi
>
> > I was wondering if there was a way to setup vim so that it opens in
> > Ruby mode. For Ruby Programming. I don't want it to be anything
> > extravagent I just want it to handle Ruby lan
On Oct 18, 10:41 pm, "Ivan S. Freitas"
wrote:
> On Mon, Oct 18, 2010 at 12:34 AM, flebber wrote:
> > Hi
>
> > I was wondering if there was a way to setup vim so that it opens in
> > Ruby mode. For Ruby Programming. I don't want it to be anything
> > extravagent I just want it to handle Ruby lan
Reply to message «Re: grep quickfix window question»,
sent 15:34:37 18 October 2010, Monday
by Jürgen Krämer:
> My conclusion: leave it as it is, i.e., handle filetype names case
> sensitively where the typical file system support case sensitivity and
> make them case insensitive otherwise. One c
ZyX schrieb:
> Reply to message «Re: grep quickfix window question»,
> sent 15:34:37 18 October 2010, Monday
> by Jürgen Krämer:
>
>> My conclusion: leave it as it is, i.e., handle filetype names case
>> sensitively where the typical file system support case sensitivity and
>> make them case in
On Oct 18, 11:05 pm, flebber wrote:
> On Oct 18, 10:41 pm, "Ivan S. Freitas"
> wrote:
>
>
>
>
>
>
>
>
>
> > On Mon, Oct 18, 2010 at 12:34 AM, flebber wrote:
> > > Hi
>
> > > I was wondering if there was a way to setup vim so that it opens in
> > > Ruby mode. For Ruby Programming. I don't want
>> And the is an actual vim_ruby pluginhttp://rubyforge.org/frs/?group_id=16
>
> And on git http://github.com/vim-ruby/vim-ruby/blob/master/INSTALL .
> So that takes care of the syntax now I just need to work on buffers
The bufexplorer/buffermru you already cited could help you browing
multiple bu
I noted that my session file once in a while corrupts.
Today I noted the reason:
when I do a drag and drop from a file (p.e. makemenu.vim) in Vim, Vim
put this line in the session.vim file:
args Program\ Files\Vim\vim73\makemenu.vim
When I open the same file in vim using the Open command (:e) Vi
Reply to message «Re: grep quickfix window question»,
sent 16:17:37 18 October 2010, Monday
by Jürgen Krämer:
> > Case insensitiviness of filetypes is not related to case insensitiviness of
> > filenames:
> of course it is: setting a filetype leads to sourceing files with the
> same name as the fi
On Mon, 2010-10-18 at 09:41 -0200, Ivan S. Freitas wrote:
search also for xmp and xmp-vim
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
thank you Tony.
How comes that the best editor in the world can't print utf-8
characters and doesn't wrap words at margin when printing?
On Oct 18, 12:54 am, Tony Mechelynck
wrote:
> On 17/10/10 12:04, rameo wrote:
>
>
>
> > I still have problems in Vim to print in utf-8.
>
> > 1)
> > I created
You wrote that accented characters may print in Latin1.
The characters èéòàùì are default on my keyboard and print in all
other programs.
Why doesn't it print in latin1 in vim?
Maybe I have to create files in latin1 and not in utf-8?
--
You received this message from the "vim_use" maillist.
Do
Hi,
I noticed that persistent undo stopped working for files on a sshfs
mounted filesystem when I set undodir. Is this a "feature" or a bug?
Regards,
// Mattias
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For mor
Hi,
ZyX wrote:
> Reply to message «Re: grep quickfix window question»,
> sent 16:17:37 18 October 2010, Monday
> by Jürgen Krämer:
>>> Case insensitiviness of filetypes is not related to case insensitiviness of
>>> filenames:
>> of course it is: setting a filetype leads to sourceing files with t
Reply to message «Re: grep quickfix window question»,
sent 17:31:43 18 October 2010, Monday
by Jürgen Krämer:
> So when Vim has its run-time directories on a file system that
> distinguishes between lower and upper case letters, the filetype name
> must match exactly in case.
I know that. But the
Tintin72 wrote:
Then I suggest making a netrw debugging trace. Please read :help
netrw-debug; be sure to elide any passwords that end up in the debugging
trace.
I never used Decho before and I'm not pretty sure that the way I'm
using it is
correct.
Anyway, I did what you said and now I g
On Oct 17, 4:39 pm, Sung Pae wrote:
> I have a strong suspicion that this topic has been covered in the
> mailing list before, but I could not find it.
>
> So here is my question: Is there a way to nullify the indent level for
> continuation lines of a control statement when the result of the
>
On Oct 17, 9:34 pm, flebber wrote:
> Hi
>
> I was wondering if there was a way to setup vim so that it opens in
> Ruby mode. For Ruby Programming. I don't want it to be anything
> extravagent I just want it to handle Ruby language features syntax etc
> but also mainly I wanted it to open with 3
Hi,
ZyX wrote:
> Reply to message «Re: grep quickfix window question»,
> sent 17:31:43 18 October 2010, Monday
> by Jürgen Krämer:
>
>> So when Vim has its run-time directories on a file system that
>> distinguishes between lower and upper case letters, the filetype name
>> must match exactly i
On 18/10/10 15:15, rameo wrote:
thank you Tony.
How comes that the best editor in the world can't print utf-8
characters and doesn't wrap words at margin when printing?
Well, for one thing, Vim is a plaintext editor, not a WYSIWYG document
processor: see ":help design-not". There is also a pr
On 18/10/10 15:19, rameo wrote:
You wrote that accented characters may print in Latin1.
The characters טיעאשל are default on my keyboard and print in all
other programs.
Why doesn't it print in latin1 in vim?
Maybe I have to create files in latin1 and not in utf-8?
Maybe. Or it may depend on
On 15/10/10 09:04, John Beckett wrote:
Ben Fritz wrote:
Where do we want to put our mailing list info, patch list,
etc. now?
Thanks for the alert that Google Groups will soon shut down
all "pages" and "files". I have downloaded all the current
items, and have listed them below for reference.
On 18 Oct 2010, at 9:48 AM, Ben Fritz wrote:
> On Oct 17, 4:39 pm, Sung Pae wrote:
>> For example, in Ruby one can assign the value of a `case' expression:
>>
>> myvar = case object
>> when foo then bar
>> when bar then baz
>> end
>>
>> This is my preferred indent style for thi
* issue:
after setting a colorscheme, vim does not automatically reset the
background when the editor quits.
I am forced to manually run
$ echo -e '\E[m'
to reset the colors.
* affects:
- version 7.2.108 on mac [snow leopard defaults]
- version 7.0.237 on rhel [default]
* how to replicate:
launc
Reply to message «bash + vim color background bug»,
sent 20:07:45 18 October 2010, Monday
by Peta:
Vim-7.3, Gentoo, urxvtc+screen. Unable to reproduce the problem in zsh (even
with empty PS1 variable) and bash in interactive mode (again, even with empty
PS1). Reproducible into bash in non-inter
Hi Mattias!
On Mo, 18 Okt 2010, Mattias Fliesberg wrote:
> I noticed that persistent undo stopped working for files on a sshfs
> mounted filesystem when I set undodir. Is this a "feature" or a bug?
I can't reproduce this.
Mit freundlichen Grüßen
Christian
--
Man muß jedem Hindernis Geduld, Beh
Sung Pae wrote:
[snip]
Thank you for your response.
There is a separate indent file for ruby in VIMRUNTIME/indent, and the
one for JavaScript essentially just does "setlocal cindent". I hoped
that since the behavior is similar (unwanted indentation after an
assignment), there was a global switch
Hi,
Here's a new trace list. I hope this time it will be complete and
you could find out what is the pb.
Thanks again.
snippet
---
-
Decho Tab /usr/share/vim/vim72/auto
On 18 Oct 2010, at 1:26 PM, Charles Campbell wrote:
> Of course, since you "replied" to a thread about how to unsubscribe and
> then changed the subject, and so doing put your question on that
> "unsubscribing" thread, many people won't even notice your question.
It's true, I regret this. I decid
I work with files with folds using foldmethod=expr and a fairly
complicated foldexpr. The configuration of open and closed folds for
a buffer is local to a window, not the buffer. This is great, except
that it can cause a slowdown as the foldexpr is (re-)evaluated for the
entire buffer when a hid
On Oct 18, 11:35 am, Sung Pae wrote:
> > 'cinoptions' only makes a difference if 'cindent' is set. In your
> > case, it is more likely you are using filetype-specific indent rules.
> > There MIGHT be variables you can set with a :let command that
> > customize the indent rules to some extent, se
On 18 Oct 2010, at 2:25 PM, Ben Fritz wrote:
> On Oct 18, 11:35 am, Sung Pae wrote:
>>> 'cinoptions' only makes a difference if 'cindent' is set.
>> There is a separate indent file for ruby in VIMRUNTIME/indent, and the
>> one for JavaScript essentially just does "setlocal cindent".
>
> I had n
Peta wrote:
> * issue:
> after setting a colorscheme, vim does not automatically reset the
> background when the editor quits.
>
> I am forced to manually run
> $ echo -e '\E[m'
> to reset the colors.
>
> * affects:
> - version 7.2.108 on mac [snow leopard defaults]
> - version 7.0.237 on rhel
Mattias Fliesberg wrote:
> I noticed that persistent undo stopped working for files on a sshfs
> mounted filesystem when I set undodir. Is this a "feature" or a bug?
Relevant details are missing. Please explain more clearly. Such as,
what is "sshfs"? How do you use it? What do you set 'undod
Tintin72 wrote:
Hi,
Here's a new trace list. I hope this time it will be complete and
you could find out what is the pb.
Hello:
In the original description of the problem you said that you were using
:Nread ftp://lo...@server.com/index.html
How did you start vim? :Nread ... is akin to
Reply to message «Re: bash + vim color background bug»,
sent 00:04:35 19 October 2010, Tuesday
by Bram Moolenaar:
> It works fine for me in an xterm.
>
> It may be a problem with your terminal in combination with the terminal
> settings, e.g. $TERM.
It is probably not since I can reproduce this
Peta wrote:
> Vim-7.3, Gentoo, urxvtc+screen
Do you have `defbce on' in your screenrc? (background-color-erase)
Your $TERM should be set to `screen-{16,256}color-bce' and you should also have
the corresponding term{cap,info} entry.
--
You received this message from the "vim_use" maillist.
Do
Reply to message «Re: bash + vim color background bug»,
sent 00:31:07 19 October 2010, Tuesday
by Sung Pae:
> Do you have `defbce on' in your screenrc? (background-color-erase)
>
> Your $TERM should be set to `screen-{16,256}color-bce' and you should also
> have the corresponding term{cap,info} e
I recently installed Python 3.1.2 on my system as well as gvim7.3.
When I launch gvim and type the command :version I see +python/dyn as
well as +python3/dyn
However, when I run
:python3 print('hi')
I receive the following error:
E370: Could not load library python31.dll
E263: Sorry, this command
Yes, what I want to do is to edit the remote file and
the :e ftp://lo...@server.com/index.html then :w commands
work great actually. In fact I was using the wrong command (Nread).
Thanks a lot.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the t
Tintin72 wrote:
Yes, what I want to do is to edit the remote file and
the :e ftp://lo...@server.com/index.html then :w commands
work great actually. In fact I was using the wrong command (Nread).
Thanks a lot.
You're welcome!
Chip Campbell
--
You received this message from the "vim_use" m
Heefan wrote:
> How do I fold the if in following code? I typed 'zc' but it
> folded all main function.
If filetype is cpp (or c) and foldmethod is syntax, you should
be able to use zc to close an if(){...} block (or za to toggle
it open/closed).
When viewing the cpp file, what is the output fro
Пнд, 18 Окт 2010, binxter писал(а):
> I recently installed Python 3.1.2 on my system as well as gvim7.3.
> When I launch gvim and type the command :version I see +python/dyn as
> well as +python3/dyn
>
> However, when I run
> :python3 print('hi')
>
> I receive the following error:
> E370: Could n
On 19/10/10 08:09, binxter wrote:
I recently installed Python 3.1.2 on my system as well as gvim7.3.
When I launch gvim and type the command :version I see +python/dyn as
well as +python3/dyn
However, when I run
:python3 print('hi')
I receive the following error:
E370: Could not load library py
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 10/19/2010 04:04 AM, Bram Moolenaar wrote:
>
> Mattias Fliesberg wrote:
>
>> I noticed that persistent undo stopped working for files on a sshfs
>> mounted filesystem when I set undodir. Is this a "feature" or a bug?
>
> Relevant details are miss
On Oct 17, 9:49 am, Christian Brabandt wrote:
> Hi Sean!
>
> On Do, 14 Okt 2010, Sean wrote:
>
> > Same error using
> > vim_on_cygwin_using_win32_clipboard__simple__2008_12_21_001.patch.
> > Wish I could get help from Anton Sharonov :))
>
> Well, I took a look and could successfully patch Vim 7.
Hi John,
Thanks for your time and guidance.
I have checked the settings which you mentioned. And reboot my linux, it
works.
Thanks.
One more question about folding #ifdef #endif. Any method can do this?
Thanks & Rgs
heefan
On Tue, Oct 19, 2010 at 6:02 AM, John Beckett wrote:
> Heefan wrote
50 matches
Mail list logo