Re: 'ed' and 'split' with read-only enabled

2013-07-15 Thread Étienne Faure
On Mon, Jul 15, 2013 at 3:33 PM, Woody Wu narkewo...@gmail.com wrote: Hi, List How can I open a file in current buffer using 'ed' and 'split' but with read-only enabled in the same time? You can invoke vim as view instead of vim on the command line: view is vim in readonly mode. -- --

Re: 'ed' and 'split' with read-only enabled

2013-07-15 Thread Étienne Faure
On Mon, Jul 15, 2013 at 4:06 PM, Woody Wu narkewo...@gmail.com wrote: On Mon, Jul 15, 2013 at 03:57:54PM +0200, ?tienne Faure wrote: On Mon, Jul 15, 2013 at 3:33 PM, Woody Wu narkewo...@gmail.com wrote: Hi, List How can I open a file in current buffer using 'ed' and 'split' but with

Re: Case insensitive search

2013-07-09 Thread Étienne Faure
On Tue, Jul 9, 2013 at 3:10 PM, Patterson, Joel jpatter...@entint.comwrote: Does anyone know how to do a case insensitive search? I tried :help case, :help sensitive and so forth. ** :help 'ignorecase' -- -- You received this message from the vim_use maillist. Do not top-post!

Foldmethod set to syntax for c or cpp file

2011-08-03 Thread Étienne Faure
Hello, I would like to use the syntax foldmethod method but all I can get is no fold found. I thought is was somewhere caused by an added script and tried the following: (Using the latest vim without cream, version 7.3.266, on windows seven) gvim -U NONE -u NONE toto.cpp :set nocp :set

Re: Foldmethod set to syntax for c or cpp file

2011-08-03 Thread Étienne Faure
Hello again, I guess I found my problem: ~/vimfiles/after/syntax/c.vim was the cause. It was coming from http://www.vim.org/scripts/script.php?script_id=1201 I don't remember how it ended up in after/ directory. Even though I've solved my issue, I don't understand it. Regards, Etienne -- You

Re: Puzzling error message after a throw

2011-05-16 Thread Étienne Faure
Hello, On Mon, May 16, 2011 at 23:51, Spiros Bousbouras spi...@gmail.com wrote: function! Foo()    throw 0 endfunction if 1    call Foo() endif When I execute the above script I get    E605: Exception not caught: 0 [...]    line    6:    E171: Missing :endif Like in most programing

Re: Pattern limits selection for next pattern or substitution

2010-11-30 Thread Étienne Faure
On Tue, Nov 30, 2010 at 08:44, bboyjkang jkan...@gmail.com wrote: :','s/red/green/g I would like the :',' to be instead a (does it have to be visual?) selection of all those lines that contain the pattern. Then, I could do a substitution, or a pattern search that might further restrict the

Re: How to synchronize NERDTree with current opened tab file path?

2010-10-02 Thread Étienne Faure
On Sat, Oct 2, 2010 at 06:02, Jichao jcyan...@gmail.com wrote: Is there a sync shortcut to change the current root directory to the new opened file's directory? :help NERDTreeFind Tinou -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

Re: jumping to errors in non-existent files

2010-10-01 Thread Étienne Faure
On Fri, Oct 1, 2010 at 16:48, Benjamin R. Haskell v...@benizi.com wrote: On Fri, 1 Oct 2010, Karthick Gururaj wrote: On Fri, Oct 1, 2010 at 7:30 PM, Jeff Perry wrote: When I run my program from within vim :./xyz and the program errors out with a runtime error, e.g.:     myprog: