Re: Substitution of metacharacters

2012-05-25 Thread Bob von Knobloch
On 25/05/12 04:18, Tony Mechelynck wrote: > If the menus don't do what you want, use the keyboard. Typing > > :%s/\n/\r\r > > Best regards, > Tony. Thanks Tony, I know how to use the keyboard to get what I want done, it just niggles when the gui doesn't work the same way, especially when

Re: Substitution of metacharacters

2012-05-25 Thread Bob von Knobloch
On 24/05/12 22:14, Christian Brabandt wrote: > Hi Bob! > > On Do, 24 Mai 2012, Bob von Knobloch wrote: > >> Hi, I've searched all over but can't find an answer. How can one perform >> commands like ':%s/\n/\r\r/g' (replacing newlines or tabs etc.) in the >> gui's 'find and replace' dialogue? > >

Re: Substitution of metacharacters

2012-05-25 Thread Tony Mechelynck
On 25/05/12 09:38, Bob von Knobloch wrote: On 25/05/12 04:18, Tony Mechelynck wrote: If the menus don't do what you want, use the keyboard. Typing :%s/\n/\r\r Best regards, Tony. Thanks Tony, I know how to use the keyboard to get what I want done, it just niggles when the gui does

Re: Substitution of metacharacters

2012-05-25 Thread Chris Jones
On Thu, May 24, 2012 at 10:53:27AM EDT, Tim Chase wrote: > On 05/24/12 08:34, Bob von Knobloch wrote: > > Hi, I've searched all over but can't find an answer. How can one > > perform commands like ':%s/\n/\r\r/g' (replacing newlines or tabs > > etc.) in the gui's 'find and replace' dialogue? > Pl

Period in global command

2012-05-25 Thread John Degen
I'm having trouble understanding why there is a period before "w" in the following command: :'a,'b g/^Error/ .w >> errors.txt Does it indicate the current directory? It's difficult searching the help for just a ".";) -- You received this message from the "vim_use" maillist. Do not top-post! T

Re: Substitution of metacharacters

2012-05-25 Thread Christian Brabandt
On Fri, May 25, 2012 11:32, Chris Jones wrote: > Search/replace behavior in the GUI is not only different than in the > console version but appears to lead to inconsistencies: try a search > ‘.*’ for instance and compare with ‘\s\s’. I think the search/replace dialog uses the \V atom to make the s

Re: Period in global command

2012-05-25 Thread Christian Brabandt
On Fri, May 25, 2012 11:40, John Degen wrote: > I'm having trouble understanding why there is a period before "w" in the > following command: > > :'a,'b g/^Error/ .w >> errors.txt > > Does it indicate the current directory? It's difficult searching the help > for just a ".";) It's a range. See :h

Re: Period in global command

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 05:40:59AM EDT, John Degen wrote: > I'm having trouble understanding why there is a period before "w" in > the following command: > > :'a,'b g/^Error/ .w >> errors.txt > > Does it indicate the current directory? It's difficult searching the > help for just a ".";) '.' is

Re: Substitution of metacharacters

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 05:47:35AM EDT, Christian Brabandt wrote: > On Fri, May 25, 2012 11:32, Chris Jones wrote: > > Search/replace behavior in the GUI is not only different than in the > > console version but appears to lead to inconsistencies: try a search > > ‘.*’ for instance and compare wit

Re: Howto print the file containing CJK characters?

2012-05-25 Thread BPJ
On 2012-05-23 05:01, Manifolds wrote: I find the MacVim can't print the CJK character correctly after pressing cmd+P. I don't know which file should be modified to work correctly. Can MacVim print the line number and change the font size ? My OS is lion 10.7.4 paps is your friend, more exac

Re: Substitution of metacharacters

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 06:00:46AM EDT, Chris Jones wrote: > Anyway, I don't use the GUI so it doesn't affect me but I was thinking > that there may be real world cases where possible inconsistencies (if > there are any) might lead to false positives/negatives.. making the > search functionality u

RE: Period in global command

2012-05-25 Thread John Beckett
John Degen wrote: > I'm having trouble understanding why there is a period before > "w" in the following command: > > :'a,'b g/^Error/ .w >> errors.txt Others have explained that '.' is a range specifying the current line. However, the reason it is needed is that the :w command assume a default ra

Re: Substitution of metacharacters

2012-05-25 Thread Ben Fritz
On Thursday, May 24, 2012 3:14:35 PM UTC-5, Christian Brabandt wrote: > > Looking at the dialog, it could possibly also get some more > possibilities, e.g. a confirm/undo button, perhaps even more. > Well, there's this in todo.txt: 7 More features in the find/replace dialog: - regexp on/

latex suite installation

2012-05-25 Thread qfwfq
I want to install the latex suite plugin and I'm forced not to use apt-get. So I downloaded the plugin source from http://vim-latex.sourceforge.net/index.php?subject=download http://vim-latex.sourceforge.net/index.php?subject=download then: make install then I set my .vimrc file in vim: help

Re: Substitution of metacharacters

2012-05-25 Thread Ben Fritz
On Friday, May 25, 2012 5:00:46 AM UTC-5, Chris Jones wrote: > On Fri, May 25, 2012 at 05:47:35AM EDT, Christian Brabandt wrote: > > On Fri, May 25, 2012 11:32, Chris Jones wrote: > > > > Search/replace behavior in the GUI is not only different than in the > > > console version but appears to lead

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: Substitution of metacharacters

2012-05-25 Thread Chris Jones
On Fri, May 25, 2012 at 10:10:49AM EDT, Ben Fritz wrote: > On Friday, May 25, 2012 5:00:46 AM UTC-5, Chris Jones wrote: [..] > > Do you mean that the code overrides this setting for the GUI > > search..? > Yes...kind of. The code for the GUI automatically inserts \V in the > search pattern, whic

Re: Substitution of metacharacters

2012-05-25 Thread Tim Chase
On 05/25/12 14:17, Chris Jones wrote: >> Yes...kind of. The code for the GUI automatically inserts \V in >> the search pattern, which is a flag for "very nomagic", which >> is not even settable via an option. The \V flag will override >> any 'magic' option setting. > > So it appears to be.. > > M

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

silent background execute program cause Vim screen text disappear.

2012-05-25 Thread stardiviner
I write a function like this in .vimrc: function! VimwikiWeblinkHandler(weblink) let browser = 'firefox' execute 'silent !"'.browser.'" ' . shellescape(a:weblink, 1) endfunction When I press "Enter" on the link. It will use browser firefox to open it. But the Vim screen's

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: silent background execute program cause Vim screen text disappear.

2012-05-25 Thread John Beckett
stardiviner wrote: > I write a function like this in .vimrc: > > function! VimwikiWeblinkHandler(weblink) > let browser = 'firefox' > execute 'silent !"'.browser.'" ' . shellescape(a:weblink, 1) > endfunction > > When I press "Enter" on the link. It will use browser firefox

Re: silent background execute program cause Vim screen text disappear.

2012-05-25 Thread John Little
On Saturday, May 26, 2012 1:47:05 PM UTC+12, miles christopher wrote: > I write a function like this ... Your function works for me if I invoke it like this: :call VimwikiWeblinkHandler(expand("")) So, how do you invoke the function? Regards, John -- You received this message from the "vim_us

[SOLVED] Re: silent background execute program cause Vim screen text disappear.

2012-05-25 Thread stardiviner
=> On [2012-05-25 22:26:49 -0700]: John Little Said: > On Saturday, May 26, 2012 1:47:05 PM UTC+12, miles christopher wrote: > > I write a function like this ... > Your function works for me if I invoke it like this: > :call VimwikiWeblinkHandler(expand("")) I just press "Enter" on link directly