Re: How can a highlight group combine custom attributes and a link?

2014-06-12 Thread Bram Moolenaar
Christian wrote: > On Mo, 09 Jun 2014, Bram Moolenaar wrote: > > > Yes, it appears the "if settings already exist" only checks for term > > settings, not gui settings. This is inconsistant. I suppose we can > > change that without causing trouble for existing setups. > > Here is a patch. Tha

Re: Sorting a List of Numbers

2014-06-12 Thread Bram Moolenaar
Christian wrote: > On Di, 10 Jun 2014, Павлов Николай Александрович wrote: > > > How would you sort a heterogeneous list otherwise? > > Who says, lists are always heterogeneous? I think one could try to sort > numerical, if all list items are of type number or float, else keep the > existing

Re: Sorting a List of Numbers

2014-06-12 Thread Tim Chase
On 2014-06-12 12:51, Bram Moolenaar wrote: > Obviously we would need to add another sort function, or a special > argument to the existing sort function, to have it convert > everything to a number and sort that. Text and other non-numbers > would be used as zero, just slightly better than reporti

Re: vimdiff noob question

2014-06-12 Thread Benjamin Fritz
On Wed, Jun 11, 2014 at 11:04 PM, wolfv wrote: > On Wednesday, June 11, 2014 10:02:12 PM UTC-6, wolfv wrote: >> On Wednesday, June 11, 2014 9:24:29 PM UTC-6, Ben Fritz wrote: >> > On Wednesday, June 11, 2014 5:29:07 PM UTC-5, wolfv wrote: >> > > > Can you use vimdiff, from C:\Users\wolf\Documents

Mapping only in specific buffer

2014-06-12 Thread Ni Va
Hi, I would like to map ]c diff jump only in a vim buffer. I have done this for the moment but would like to make conditional test on &diff var : map : norm ]c Thank you -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you

Re: Mapping only in specific buffer

2014-06-12 Thread Ni Va
In fact I would like to get two specific meaning on the same F2 key as I am reading a diff buffer or a normal buffer. Thank you very much On Thursday, June 12, 2014 5:55:53 PM UTC+2, Ni Va wrote: > Hi, > > > I would like to map ]c diff jump only in a vim buffer. > > I have done this for the m

Re: Mapping only in specific buffer

2014-06-12 Thread Gary Johnson
On 2014-06-12, Ni Va wrote: > Hi, > > > I would like to map ]c diff jump only in a vim buffer. > > I have done this for the moment but would like to make conditional > test on &diff var : > map : norm ]c If you're mapping a key to be pressed in normal mode, you don't need to go into ex mo

Re: Mapping only in specific buffer

2014-06-12 Thread Павлов Николай Александрович
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Why are you using :norm here? Your mapping is incorrect: 1. You do not need :norm. Just using "]c" should be enough in this circumstances. 2. You do not need :map without n. Your mapping is not going to work in visual mode (as long as you use :nor

Re: Mapping only in specific buffer

2014-06-12 Thread Gary Johnson
On 2014-06-12, Ni Va wrote: > On Thursday, June 12, 2014 5:55:53 PM UTC+2, Ni Va wrote: > > I would like to map ]c diff jump only in a vim buffer. > > > > I have done this for the moment but would like to make > > conditional test on &diff var : > > map : norm ]c > In fact I would like to

Re: Mapping only in specific buffer

2014-06-12 Thread Ni Va
Hi Gary, In fact I have in mind the mapping known on Windows OS used to search forward or backward in registry or in visual studio environnment. I would like to used only this keystroke to search previous or next occurence: 1/ in a diff buffer : a difference 2/ in a normal buffer : the last sea

Re: indent versus previous line

2014-06-12 Thread Ni Va
Ok thank you and sorry for my english. On Tuesday, June 10, 2014 7:38:18 PM UTC+2, Tim Chase wrote: > On 2014-06-10 07:13, Ben Fritz wrote: > > > > It works a little using \s out \\s because I have magic card I > > > > think: > > > > > > > > :g/^\s/exec 'sil! +,/^END_OF_BLOCK/'.repeat('>', >

Re: Ability to undo changes from outside Vim

2014-06-12 Thread Eric Christopherson
Ah, thanks; that'd be it. undoreload is set by default to 1, and my file is now over that many lines. I set it to -1 and that made it work. On Wed, Jun 11, 2014 at 10:27 PM, Ben Fritz wrote: > On Wednesday, June 11, 2014 5:36:31 PM UTC-5, Eric Christopherson wrote: > > In my vimrc I have >

Re: vimdiff noob question

2014-06-12 Thread wolfv
On Thursday, June 12, 2014 8:43:13 AM UTC-6, Ben Fritz wrote: > On Wed, Jun 11, 2014 at 11:04 PM, wolfv wrote: > > > On Wednesday, June 11, 2014 10:02:12 PM UTC-6, wolfv wrote: > > >> On Wednesday, June 11, 2014 9:24:29 PM UTC-6, Ben Fritz wrote: > > >> > On Wednesday, June 11, 2014 5:29:07 PM U

Re: Vim and Evil compared. Documentation

2014-06-12 Thread Eric Christopherson
On Wed, Jun 11, 2014 at 3:13 PM, Rosangela Medeiros da Silva < rosangelame...@gmail.com> wrote: > Evil automatic documentation is quite good. However, Vim documentation is > very complete, with examples, and translations to many languages, like > French and Esperanto. It is trivial to write a lisp