Behavior of ; following t{char} search

2012-05-27 Thread Drew Neil
Using this as an example: one. two. three. four. five. Starting with the cursor at the beginning of the line, if I press: f. - cursor moves to '.' after 'one' ; - cursor moves to '.' after 'two' ; - cursor moves to '.' after 'three' etc. In Vim 7.2, this is what happens

Re: Behavior of ; following t{char} search

2012-05-27 Thread Christian Brabandt
Hi Drew! On So, 27 Mai 2012, Drew Neil wrote: > Using this as an example: > > one. two. three. four. five. > > Starting with the cursor at the beginning of the line, if I press: > > f. - cursor moves to '.' after 'one' > ; - cursor moves to '.' after 'two' > ; - cursor mov

Re: Behavior of ; following t{char} search

2012-05-27 Thread Drew Neil
On Sun, May 27, 2012 at 11:42 AM, Christian Brabandt wrote: > Hi Drew! > > On So, 27 Mai 2012, Drew Neil wrote: > > > Using this as an example: > > > > one. two. three. four. five. > > > > Starting with the cursor at the beginning of the line, if I press: > > > > f. - cursor moves to '.'

Re: Removing statusline between windows

2012-05-27 Thread Christian Brabandt
Hi Tony! On So, 27 Mai 2012, Tony Mechelynck wrote: > On 26/05/12 18:43, richard emberson wrote: > >After splitting a window ":sp" there is now > >an upper and lower window with a statusline between > >them. > >Is it possible to not have such a window-separating > >statusline; the text from both

running a batch of commands against one file.

2012-05-27 Thread john Culleton
Running a file of commands against a single file. I can create a file of several hundred commands all of the form :% s/foo/bar/ Of course foo and bar are different for each such command. Now I want to run all of those commands against file mainfile. How do I do this? Or is it easier to use awk?

Re: running a batch of commands against one file.

2012-05-27 Thread Tim Chase
On 05/27/12 08:31, john Culleton wrote: > Running a file of commands against a single file. > I can create a file of several hundred commands all of > the form > :% s/foo/bar/ > > Of course foo and bar are different for each such command. Now > I want to run all of those commands against file main

how to match all Chinese chars?

2012-05-27 Thread William Fugy
Hey, Question: how to match all Chinese chars? --- fenc=utf-16le enc=utf-16le termencoding=utf-16le :g/[\%u4e00-\%u9fff]/ this command doesn't work. However :g/\%u5728/ could match a single char '在'.. thanks in advance.

RE: running a batch of commands against one file.

2012-05-27 Thread Suresh Govindachar
On Sunday, May 27, 2012, Tim Chase wrote: >On 05/27/12 08:31, john Culleton wrote: > >> Running a file of commands against a single file. >> I can create a file of several hundred commands all of >> the form >> :% s/foo/bar/ >> >> Of course foo and bar are different for each suc

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-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 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 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 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: how to match all Chinese chars?

2012-05-27 Thread Chris Jones
On Sun, May 27, 2012 at 09:53:55AM EDT, William Fugy wrote: > Question: how to match all Chinese chars? > > --- > fenc=utf-16le > enc=utf-16le > termencoding=utf-16le > > > :g/[\%u4e00-\%u9fff]/ > this command doesn't work. >

Re: running a batch of commands against one file.

2012-05-27 Thread Paul
On Sunday, 27 May, 2012 at 14:31:43 BST, john Culleton wrote: Running a file of commands against a single file. I can create a file of several hundred commands all of the form :% s/foo/bar/ Of course foo and bar are different for each such command. Now I want to run all of those commands against

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 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 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 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

"Invert the number row keys" -- not in Command mode

2012-05-27 Thread Brian Schott
http://vim.wikia.com/wiki/Invert_the_number_row_keys_for_faster_typing I think I have followed the directions in the link above, but cannot see the desired result in MacVim for Lion. The change works in vi Insert mode, but does not work in vi Command mode which is the place I use it most for movi

Re: "Invert the number row keys" -- not in Command mode

2012-05-27 Thread Paul
On Sunday, 27 May, 2012 at 16:29:12 BST, Brian Schott wrote: http://vim.wikia.com/wiki/Invert_the_number_row_keys_for_faster_typing I think I have followed the directions in the link above, but cannot see the desired result in MacVim for Lion. The change works in vi Insert mode, but does not wo

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: how to match all Chinese chars?

2012-05-27 Thread Xell Liu
In fact, if your aim is not so strict, i.e. if you only need to exclude ASCIIs, you could use [^\x00-\xff] . Hope it helps. On Mon, May 28, 2012 at 12:39 AM, Chris Jones wrote: > On Sun, May 27, 2012 at 09:53:55AM EDT, William Fugy wrote: > >> Question: how to match all Chinese chars? >> >> -

Re: how to match all Chinese chars?

2012-05-27 Thread William Fugy
On Mon, May 28, 2012 at 10:15 AM, Xell Liu wrote: > In fact, if your aim is not so strict, i.e. if you only need to > exclude ASCIIs, you could use [^\x00-\xff] . Hope it helps. > > On Mon, May 28, 2012 at 12:39 AM, Chris Jones wrote: > > On Sun, May 27, 2012 at 09:53:55AM EDT, William Fugy wrot

Re: how to match all Chinese chars?

2012-05-27 Thread William Fugy
> > In fact, if your aim is not so strict, i.e. if you only need to > exclude ASCIIs, you could use [^\x00-\xff] . Hope it helps. > Thank you. i knew this rough method to work around. Nevertheless, in some case this causes problems. And so i have to find out whether a proper way to solve it. On M

Re: Not waiting on getchar() in the other window

2012-05-27 Thread Ben Fritz
On Saturday, May 26, 2012 12:01:29 PM UTC-5, Richard wrote: > You are in console (non-gui) Vim and have split the > window (:sp). In the upper window you launch a script > that calls getchar(). > What I'd like to be able to do is while the upper > window script is waiting on getchar(), switch to th

Re: "Invert the number row keys" -- not in Command mode

2012-05-27 Thread Ben Fritz
On Sunday, May 27, 2012 10:29:12 AM UTC-5, zerowords wrote: > http://vim.wikia.com/wiki/Invert_the_number_row_keys_for_faster_typing > > I think I have followed the directions in the link above, but cannot > see the desired result in MacVim for Lion. > > The change works in vi Insert mode, but do

Re: Make Specific Space Characters Visible

2012-05-27 Thread Ben Fritz
On Saturday, May 26, 2012 6:14:33 AM UTC-5, Bastien Dejean wrote: > Hi, > > I'd like to visualize specific space characters through the *conceal* > mechanism. > > Here's my first (failed) attempt: > > syntax match ThreePerEmSpace " " conceal cchar=⅓ > syntax match FourPerEmSpace " " conc

Re: how to match all Chinese chars?

2012-05-27 Thread Chris Jones
On Sun, May 27, 2012 at 09:25:30PM EDT, William Fugy wrote: > On Mon, May 28, 2012 at 10:15 AM, Xell Liu wrote: [..] > > > Unless I missed something, and if you absolutely need to do this, > > > you could bypass the limitation by breaking up the range like so: > > > >> > | :g/[一-仿伀-俿倀-儀 ... 鼀-龻

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