Folding,C++

2010-10-18 Thread Heefan
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

Re: grep quickfix window question

2010-10-18 Thread Tom Link
> >> 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

Re: grep quickfix window question

2010-10-18 Thread Jürgen Krämer
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

Re: Setting up default gVim

2010-10-18 Thread Ivan S. Freitas
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

Re: Setting up default gVim

2010-10-18 Thread flebber
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

Re: Setting up default gVim

2010-10-18 Thread flebber
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

Re: grep quickfix window question

2010-10-18 Thread ZyX
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

Re: grep quickfix window question

2010-10-18 Thread Jürgen Krämer
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

Re: Setting up default gVim

2010-10-18 Thread flebber
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

Re: Setting up default gVim

2010-10-18 Thread Ivan S. Freitas
>> 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

session file corrupts when doing a drag and drop

2010-10-18 Thread rameo
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

Re: grep quickfix window question

2010-10-18 Thread ZyX
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

Re: Setting up default gVim

2010-10-18 Thread Reid Thompson
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

Re: print utf-8 characters

2010-10-18 Thread rameo
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

Re: print utf-8 characters

2010-10-18 Thread rameo
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

persistent undo stops working on sshfs if undodir is set

2010-10-18 Thread Mattias Fliesberg
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

Re: grep quickfix window question

2010-10-18 Thread Jürgen Krämer
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

Re: grep quickfix window question

2010-10-18 Thread ZyX
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

Re: Problem with netrw

2010-10-18 Thread Charles Campbell
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

Re: Avoiding indentation of control statements when used in assignment

2010-10-18 Thread Ben Fritz
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 >

Re: Setting up default gVim

2010-10-18 Thread Ben Fritz
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

Re: grep quickfix window question

2010-10-18 Thread Jürgen Krämer
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

Re: print utf-8 characters

2010-10-18 Thread Tony Mechelynck
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

Re: print utf-8 characters

2010-10-18 Thread Tony Mechelynck
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

Re: What to do with vim_use and vim_dev pages and files?

2010-10-18 Thread Tony Mechelynck
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.

Re: Avoiding indentation of control statements when used in assignment

2010-10-18 Thread Sung Pae
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

bash + vim color background bug

2010-10-18 Thread Peta
* 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

Re: bash + vim color background bug

2010-10-18 Thread ZyX
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

Re: persistent undo stops working on sshfs if undodir is set

2010-10-18 Thread Christian Brabandt
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

Re: Avoiding indentation of control statements when used in assignment

2010-10-18 Thread Charles Campbell
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

Re: Problem with netrw

2010-10-18 Thread Tintin72
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

Re: Avoiding indentation of control statements when used in assignment

2010-10-18 Thread Sung Pae
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

question re: loading folded buffers into new windows

2010-10-18 Thread hsitz
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

Re: Avoiding indentation of control statements when used in assignment

2010-10-18 Thread Ben Fritz
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

Re: Avoiding indentation of control statements when used in assignment

2010-10-18 Thread Sung Pae
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

Re: bash + vim color background bug

2010-10-18 Thread Bram Moolenaar
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

Re: persistent undo stops working on sshfs if undodir is set

2010-10-18 Thread Bram Moolenaar
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

Re: Problem with netrw

2010-10-18 Thread Charles Campbell
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

Re: bash + vim color background bug

2010-10-18 Thread ZyX
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

Re: bash + vim color background bug

2010-10-18 Thread Sung Pae
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

Re: bash + vim color background bug

2010-10-18 Thread ZyX
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

Python not working on vim7.3

2010-10-18 Thread 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 not load library python31.dll E263: Sorry, this command

Re: Problem with netrw

2010-10-18 Thread Tintin72
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

Re: Problem with netrw

2010-10-18 Thread Charles Campbell
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

RE: Folding,C++

2010-10-18 Thread John Beckett
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

Re: Python not working on vim7.3

2010-10-18 Thread bill lam
Пнд, 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

Re: Python not working on vim7.3

2010-10-18 Thread Grizzly(Francis Smit)
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

Re: persistent undo stops working on sshfs if undodir is set

2010-10-18 Thread Aaron Lewis
-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

Re: Clipboard functionality on Unix/Windows

2010-10-18 Thread Sean
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.

Re: Folding,C++

2010-10-18 Thread Heefan
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