Re: Why can't I set perl_fold in ftplugin/perl.vim?

2010-12-13 Thread John Little
On Dec 12, 10:15 pm, Matteo Riva mura...@gmail.com wrote: If I add:   let perl_fold = 1 in ~/.vimrc it works fine, foldmethod is set to syntax and subs are folded. If I put that line in ~/.vim/ftplugin/perl.vim instead, subs are not folded and foldmethod is set to manual, but even if I

Re: Getting length of the the selection

2010-12-13 Thread Luc Hermitte
Hello, Andres Perera wrote: On Sun, Dec 12, 2010 at 11:35 PM, C K Kashyap ckkash...@gmail.com wrote: I have a set of lines like this - char str1 = hello; char str2 = printer; and I'd like to generate - char str1 = hello; char str1_arr[5]; char str2 = printer; char

Re: folding refused, set filetype=c helps, why?

2010-12-13 Thread fka...@googlemail.com
my ~/.vim/ftplugin.c basically contains this:-- is this really the name of your filetype plugin. It should be   ~/.vim/ftplugin/c.vim Thanks, yes, my file is named like this. This was a typo in my posting. Felix -- You received this message from the vim_use maillist. Do not

Is it possible to have a pipe in formatprg?

2010-12-13 Thread BPJ
Is it possible to have a pipe in formatprg? :setl formatprg=filer1|filter2 (I know I can't do *that*, but that's the idea...) /bpj -- 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

Re: Illegal file name when reading a directory

2010-12-13 Thread Charles Campbell
Cesar Romani wrote: I'm using vim 7.3.81 on Win XP. When reading a directory using :e directory I get Illegal file name whenever directory ends in \ Many thanks in advance, The illegal file name message is issued by vim before netrw is invoked. It shouldn't be a problem. Regards, C

Re: Is it possible to have a pipe in formatprg?

2010-12-13 Thread ZyX
Reply to message «Is it possible to have a pipe in formatprg?», sent 17:12:48 13 December 2010, Monday by BPJ: Yes, it is. You either need to escape pipe symbol (because setl formatprg=filter1|filter2 and setl formatprg=filter1 filter2 are just the same), or use let, for example:

Re: Alt key Mapping

2010-12-13 Thread Ben Fritz
On Dec 10, 9:23 am, dvd7e mikee...@gmail.com wrote: (I did some research on this for a while, but to no avail, so I'm posting the question here.) I would like to map Alt+char to certain functions in GVIM. I'm using GVIM 7.2 on Solaris machine, using dtterm (or xterm) for my terminal. For

Re: folding refused, set filetype=c helps, why?

2010-12-13 Thread Ben Fritz
On Dec 12, 5:32 am, fka...@googlemail.com fka...@googlemail.com wrote: Do your folds exist but refuse to close? Or are they gone entirely? I work without foldcolumn -- so next time it occurs I'll try to enable it on the fly and see if they are gone or just refuse to work. The

Re: Split long lines in a vim script

2010-12-13 Thread Tim Chase
On 12/13/2010 12:30 PM, Pablo Giménez wrote: I am writing a vim script and one of my if statements has several conditions, it makes the line for that statment really long, I want to split it in several lines using something like \ at the end, as you can do in o ther languages. But it doesn't

Re: Getting length of the the selection

2010-12-13 Thread Andres Perera
On Mon, Dec 13, 2010 at 8:18 AM, C K Kashyap ckkash...@gmail.com wrote: function! VSubLen()    let a = '    let b = '    let fn = line(a) == line(b)                \ ? col                \ : line    return eval(fn.(b).-.fn.(a) + 1) endfunc vnoremap Leaderl  sC-R=VSubLen()CR nnoremap

Re: LOCALE settings and regexp classes

2010-12-13 Thread Bram Moolenaar
Gergely wrote: I try to google for solution without success so I'm here. :) It seems vim regexpes absolutely ignore local collation settings, what is very unfortunate. OS linux, locale is hu_HU.utf8. For expl I would like to search for /[a-z]*/ and fail on néz. Am I miss some setting or

Re: Building gvim

2010-12-13 Thread Christian Brabandt
Hi Charles! On Mi, 08 Dez 2010, Charles Campbell wrote: Christian Brabandt wrote: You mean, like checking the $PATH, that you are actually running your self compiled version and not the distribution provided vim? Yes! Thanks, I included that information in the faq. regards, Christian --

Re: Illegal file name when reading a directory

2010-12-13 Thread Cesar Romani
On 13/12/2010 09:46 a.m., Charles Campbell wrote: Cesar Romani wrote: I'm using vim 7.3.81 on Win XP. When reading a directory using :e directory I get Illegal file name whenever directory ends in \ Many thanks in advance, The illegal file name message is issued by vim before netrw is

Re: Illegal file name when reading a directory

2010-12-13 Thread Cesar Romani
On 13/12/2010 09:46 a.m., Charles Campbell wrote: Cesar Romani wrote: I'm using vim 7.3.81 on Win XP. When reading a directory using :e directory I get Illegal file name whenever directory ends in \ Many thanks in advance, The illegal file name message is issued by vim before netrw is