Re: Is it possible to "hide" some content with Vim?

2010-07-10 Thread Ben Fritz
On Jul 9, 7:43 am, Tony Mechelynck wrote: > > In Vim 7.3 (but not 7.2 except by patching the C code) I think you could > achieve something by combining the folding feature with the new conceal > feature. > Does conceal work within the fold text? I didn't think this was the case. I'm not whether

Re: Can vimscript be multithreaded?

2010-07-10 Thread Ben Fritz
On Jul 9, 1:31 pm, Marc Weber wrote: > > If you're on linux you can use sh background processes: > > ! ctags -R . & > or system ('ctags -R . &') > On Windows, you can use the :!start command. See the examples here: http://vim.wikia.com/wiki/Execute_external_programs_asynchronously_under_Window

Re: problem loading colorscheme -- doesn't work from .vimrc

2010-07-10 Thread Tony Mechelynck
On 10/07/10 23:19, Danning Ai wrote: Aha! I had the following line: let colors_name = 'danningcolors' instead of 'dan-xterm'. I didn't realize that the colors_name was significant, but changing it did the trick. Making the colors_name the same as the file name made it work as expected. Stra

Re: Fwd: Re: synstack() in insert mode

2010-07-10 Thread Bram Moolenaar
Benjamin R. Haskell wrote: > On Fri, 9 Jul 2010, Bram Moolenaar wrote: > > > Matt Wozniski wrote: > > > > > On Thu, Jul 8, 2010 at 5:55 PM, Benjamin R. Haskell wrote: > > > > On Thu, 8 Jul 2010, Bram Moolenaar wrote: > > > >> I'll make it so that synstack() works when on the character just > >

Re: problem loading colorscheme -- doesn't work from .vimrc

2010-07-10 Thread Danning Ai
Aha! I had the following line: let colors_name = 'danningcolors' instead of 'dan-xterm'. I didn't realize that the colors_name was significant, but changing it did the trick. Making the colors_name the same as the file name made it work as expected. Strange that doing it 'by hand' didn't have

Re: problem loading colorscheme -- doesn't work from .vimrc

2010-07-10 Thread Tony Mechelynck
On 10/07/10 21:43, Danning Ai wrote: I have a colorscheme that I've set up, named dan-xterm, and located in ~/.vim/colors/dan-xterm.vim. It's not much different from some of the standard color schemes (I started with evening) but clearly I made some mistake. I can't figure out what it is, howe

Re: map :%s/ to :%s/\v

2010-07-10 Thread Martin Trautmann
On 10-07-10 21:39, Tony Mechelynck wrote: On 10/07/10 21:21, Martin Trautmann wrote: On 10-07-10 14:58, ZyX wrote: Ответ на сообщение <>, присланное в 15:12:24 10 июля 2010, Суббота, отправитель Martin Trautmann: Are you sure that you input :%s/ fast enough? What do you mean by fast enough?

Re: Fwd: Re: synstack() in insert mode

2010-07-10 Thread Benjamin R. Haskell
On Fri, 9 Jul 2010, Bram Moolenaar wrote: > Matt Wozniski wrote: > > > On Thu, Jul 8, 2010 at 5:55 PM, Benjamin R. Haskell wrote: > > > On Thu, 8 Jul 2010, Bram Moolenaar wrote: > > >> I'll make it so that synstack() works when on the character just > > >> after the end of the line. It was alre

problem loading colorscheme -- doesn't work from .vimrc

2010-07-10 Thread Danning Ai
I have a colorscheme that I've set up, named dan-xterm, and located in ~/.vim/colors/dan-xterm.vim. It's not much different from some of the standard color schemes (I started with evening) but clearly I made some mistake. I can't figure out what it is, however, but here's the symptom. If I load

Re: map :%s/ to :%s/\v

2010-07-10 Thread Tony Mechelynck
On 10/07/10 21:21, Martin Trautmann wrote: On 10-07-10 14:58, ZyX wrote: Ответ на сообщение <>, присланное в 15:12:24 10 июля 2010, Суббота, отправитель Martin Trautmann: noremap :%s/ :%s/\v works as expected. Are you sure that you input :%s/ fast enough? It does? I do not need the colon? Wh

Re: map :%s/ to :%s/\v

2010-07-10 Thread Martin Trautmann
On 10-07-10 14:58, ZyX wrote: Ответ на сообщение <>, присланное в 15:12:24 10 июля 2010, Суббота, отправитель Martin Trautmann: noremap :%s/ :%s/\v works as expected. Are you sure that you input :%s/ fast enough? It does? I do not need the colon? What do you mean by fast enough? I do not

Re: map :%s/ to :%s/\v

2010-07-10 Thread ZyX
Ответ на сообщение «Re: map :%s/ to :%s/\v», присланное в 15:12:24 10 июля 2010, Суббота, отправитель Martin Trautmann: noremap :%s/ :%s/\v works as expected. Are you sure that you input :%s/ fast enough? Maybe defining S command is better? command -nargs=1 -range S execute ",s".[0].'\v

Re: moving the cursor problem (newbie)

2010-07-10 Thread OxFAN
Hi, here's mine :imap gkl:start :imap :imap gjl:start :imap :map gj :mapgj :map gk :map gk and there's a problem,if 'gk' failed,vim would not reenter Insert mode.. any idea? 2010/7/10 Tony Mechelynck > On 10/07/10 04:40, autodidakto wrote: > >> Turn line numbers on and off (:s

Re: Can vimscript be multithreaded?

2010-07-10 Thread Marc Weber
> Create a file to represent a lock while the process of tag creation is > running, and delete it when the process finishes, and have the > 'tag-consumer' and the 'tag-generator' commands to check for its > existence and act accordingly. What should be optimized? Having accurate tag files or pow

Re: Conceal Greek letters in TeX

2010-07-10 Thread Benjamin R. Haskell
On Sat, 10 Jul 2010, björn wrote: > On Jul 10, 6:05 pm, "Benjamin R. Haskell" wrote: > > On Sat, 10 Jul 2010, björn wrote: > > > > > ...but what's with the syntax highligting?  Greek letters are > > > highlighted with a medium dark grey background and light grey > > > foreground making the letters

Re: Conceal Greek letters in TeX

2010-07-10 Thread björn
On Jul 10, 6:05 pm, "Benjamin R. Haskell" wrote: > On Sat, 10 Jul 2010, björn wrote: > > > ...but what's with the syntax highligting?  Greek letters are > > highlighted with a medium dark grey background and light grey > > foreground making the letters almost impossible to see.  I tried > > digging

Re: Can vimscript be multithreaded?

2010-07-10 Thread Javier Rojas
On Sat, Jul 10, 2010 at 01:07:52PM +0800, H Xu wrote: > On 07/10/2010 02:31 AM, Marc Weber wrote: > > Excerpts from H Xu's message of Fri Jul 09 20:22:07 +0200 2010: > >> I want to generate tags by using ctags automatically after I save the > >> file, and I want tags to be generated in another thre

Re: Conceal Greek letters in TeX

2010-07-10 Thread Benjamin R. Haskell
On Sat, 10 Jul 2010, björn wrote: > Hi, > > I am trying out the +conceal feature in the 7.3 branch with TeX and > noticed that ":set conc=1" will turn Greek letter backslash commands > into actual Greek letters. Nice! I was confused for a minute, because this doesn't seem to have trickled do

Conceal Greek letters in TeX

2010-07-10 Thread björn
Hi, I am trying out the +conceal feature in the 7.3 branch with TeX and noticed that ":set conc=1" will turn Greek letter backslash commands into actual Greek letters. Nice! ...but what's with the syntax highligting? Greek letters are highlighted with a medium dark grey background and light gre

Re: Quickfix stack count

2010-07-10 Thread Tony Mechelynck
On 10/07/10 11:12, Phui Hock wrote: Hi, Is there a way to get the number of lists in the quickfix stack for a buffer? I could first do :cnew 99 and count backward, but that's kind of crude. :h quickfix-error-lists "actually the ten last used lists are remembered". :colder 9 would be

Quickfix stack count

2010-07-10 Thread Phui Hock
Hi, Is there a way to get the number of lists in the quickfix stack for a buffer? I could first do :cnew 99 and count backward, but that's kind of crude. -- 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 informa

Re: map :%s/ to :%s/\v

2010-07-10 Thread Martin Trautmann
On 10-07-10 10:38, Tony Mechelynck wrote: On 10/07/10 06:52, Martin Trautmann wrote: On 10-07-09 23:01, Tony Mechelynck wrote: On 09/07/10 21:52, Ben Fritz wrote: On Jul 8, 12:48 am, Martin Trautmann wrote: I know that :nnoremap / /\v does work, but I do not really understand the map variat

Re: moving the cursor problem (newbie)

2010-07-10 Thread Tony Mechelynck
On 10/07/10 04:40, autodidakto wrote: Turn line numbers on and off (:set number, :set nonumber) and observe that wrapped lines are on the same number. Line wrapping (:set wrap, :set nowrap) are for your convenience, but to vim, it's on all one line. This is confusing when you want to go "down one

Re: map :%s/ to :%s/\v

2010-07-10 Thread Tony Mechelynck
On 10/07/10 06:52, Martin Trautmann wrote: On 10-07-09 23:01, Tony Mechelynck wrote: On 09/07/10 21:52, Ben Fritz wrote: On Jul 8, 12:48 am, Martin Trautmann wrote: how do I map s/ to s/\v in order to use "very magic" regular expression handling as a default? I know that :nnoremap / /\v doe

Re: moving the cursor problem (newbie)

2010-07-10 Thread autodidakto
Turn line numbers on and off (:set number, :set nonumber) and observe that wrapped lines are on the same number. Line wrapping (:set wrap, :set nowrap) are for your convenience, but to vim, it's on all one line. This is confusing when you want to go "down one line". j and k will go up and down one