Re: override record

2015-11-10 Thread Tim Chase
On 2015-11-10 07:38, shawn wilson wrote: > How about this - is there an event that I can use to just redefine > what vim already made with the same information? I'm not sure what you mean by "an event". In my initial reply the :let @a=substitute(@a, 'foo', 'bar', 'g') was doing an in-place

Re: override record

2015-11-10 Thread shawn wilson
On Tue, Nov 10, 2015 at 11:05 AM, Ben Fritz wrote: > On Tuesday, November 10, 2015 at 9:44:33 AM UTC-6, shawn wilson wrote: >> On Tue, Nov 10, 2015 at 10:19 AM, Tim Chase wrote: >> > On 2015-11-10 07:38, shawn wilson wrote: >> >> How about this -

Re: override record

2015-11-10 Thread Ben Fritz
On Tuesday, November 10, 2015 at 9:44:33 AM UTC-6, shawn wilson wrote: > On Tue, Nov 10, 2015 at 10:19 AM, Tim Chase wrote: > > On 2015-11-10 07:38, shawn wilson wrote: > >> How about this - is there an event that I can use to just redefine > >> what vim already made with

Re: override record

2015-11-10 Thread shawn wilson
On Tue, Nov 10, 2015 at 10:19 AM, Tim Chase wrote: > On 2015-11-10 07:38, shawn wilson wrote: >> How about this - is there an event that I can use to just redefine >> what vim already made with the same information? > > I'm not sure what you mean by "an event". An

write a very basic syntax file

2015-11-10 Thread Jose Caballero
Hello, I am pretty sure this question has been already asked many times. I apologize if that is the case. I have been googling the topic for a while, and the problem is that I found too many different ways to [theoretically] do it, so I am not sure which one is the right one. So let's say I only

Re: write a very basic syntax file

2015-11-10 Thread Gary Johnson
On 2015-11-10, Jose Caballero wrote: > Hello, > > I am pretty sure this question has been already asked many times. I > apologize if that is the case. > I have been googling the topic for a while, and the problem is that I > found too many different ways to [theoretically] do it, so I am not >

Re: write a very basic syntax file

2015-11-10 Thread Jose Caballero
>> >> au BufRead,BufNewFile *.myfile setfiletype myfile > > It would be better, i.e., more likely to work as you expect, if you > instead put this line in ~/.vim/filetype.vim >> ~/.vim/plugin/syntax/myfile.vim, with content >> >> if exists("b:current_syntax") >> finish >>

Re: override record

2015-11-10 Thread Tim Ferguson
On 09/11/15 18:54, shawn wilson wrote: >> 2) assign to it with the desired changes: >> >> :let @a=substitute(@a, 'foo', 'bar', 'g') > Yeah, I've been pasting it and yanking it - just would be easier if i > could : (or q:) and edit. I haven't been able to find any plugins > to do this, so

Re: override record

2015-11-10 Thread shawn wilson
How about this - is there an event that I can use to just redefine what vim already made with the same information? On Nov 10, 2015 6:35 AM, "Tim Chase" wrote: > On 2015-11-10 09:12, Tim Ferguson wrote: > > : let @a = a > > > > and that puts the content on the edit line

Re: override record

2015-11-10 Thread Tim Chase
On 2015-11-10 09:12, Tim Ferguson wrote: > : let @a = a > > and that puts the content on the edit line for you to edit it > visually. You have to deal with escaping issues here (and remember to quote it). So it would be :let @a='a' :let @a="a" but then go back and escape any