Re: Search in the C-] tag selection window

2012-12-26 Thread Tony Mechelynck
On 26/12/12 03:14, Woody Wu wrote: Hi, When I press C-] on a word, and if there word matches more than one tags, then vim will prompt with a list, I then choice a entry number in the list before it jumps to the desired destination. But, in some caess, a word can much many many tags, like I usua

Re: Search in the C-] tag selection window

2012-12-26 Thread Ümit Kablan
Hey, 26 Aralık 2012 Çarşamba tarihinde Woody Wu adlı kullanıcı şöyle yazdı: > Hi, > > When I press C-] on a word, and if there word matches more than one > tags, then vim will prompt with a list, I then choice a entry number in > the list before it jumps to the desired destination. > > But, in so

Re: How to use %03d on existing data

2012-12-26 Thread stosss
Thanks again Benjamin Haskell see follow up question below On Wed, Oct 17, 2012 at 10:47 PM, stosss wrote: > > On Wed, Oct 17, 2012 at 10:32 PM, Benjamin R. Haskell wrote: >> On Wed, 17 Oct 2012, stosss wrote: >> >>> Okay I have something that should be achievable but I can't figure it out. >>>

Re: increment existing numbers by 1

2012-12-26 Thread stosss
On Sun, Dec 23, 2012 at 10:09 PM, stosss wrote: >> function! Incr() >> let a = line('.') - line("'<") >> let c = virtcol("'<") >> if a > 0 >> execute 'normal! '.c.'|'.a."\" >> endif >> normal `< >> endfunction >> vnoremap :call Incr() I figured out how to use this. The next step wi

Re: How to use %03d on existing data

2012-12-26 Thread Christian Brabandt
Hi stosss! On Mi, 26 Dez 2012, stosss wrote: > What exactly is submatch(0) and submatch(1)? Obviously the 0 and 1 > mean something but I am not sure what. I understand what :help > submatch is doing but not totally sure how. Apparently that is where > the 0 and 1 come into play. How can I know wh

Re: Fold expression called too often

2012-12-26 Thread Christian Brabandt
Hi Bram! On Mi, 26 Dez 2012, Bram Moolenaar wrote: > > Christian Brabandt wrote: > > > On So, 23 Dez 2012, Marco wrote: > > > > > I tried to create a custom fold expression for a file type. The > > > folding works as desired, but it makes vim terribly slow. Commands > > > like “gwip” to format

Re: Capture output of command line completion in script

2012-12-26 Thread Christian Brabandt
Hi Bram! On Mi, 26 Dez 2012, Bram Moolenaar wrote: > > Christian Brabandt wrote: > > > On Di, 25 Dez 2012, Luca Pette wrote: > > > > > On Saturday, 26 March 2011 00:10:52 UTC+1, Rickard Lindberg wrote: > > > > Hi, > > > > > > > > > > > > > > > > If I type CTRL-D on the command line it will

Re: matchpairs and Unicode

2012-12-26 Thread Christian Brabandt
Hi Tony! On Mi, 26 Dez 2012, Tony Mechelynck wrote: > On 25/12/12 23:11, Christian Brabandt wrote: > > > >By the way, what kind of multibyte characters do you need? > > > Hm, let's see… Anything above 0x7F is 2 or more bytes in UTF-8… Thanks. If I have some spare time, I'll look into enhancing t

Re: Capture output of command line completion in script

2012-12-26 Thread ZyX
> Right. But shouldn't :redir also be useable to capture all available > completions? We can still think about adding another completion > vimscript function for returning all matches. There is already a workaround: https://github.com/paradigm/SkyBison/blob/eda32bb644fd0651679121dca11e41088dafc9

Re: Capture output of command line completion in script

2012-12-26 Thread Christian Brabandt
Hi ZyX! On Mi, 26 Dez 2012, ZyX wrote: > > Right. But shouldn't :redir also be useable to capture all available > > completions? We can still think about adding another completion > > vimscript function for returning all matches. > > There is already a workaround: > https://github.com/paradigm

Re: How to use %03d on existing data

2012-12-26 Thread stosss
Hi Christian On Wed, Dec 26, 2012 at 10:14 AM, Christian Brabandt wrote: > Hi stosss! > > On Mi, 26 Dez 2012, stosss wrote: > >> What exactly is submatch(0) and submatch(1)? Obviously the 0 and 1 >> mean something but I am not sure what. I understand what :help >> submatch is doing but not totall

Re: Capture output of command line completion in script

2012-12-26 Thread ZyX
> This just looks like another ugly workaround, not better then using > :redir I never said it is not a workaround. But it is still better then using :redir for the reasons explained in the last paragraph. I am arguing here that adding :redir support is not needed at all. Bram suggested to hav

Announcement : http://vim.begin-site.org/ - The Vim Beginners' Site

2012-12-26 Thread Shlomi Fish
Hi all, I would like to announce that today I started working on http://vim.begin-site.org/ - the Vim Beginners’ Site, which is a static site generated by the Jekyll offline CMS (which I learned today, after finding a post of someone who converted his site from XML+XSLT to it, as I considered usin

Small Commands

2012-12-26 Thread Sven Guckes
here's an overview to some of the commands i use in everyday editing. small commands, with only a few keystrokes. the text/plain version has been colorized with my color syntax (sven.vim) and turned into text/html using TOhtml. been showing these commands in berlin/vimberlin, at vienna/metalab, a

Re: Announcement : http://vim.begin-site.org/ - The Vim Beginners' Site

2012-12-26 Thread Marc Weber
great: we all can contribute you should mention why you have chosen to start a new site rather than using the existing wiki - and why you want to limit the "contributable page" to "beginners". I've had the idea to start something similar, store all the contents in a git repo all users can access

Re: Small Commands

2012-12-26 Thread Tim Chase
On 12/26/12 18:05, Sven Guckes wrote: > . http://www.guckes.net/vimberlin/small_commands.txt.html Gaaah...my eyes are bleeding after reading that HTML version :-) > url: http://www.guckes.net/vimberlin/small_commands.txt Noticed a couple small items: - you have "t(" instead of "tX" in yo

Re: Reload Buffer

2012-12-26 Thread Adrian Luff
I tweaked this a bit and you asked for feedback… " Clear then re-read options after editing silent! function! ReloadVimrc() au! set all& source $MYVIMRC endfunction autocmd! BufWritePost $MYVIMRC nested call ReloadVimrc

Re: Small Commands

2012-12-26 Thread Sven Guckes
* Tim Chase [2012-12-27 03:02]: > On 12/26/12 18:05, Sven Guckes wrote: > > . http://www.guckes.net/vimberlin/small_commands.txt.html > Gaaah...my eyes are bleeding after reading that HTML version :-) *grin* yeah, it's a little much as it contains many examples. > > url: http://www.guckes

Re: Fold expression called too often

2012-12-26 Thread Ben Fritz
On Sunday, December 23, 2012 12:09:21 PM UTC-6, Marco wrote: > On 2012–12–23 Ben Fritz wrote: > > > > > From :help fold-expr: > > > > > > > Try to avoid the "=", "a" and "s" return values, since Vim often has to > > > search > > > > backwards for a line for which the fold level is defined.

vim: change colorscheme for local buffer?

2012-12-26 Thread ping
currently it looks a global-wise change whenever I change :colorscheme, is it possible to do it only for a buffer? -- 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 information, visit http://www.vim.org/mailli

Re: vim: change colorscheme for local buffer?

2012-12-26 Thread Gary Johnson
On 2012-12-26, ping wrote: > currently it looks a global-wise change whenever I change > :colorscheme, is it possible to do it only for a buffer? No. Regards, Gary -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For

Re: Small Commands

2012-12-26 Thread stosss
On your web site you said you wanted feed back. On Wed, Dec 26, 2012 at 10:07 PM, Sven Guckes wrote: > * Tim Chase [2012-12-27 03:02]: >> On 12/26/12 18:05, Sven Guckes wrote: >> > . http://www.guckes.net/vimberlin/small_commands.txt.html >> Gaaah...my eyes are bleeding after reading that

Re: Search in the C-] tag selection window

2012-12-26 Thread Woody Wu
On Wed, Dec 26, 2012 at 09:34:36AM +0100, Tony Mechelynck wrote: > On 26/12/12 03:14, Woody Wu wrote: > >Hi, > > > >When I press C-] on a word, and if there word matches more than one > >tags, then vim will prompt with a list, I then choice a entry number in > >the list before it jumps to the desir

Re: Announcement : http://vim.begin-site.org/ - The Vim Beginners' Site

2012-12-26 Thread Shlomi Fish
Hi Mr. Weber, On Thu, 27 Dec 2012 00:42:32 +0100 Marc Weber wrote: > great: > we all can contribute > > you should mention why you have chosen to start a new site rather than > using the existing wiki - and why you want to limit the "contributable > page" to "beginners". Which "contributable p