Re: CTRL-A CTRL-X backwards

2012-12-25 Thread Tony Mechelynck
On 24/12/12 02:55, stosss wrote: *CTRL-A* CTRL-A Add [count] to the number or alphabetic character at or after the cursor. {not in Vi}

Re: CTRL-A CTRL-X backwards

2012-12-25 Thread Franz Greiling
Hey, On 25.12.2012, at 12:10, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 24/12/12 02:55, stosss wrote: *CTRL-A* CTRL-A Add [count] to the number or alphabetic character at or after

Re: Capture output of command line completion in script

2012-12-25 Thread Luca Pette
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 show a list of possible matches (:e fooCTRL-D). Is it possible to capture this result list in a vim script? I was searching for this too. Any new suggestion? It

Regex for matching the section in vim help files

2012-12-25 Thread Marco
Hi, what would be a regular expression to match the section in vim help files? == 3. Simple changes*simple-change* ^^

Re: Regex for matching the section in vim help files

2012-12-25 Thread Christian Brabandt
Hi Marco! On Di, 25 Dez 2012, Marco wrote: what would be a regular expression to match the section in vim help files? == 3. Simple changes*simple-change* ^^

Re: (g)vimdiff not working (?)

2012-12-25 Thread Christian Brabandt
Hi dadkind! On Mo, 24 Dez 2012, dadkind wrote: Hello All, On one of my computers (only one) diff doesn't seem to be working. (This is a 7.3.46 installation on a Windows 7 x64 machine). Usually, I select two files in Windows Explorer and right-click|Diff with Vim and things work as they

Re: Regex for matching the section in vim help files

2012-12-25 Thread Marco
On 2012–12–25 Christian Brabandt wrote: Why do you need this? I have personal note files which use the vim help file mechanism for hyperlinking and jumping between different documents and sections. When I write a new section I run a function afterwards which updates the table of content at the

Re: Regex for matching the section in vim help files

2012-12-25 Thread Christian Brabandt
Hi Marco! On Di, 25 Dez 2012, Marco wrote: On 2012–12–25 Christian Brabandt wrote: Why do you need this? I have personal note files which use the vim help file mechanism for hyperlinking and jumping between different documents and sections. When I write a new section I run a function

Re: Regex for matching the section in vim help files

2012-12-25 Thread Marco
On 2012–12–25 Christian Brabandt wrote: Is there anything built in I could use instead? Can't you search for the tag Which tag? I want to create a table of contents for *all* sections. and extract the info from this line or the line following it? That's what my question is about. Finding

Re: VIM Python interface fails with segfault on Windows

2012-12-25 Thread David Halter
2012/12/20 David Fishburn dfishburn@gmail.com Can you supply your output from :ver. Sure! Here's `:ver` of gVim: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 16 2010 10:31:31) MS-Windows 64-bit GUI version with OLE support Compiled by geo...@reilly.org Huge version with GUI. Features

Re: Capture output of command line completion in script

2012-12-25 Thread Christian Brabandt
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 show a list of possible matches (:e fooCTRL-D). Is it possible to capture this result list in a vim script? I

Re: Regex for matching the section in vim help files

2012-12-25 Thread Christian Brabandt
Hi Marco! On Di, 25 Dez 2012, Marco wrote: That's what my question is about. Finding the section lines is easy. But (at least for me) it's hard to extract the title. My current regex for section without numbering is as follows: ^\(\s*\\w\+\)\+\ze\s\+\*\\w\+-\w\+-\w\+\*$ (yes, my jump

Re: matchpairs and Unicode

2012-12-25 Thread Christian Brabandt
Hi KamilS! On So, 09 Dez 2012, KamilS wrote: Thank you for the answers. As for being able to write the appropriate patch, well, I'm afraid I'm not. I wish I could, but no. As for matchit, thanks for the tip, but I don't seem to be able to find the option to highlight the matched pairs

Re: Regex for matching the section in vim help files

2012-12-25 Thread Marco
On 2012–12–25 Christian Brabandt wrote: I am not sure, what you problem is, The problem is to find a regular expression which matches the section titles. The section title is the part I marked with caret symbols in my original post. The regex I used to use turned out to be insufficient when it

Re: matchpairs and Unicode

2012-12-25 Thread KamilS
By the way, what kind of multibyte characters do you need? The pair I need most is ‘’ (U+2018 and U+2019). Other quotes, such as “” would make a nice addition but I won't be turning my nose up should this prove impossible. -- You received this message from the vim_use maillist. Do not

Re: matchpairs and Unicode

2012-12-25 Thread Tony Mechelynck
On 25/12/12 23:11, Christian Brabandt wrote: By the way, what kind of multibyte characters do you need? regards, Christian Hm, let's see… Anything above 0x7F is 2 or more bytes in UTF-8… For Latin, Cyrillic, etc.: « (U+00AB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK) and » (U+00BB

Re: matchpairs and Unicode

2012-12-25 Thread KamilS
‘ (U+2018 LEFT SINGLE QUOTATION MARK) and either ’ (U+2019 RIGHT SINGLE Depending on the language, two characters on each of the above lines may be chosen, and in either order. I'm afraid my Vim says: E474: Invalid argument: matchpairs+=‘:’ `:' and other ASCII combinations work fine. It

Re: matchpairs and Unicode

2012-12-25 Thread Tony Mechelynck
On 26/12/12 00:50, KamilS wrote: ‘ (U+2018 LEFT SINGLE QUOTATION MARK) and either ’ (U+2019 RIGHT SINGLE Depending on the language, two characters on each of the above lines may be chosen, and in either order. I'm afraid my Vim says: E474: Invalid argument: matchpairs+=‘:’ `:' and other

Re: Capture output of command line completion in script

2012-12-25 Thread Bram Moolenaar
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 show a list of possible matches (:e fooCTRL-D). Is it possible to

Re: Fold expression called too often

2012-12-25 Thread Bram Moolenaar
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 the current paragraph take more than ten seconds on a modern machine.

Re: Regex for matching the section in vim help files

2012-12-25 Thread Marco
On 2012–12–25 Marco wrote: The problem is to find a regular expression which matches the section titles. The following regex seems to do the job: \v^.{-}\s\zs(.[^\ ]+)* Marco signature.asc Description: Digital signature

Search in the C-] tag selection window

2012-12-25 Thread Woody Wu
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 usually met in Linux kernel code, then