Re: Folding on markdown headers

2012-06-04 Thread Eric Weir
On Jun 3, 2012, at 11:19 PM, Vlad Irnov wrote: > Hello Eric, > your timing is perfect, I've just uploaded new VOoM version. There is > no dedicated user group. You can post any questions and comments on > the following GitHub issues page: > https://github.com/vim-voom/vim-voom.github.com/issues .

Re: Folding on markdown headers

2012-06-03 Thread Vlad Irnov
On Jun 3, 10:27 am, Eric Weir wrote: > On May 27, 2012, at 2:45 PM, BPJ wrote: > > > On 2012-05-27 18:10, Eric Weir wrote: > >>> Try out Voom, which has a markdown mode > > >>> >   > > >>> >  I never thought I'd like a two-pane outliner (and

Re: Folding on markdown headers

2012-06-03 Thread Eric Weir
On May 27, 2012, at 11:59 AM, Eric Weir wrote: > On May 26, 2012, at 11:11 PM, Chris Jones wrote: > >> Talking of educational.. in reference to what you wrote elsewhere >> regarding Vim help, I thought I might mention that there are two >> distinct parts to Vim's help: the ‘user manual’ and the

Re: Folding on markdown headers

2012-06-03 Thread Eric Weir
On May 27, 2012, at 2:45 PM, BPJ wrote: > On 2012-05-27 18:10, Eric Weir wrote: >>> Try out Voom, which has a markdown mode >>> > >>> > >>> > >>> > I never thought I'd like a two-pane outliner (and one >>> > written in Python too -- no off

Re: Folding on markdown headers

2012-05-28 Thread Eric Weir
On May 27, 2012, at 7:45 PM, Chris Jones wrote: > Not all at once.. for me at least.. it's been a slow process., Thanks, Chris. I can go with what you describe, though I would probably go more slowly than you. Likewise with splitting the screen having the user manual in one window, trying th

Re: Folding on markdown headers

2012-05-27 Thread Chris Jones
On Sun, May 27, 2012 at 04:10:43PM EDT, Gary Johnson wrote: > On 2012-05-26, Chris Jones wrote: [..] > > so is it the BufNewFile or the BufRead event that causes the > > filetype to be set? Between the two, I would tend to think it is > > BufNewFile, not because the file is written to disk, but r

Re: Folding on markdown headers

2012-05-27 Thread Chris Jones
On Sun, May 27, 2012 at 11:59:36AM EDT, Eric Weir wrote: > Thanks, Chris. I was going to say I had no idea there was > a user-manual---until I took a look at the pdf version. In fact, I had > a hard copy of the book, but got rid of it because I couldn't > understand it. I went looking for it but f

Re: Folding on markdown headers

2012-05-27 Thread Gary Johnson
On 2012-05-26, Chris Jones wrote: > On Sat, May 26, 2012 at 03:50:24PM EDT, Gary Johnson wrote: > > On 2012-05-25, Chris Jones wrote: > > > > > There are things I find a little unclear regarding autocommands but > > > assuming the file extension is something like ‘*.mkdwn’ shouldn't it be > > > po

Re: Folding on markdown headers

2012-05-27 Thread BPJ
On 2012-05-27 19:46, Chris Lott wrote: The beauty of the Pandoc plugin (and the Pandoc converter) is that you can use it and still use only markdown or multimarkdown as your markup, AFAIK pandoc does not yet support multimarkdown table syntax, but making it do so has been up on the pandoc discu

Re: Folding on markdown headers

2012-05-27 Thread BPJ
On 2012-05-27 18:10, Eric Weir wrote: Try out Voom, which has a markdown mode > > > > I never thought I'd like a two-pane outliner (and one > written in Python too -- no offense but I came across > Perl first! :-) but I use it all the tim

Re: Folding on markdown headers

2012-05-27 Thread Chris Lott
On Sun, May 27, 2012 at 8:10 AM, Eric Weir wrote: > > > I'm intrigued by pandoc. My reason for going with straight markdown at the > moment is that I use Scrivener for larger writing projects and Scrivener > relies on multimarkdown, and extension of markdown, to convert Scrivener > documents to

Re: Folding on markdown headers

2012-05-27 Thread Eric Weir
On May 27, 2012, at 11:41 AM, BPJ wrote: > On 2012-05-22 15:14, Eric Weir wrote: >> Turns out I'm using Vlad Irnov's markdown folding >> script.https://gist.github.com/1035030 I'd completely forgotten about it, >> but it is what takes care of it for me. > > Try out Voom, which has a markdown

Re: Folding on markdown headers

2012-05-27 Thread Eric Weir
On May 26, 2012, at 11:11 PM, Chris Jones wrote: > Talking of educational.. in reference to what you wrote elsewhere > regarding Vim help, I thought I might mention that there are two > distinct parts to Vim's help: the ‘user manual’ and the ‘reference > manual’. > > Maybe the following illust

Re: Folding on markdown headers

2012-05-27 Thread BPJ
On 2012-05-22 15:14, Eric Weir wrote: Turns out I'm using Vlad Irnov's markdown folding script.https://gist.github.com/1035030 I'd completely forgotten about it, but it is what takes care of it for me. Try out Voom, which has a markdown mode

Re: Folding on markdown headers

2012-05-27 Thread Eric Weir
On May 26, 2012, at 8:44 PM, Eric Weir wrote: > >> On May 26, 2012, at 11:44 AM, sc wrote: >> >> the bad news is you've just implied you don't know how to use vim's >> extensive help system (or maybe you're intimidated by it?) >> >> :h :e >> >> would have answered that for you -- i recommend

Re: Folding on markdown headers

2012-05-27 Thread Eric Weir
On May 26, 2012, at 9:32 PM, Chris Jones wrote: > To _Eric W._ > > What happens when you do as Gary suggests: start Vim via a ‘vim > newfile.mkd’..? I have never started vim from terminal. [Or, I believe, as you guys say, from "console."] Gary had other suggestions, though, e.g., setting file

Re: Folding on markdown headers

2012-05-26 Thread Chris Jones
On Sat, May 26, 2012 at 08:38:28PM EDT, Eric Weir wrote: > > On May 26, 2012, at 6:32 PM, Chris Jones wrote: [..] > > As soon as I issued a ‘:w /tmp/sample.mdown’ to write the [No Name] > > buffer to disk , the markdown was highlighted. > Thanks, Chris. I did same with an ".mkd" extent and got

Re: Folding on markdown headers

2012-05-26 Thread Chris Jones
On Sat, May 26, 2012 at 03:50:24PM EDT, Gary Johnson wrote: > On 2012-05-25, Chris Jones wrote: > > > There are things I find a little unclear regarding autocommands but > > assuming the file extension is something like ‘*.mkdwn’ shouldn't it be > > possible to achieve this automatically when crea

Re: Folding on markdown headers

2012-05-26 Thread Eric Weir
On May 26, 2012, at 11:44 AM, sc wrote: >> On Sat, May 26, 2012 at 05:54:32AM -0400, Eric Weir wrote: >> >> [Is that a shortened version of the command you suggest?] > > no, :e is shorthand for :edit, which reloads the buffer and triggers > filetype detection along the way > > the bad news is

Re: Folding on markdown headers

2012-05-26 Thread Eric Weir
On May 26, 2012, at 6:32 PM, Chris Jones wrote: > >> On Sat, May 26, 2012 at 06:47:59AM EDT, Eric Weir wrote: >> >> I don't know when it became effective, but my understanding is that >> markdown support is built into Vim. > > I ran a quick test on a freshly-installed Vim 7.3 and highlighting

Re: Folding on markdown headers

2012-05-26 Thread Gary Johnson
On 2012-05-26, Gary Johnson wrote: > On 2012-05-25, Chris Jones wrote: > > > There are things I find a little unclear regarding autocommands but > > assuming the file extension is something like ‘*.mkdwn’ shouldn't it be > > possible to achieve this automatically when creating the file by placing

Re: Folding on markdown headers

2012-05-26 Thread Chris Jones
On Sat, May 26, 2012 at 06:47:59AM EDT, Eric Weir wrote: > On May 25, 2012, at 10:12 PM, Chris Jones wrote: [..] > I don't know when it became effective, but my understanding is that > markdown support is built into Vim. I ran a quick test on a freshly-installed Vim 7.3 and highlighting worked

Re: Folding on markdown headers

2012-05-26 Thread Chris Lott
On Sat, May 26, 2012 at 1:54 AM, Eric Weir wrote: > > Thanks, sc. Definitely does. I assumed the behavior was anomalous. Someone, I > think Chris, suggested earlier that a simple ":e" would do the trick, and it > seems to do so. [Is that a shortened version of the command you suggest?] > :e is

Re: Folding on markdown headers

2012-05-26 Thread Gary Johnson
On 2012-05-25, Chris Jones wrote: > There are things I find a little unclear regarding autocommands but > assuming the file extension is something like ‘*.mkdwn’ shouldn't it be > possible to achieve this automatically when creating the file by placing > something like this in a file named ~/.vim/

Re: Folding on markdown headers

2012-05-26 Thread sc
On Sat, May 26, 2012 at 05:54:32AM -0400, Eric Weir wrote: > On May 25, 2012, at 7:03 PM, sc wrote: > > when you start with an empty window, you have done nothing to > > tell vim what type of file you are going to create -- when you > > add text it still doesn't know -- if you write the file with

Re: Folding on markdown headers

2012-05-26 Thread Eric Weir
On May 25, 2012, at 10:12 PM, Chris Jones wrote: >> On Fri, May 25, 2012 at 06:35:28PM EDT, Eric Weir wrote: >> >> Thanks, Chris. It depends on the filetype. If it's markdown the result >> is "foldmethod=expr." Otherwise "foldmethod=manual." > > So it looks like the markdown script gets loaded

Re: Folding on markdown headers

2012-05-26 Thread Eric Weir
On May 25, 2012, at 9:41 PM, Chris Jones wrote: > There are things I find a little unclear regarding autocommands but > assuming the file extension is something like ‘*.mkdwn’ shouldn't it be > possible to achieve this automatically when creating the file by placing > something like this in a fil

Re: Folding on markdown headers

2012-05-26 Thread Eric Weir
On May 25, 2012, at 7:03 PM, sc wrote: > when you start with an empty window, you have done nothing to > tell vim what type of file you are going to create -- when you > add text it still doesn't know -- if you write the file with a > markdown extent, it COULD know if you would ask it to check >

Re: Folding on markdown headers

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 06:35:28PM EDT, Eric Weir wrote: > > On May 25, 2012, at 3:08 PM, Chris Jones wrote: [..] > Thanks, Chris. It depends on the filetype. If it's markdown the result > is "foldmethod=expr." Otherwise "foldmethod=manual." So it looks like the markdown script gets loaded when

Re: Folding on markdown headers

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 07:17:57PM EDT, Gary Johnson wrote: > On 2012-05-25, sc wrote: [..] > > when you start with an empty window, you have done nothing to tell > > vim what type of file you are going to create -- when you add text > > it still doesn't know -- if you write the file with a markd

Re: Folding on markdown headers

2012-05-25 Thread Gary Johnson
On 2012-05-25, sc wrote: > On Fri, May 25, 2012 at 06:35:28PM -0400, Eric Weir wrote: > > > On May 25, 2012, at 3:08 PM, Chris Jones wrote: > > > > On Tue, May 22, 2012 at 09:14:03AM EDT, Eric Weir wrote: > > > > > >>> On May 20, 2012, at 12:20 AM, Chris Jones wrote: > > > > What exactly do you

Re: Folding on markdown headers

2012-05-25 Thread sc
On Fri, May 25, 2012 at 06:35:28PM -0400, Eric Weir wrote: > On May 25, 2012, at 3:08 PM, Chris Jones wrote: > > On Tue, May 22, 2012 at 09:14:03AM EDT, Eric Weir wrote: > > > >>> On May 20, 2012, at 12:20 AM, Chris Jones wrote: > > What exactly do you mean by ‘when I create a file’..? How does

Re: Folding on markdown headers

2012-05-25 Thread Eric Weir
On May 25, 2012, at 3:08 PM, Chris Jones wrote: > On Tue, May 22, 2012 at 09:14:03AM EDT, Eric Weir wrote: > >>> On May 20, 2012, at 12:20 AM, Chris Jones wrote: >>> >>> What folding method are you using..? >> >> At first I didn't know how to answer. I didn't find anything related >> to fold m

Re: Folding on markdown headers

2012-05-25 Thread Chris Jones
On Tue, May 22, 2012 at 09:14:03AM EDT, Eric Weir wrote: > On May 20, 2012, at 12:20 AM, Chris Jones wrote: > > On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote: > >> When I create a file with markdown headers and save it, folding on > >> the headers does not work. > >> > >> When I creat

Re: Folding on markdown headers

2012-05-22 Thread Eric Weir
On May 20, 2012, at 12:20 AM, Chris Jones wrote: > On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote: > >> When I create a file with markdown headers and save it, folding on the >> headers does not work. >> >> When I create a file with markdown headers, save it, close the window, >> and o

Re: Folding on markdown headers

2012-05-19 Thread Chris Jones
On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote: > When I create a file with markdown headers and save it, folding on the > headers does not work. > > When I create a file with markdown headers, save it, close the window, > and open the file in a new window, folding on the headers works.

Re: Folding on markdown headers

2012-05-19 Thread Eric Weir
On May 19, 2012, at 5:49 PM, Chris Jones wrote: > Unlike word processors Vim does not do things behind your back unless > you ask him explicitly. > > But it's not so much about being a programmer.. You don't have to be > a mechanic to drive a car.. This is more like the difference between > driv

Re: Folding on markdown headers

2012-05-19 Thread Chris Jones
On Sat, May 19, 2012 at 04:18:51PM EDT, Eric Weir wrote: > > On May 19, 2012, at 1:44 PM, Chris Jones wrote: > > On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote: > >> When I create a file with markdown headers and save it, folding on > >> the headers does not work. > >> > >> When I crea

Re: Folding on markdown headers

2012-05-19 Thread Eric Weir
On May 19, 2012, at 1:44 PM, Chris Jones wrote: > On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote: > >> When I create a file with markdown headers and save it, folding on the >> headers does not work. >> >> When I create a file with markdown headers, save it, close the window, >> and op

Re: Folding on markdown headers

2012-05-19 Thread Chris Jones
On Sat, May 19, 2012 at 12:25:26PM EDT, Eric Weir wrote: > When I create a file with markdown headers and save it, folding on the > headers does not work. > > When I create a file with markdown headers, save it, close the window, > and open the file in a new window, folding on the headers works.

Re: Folding on Markdown headers

2011-07-24 Thread Vlad Irnov
On Jul 23, 12:56 pm, Eric Weir wrote: > I have folding on markdown headers set up courtesy of Vlad Irnov's markdown > folding script. Recently I've encountered something that strikes me as an > anomaly. I've reread most of the help on folding and am not finding anythin

Folding on Markdown headers

2011-07-23 Thread Eric Weir
I have folding on markdown headers set up courtesy of Vlad Irnov's markdown folding script. Recently I've encountered something that strikes me as an anomaly. I've reread most of the help on folding and am not finding anything that seems relevant. I have a file that has s