Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie Bram Moolenaar
Benjamin Fritz wrote: A response to this thread: http://groups.google.com/group/vim_use/browse_thread/thread/8532e7236f113ab7/a88235ef57bd1b5c I have a prototype of what I think the final product should look like (see attached) but sticking it into the actual code is proving more

Re: Bug: E685, SEGV - a:000 garbage collected too early?

2008-12-17 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: 2008/12/16 Bram Moolenaar b...@moolenaar.net: Matt Wozniski wrote: function! ReturnArgs(...) return a:000 endfunction Seems to work fine? echo ReturnArgs(1, 2, 3) SEGV echo string(ReturnArgs(1, 2, 3)) function! MakeArgsDict(...)

Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie Antony Scriven
Hi 2008/12/17 David Fishburn dfishburn@gmail.com: On Wed, Dec 17, 2008 at 10:40 AM, Ben Fritz fritzophre...@gmail.com wrote: On Dec 17, 6:46 am, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: ... The other problem I saw with not using the fold column was the fact that URLs

netrw again changing format options

2008-12-17 Fir de Conversatie sc
charles-- again i find myself struggling to maintain my own formatoptions settings through uses of netrw netrw version: v134 formatoptions before using netrw: tcq formatoptions after using netrw: nroql2 method of netrw invocation: nmap F11 :call MyExplore()CR function! MyExplore()

Re: netrw again changing format options

2008-12-17 Fir de Conversatie sc
On Wednesday 17 December 2008 10:34 am, sc wrote: charles-- again i find myself struggling to maintain my own formatoptions settings through uses of netrw netrw version: v134 formatoptions before using netrw: tcq formatoptions after using netrw: nroql2 method of netrw

Re: netrw again changing format options

2008-12-17 Fir de Conversatie sc
On Wednesday 17 December 2008 12:04 pm, Charles Campbell wrote: sc wrote: On Wednesday 17 December 2008 10:34 am, sc wrote: charles-- again i find myself struggling to maintain my own formatoptions settings through uses of netrw netrw version: v134 formatoptions before

Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie Bram Moolenaar
Ben Schmidt wrote: I have a prototype of what I think the final product should look like (see attached) but sticking it into the actual code is proving more difficult than I originally thought. Hehe. That doesn't surprise me at all. That's why I was going to put it on my to do list,

Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie David Fishburn
On Wed, Dec 17, 2008 at 10:40 AM, Ben Fritz fritzophre...@gmail.com wrote: On Dec 17, 6:46 am, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: ... The other problem I saw with not using the fold column was the fact that URLs are automatically converted to links by the script. I envision

Re: netrw again changing format options

2008-12-17 Fir de Conversatie Charles Campbell
sc wrote: i tried upgrading to v135g, and i changed formatoptions to 'tco' in my .vimrc to mirror your attempt i used my 'vime' to start the session, selected a file, and fo was 'tco' -- fine -- i used MyExplore to find and add another buffer, fo was again 'tco' -- fine -- i used MyExplore

Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie Markus Heidelberg
Bram Moolenaar, 17.12.2008: I think we don't need the foldcolumn in HTML. One can click on the fold to open it, and on the text to close it again. That's a lot simpler and removes the not-so-nice-looking fold column. How do you solve the ambiguity problem when there are two folds

Re: netrw again changing format options

2008-12-17 Fir de Conversatie Charles Campbell
sc wrote: On Wednesday 17 December 2008 10:34 am, sc wrote: charles-- again i find myself struggling to maintain my own formatoptions settings through uses of netrw netrw version: v134 formatoptions before using netrw: tcq formatoptions after using netrw: nroql2 method of netrw

Re: Bug: E685, SEGV - a:000 garbage collected too early?

2008-12-17 Fir de Conversatie Bram Moolenaar
Tony Mechelynck wrote: On 17/12/08 13:34, Bram Moolenaar wrote: Dominique Pelle wrote: 2008/12/16 Bram Moolenaarb...@moolenaar.net: Matt Wozniski wrote: function! ReturnArgs(...) return a:000 endfunction Seems to work fine? echo ReturnArgs(1, 2, 3) SEGV

Re: Bug: E685, SEGV - a:000 garbage collected too early?

2008-12-17 Fir de Conversatie Bram Moolenaar
Matt Wozniski wrote: function! ReturnArgs(...) return a:000 endfunction Seems to work fine? echo ReturnArgs(1, 2, 3) SEGV echo string(ReturnArgs(1, 2, 3)) function! MakeArgsDict(...) return { 'args': a:000 } endfunction E685 Internal Error echo

Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie Ben Schmidt
I have a prototype of what I think the final product should look like (see attached) but sticking it into the actual code is proving more difficult than I originally thought. Hehe. That doesn't surprise me at all. That's why I was going to put it on my to do list, and not attempt it for a

Re: netrw again changing format options

2008-12-17 Fir de Conversatie Charles Campbell
OK, I see the problem now... Thank you for the script! Chip Campbell --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie Ben Schmidt
I think we don't need the foldcolumn in HTML. One can click on the fold to open it, and on the text to close it again. That's a lot simpler and removes the not-so-nice-looking fold column. How do you solve the ambiguity problem when there are two folds starting on the same line without the

Improved Pascal indent file

2008-12-17 Fir de Conversatie Keith Bowes
Here's a little patch that makes the indentation after if, else, and for statements far less quirky. Instead of: if a b then begin FlagOK end; for i := 0 to 9 do begin UpdateRecord(i) end; *next-statement* with my patch applied, it's: if a b then begin

Re: netrw again changing format options

2008-12-17 Fir de Conversatie sc
On Wednesday 17 December 2008 3:14 pm, Charles Campbell wrote: OK, I see the problem now... Thank you for the script! Chip Campbell my pleasure -- i take it the ^Ms survived intact let me know if there's anything more i can do to help... sc

Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie Markus Heidelberg
Ben Schmidt, 17.12.2008: I think we don't need the foldcolumn in HTML. One can click on the fold to open it, and on the text to close it again. That's a lot simpler and removes the not-so-nice-looking fold column. How do you solve the ambiguity problem when there are two folds

fold-delete-marker SEGV fix

2008-12-17 Fir de Conversatie Lech Lorens
Problem: The cursor position is not updated after deleting a fold based on markers. This results in an invalid memory reference in some scenarios. How to reproduce: In normal mode perform zRgg$zdaa while editing a file with the following contents: [[[ blah blah blah ]]] vim: fdm=marker

Re: 2html.vim support for dynamic folding

2008-12-17 Fir de Conversatie Tony Mechelynck
On 17/12/08 18:27, Markus Heidelberg wrote: [...] Without a foldcolumn, there is also no hint, whether some text belongs to an open fold or not. I think that's the decisive argument. Something prettier might be found though; maybe a squared plus or minus sign x229E; x229F; or circled x2295;