Re: indentexpr and = operator

2011-05-16 Thread Philipp Marek
Hello Gary, I found the problem. It was set lisp that caused indentexpr to be ignored. Sadly that's only documented in the lisp option, and not in indentexpr ... Thank you! Regards, Phil -- Versioning your /etc, /home or even your whole installation? Try fsvs

Re: indentexpr and = operator

2011-05-16 Thread Gary Johnson
On 2011-05-16, Philipp Marek wrote: Hello Gary, I found the problem. It was set lisp that caused indentexpr to be ignored. Congratulations! I'm glad you found the answer, and thanks for posting your discovery. Sadly that's only documented in the lisp option, and not in indentexpr ...

Re: indentexpr and = operator

2011-05-16 Thread Ben Schmidt
Sadly that's only documented in the lisp option, and not in indentexpr ... Good point. It sounds like adding a sentence to the help for 'indentexpr' is in order: May be overridden by the lisp indentation algorithm when 'lisp' is set. It also sounds like the help for = should be

crash after vimgrep and switching tabs

2011-05-16 Thread z9
Hi Guys! I have been using vim for ages, and I ran into a serious problem with 7.3. on windows XP. After executing a vimgrep search and I have matches in several files, I open them in several tabs. If I switch tabs, vim crashes. Not all the time, but very often. Earlier I never had this

Re: no TextExpander with MacVim?

2011-05-16 Thread MacVlad
Hello! 1.- TextExpander: http://www.smilesoftware.com/TextExpander/ 2.- Yes, him = it :-) Regards, Vlad Ghitulescu On 16 Mai, 04:19, Ben Fritz fritzophre...@gmail.com wrote: On May 14, 11:22 pm, Vlad Ghitulescu vlad.ghitule...@gmx.de wrote: Hello! I'm using MacVim Snapshot 57 on my

Re: no TextExpander with MacVim?

2011-05-16 Thread MacVlad
Hello! I'm using already Vim's built-in abbreviation functionality. Because I like Vim (and MacVim) so much, I'm using QuickCursor too - this is a program that enables editing with Vim everywhere (Mail, browser etc.). Here would be nice to use once in a while some of the features of

Re: no TextExpander with MacVim?

2011-05-16 Thread Ben Schmidt
Here would be nice to use once in a while some of the features of TextExpander that I couldn't found in Vim, as the embeded images or the templates. Also very useful for me is the synchronisation of the TextExpander-snippets via Dropbox with my iPhone % iPad - something where MacVim's

Re: crash after vimgrep and switching tabs

2011-05-16 Thread Ben Fritz
On May 16, 2:09 am, z9 z...@zorum.com wrote: Hi Guys! I have been using vim for ages, and I ran into a serious problem with 7.3. on windows XP. After executing a vimgrep search and I have matches in several files, I open them in several tabs. If I switch tabs, vim crashes. Not all the

Re: crash after vimgrep and switching tabs

2011-05-16 Thread Dominique Pellé
z9 wrote: Hi Guys! I have been using vim for ages, and I ran into a serious problem with 7.3. on windows XP. After executing a vimgrep search and I have matches in several files, I open them in several tabs. If I switch tabs, vim crashes. Not all the time, but very often. Earlier I never

Looking at indent problem in perl lang in vim

2011-05-16 Thread Linda W
A problem noted by many (including in the perl.vim indent file) is incorrect functioning of indentation when using a widely used (e.g. from 'perltidy') formatting. Example: my @foobar = ( 1, 2, ); my $nextstatement=1; The above isn't indented properly, but is

Puzzling error message after a throw

2011-05-16 Thread Spiros Bousbouras
function! Foo() throw 0 endfunction if 1 call Foo() endif When I execute the above script I get E605: Exception not caught: 0 [...] line6: E171: Missing :endif Is the error about the endif a bug ? In a complicated script it could send someone on a wild goose chase when

substitute Unicode characters

2011-05-16 Thread Eljay Love-Jensen
The Unicode font I am using for Vim works great. Except... I would like to use a private use area (PUA) alternative glyph for zero, which has a slash through it. I would like to use a private use area (PUA, non-BMP) alternative glyph for asterisk, which looks better for coding. Is there an

Re: substitute Unicode characters

2011-05-16 Thread Benjamin R. Haskell
On Mon, 16 May 2011, Eljay Love-Jensen wrote: The Unicode font I am using for Vim works great. Except... I would like to use a private use area (PUA) alternative glyph for zero, which has a slash through it. I would like to use a private use area (PUA, non-BMP) alternative glyph for

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

It is possible to have enabled 2 o more different syntax in the same file?

2011-05-16 Thread AMDx64BT
I would like to highlight 2 o more different syntax in the same file. For example, I have a file with notes with different languages cpp, matlab, python, bash and I would like to be able to highlight each syntax with colors. Any ideas? -- You received this message from the vim_use maillist.

Re: It is possible to have enabled 2 o more different syntax in the same file?

2011-05-16 Thread Xell Liu
Hi, Perhaps :h :syn-include could help you. On Tue, May 17, 2011 at 8:55 AM, AMDx64BT amdx6...@gmail.com wrote: I would like to highlight 2 o more different syntax in the same file. For example, I have a file with notes with different languages cpp, matlab, python, bash and I would like to

Re: It is possible to have enabled 2 o more different syntax in the same file?

2011-05-16 Thread Tony Mechelynck
On 17/05/11 02:55, AMDx64BT wrote: I would like to highlight 2 o more different syntax in the same file. For example, I have a file with notes with different languages cpp, matlab, python, bash and I would like to be able to highlight each syntax with colors. Any ideas? It is possible as long

gvim CRITICAL error

2011-05-16 Thread cyboman
i installed gvim on my linux machine, but i'm getting a critical error. it doesn't really bug me, since gvim is working fine but i would like to know why i have. this is what i sometimes have displayed in the terminal: ** (gvim:27474): CRITICAL **: murrine_style_draw_box: assertion `height = -1'

Submatch expression in substitute()

2011-05-16 Thread John Beckett
I want some Vim script to remove percent encoding (where '%' followed by two hex digits means the single character with the given hex ASCII code, for example '%412' is 'A2'). It's easy to do this using :substitute with: :s/%\(\x\x\)/\=nr2char('0x'.submatch(1))/g However, submatch() does not