Re: How to pipe colored output to vim and show it correctly?

2013-11-23 Thread Nikolay Pavlov
On Nov 23, 2013 9:07 PM, "Peng Yu" wrote: > > Hi > > I have the following alias which works fine when uncolored input. > > ~/linux/test/gnu/ack-grep/--color$ alias less > alias less='vim -R -' > > ~/linux/test/gnu/ack-grep/--color$ cat.sh *.txt > ==> test1.txt <== > ABC > > ==> test2.txt <== > AXY

Re: How to pipe colored output to vim and show it correctly?

2013-11-23 Thread Nikolay Pavlov
On Nov 23, 2013 9:43 PM, "Peng Yu" wrote: > > Something like 'grep --color' (although it produces colored output) > won't cause the problem. You have to use ack. Did you use ack? It will. Just make sure you use 'grep --color=always'. By default 'grep --color=auto' is used which will not cause pro

Re: How to pipe colored output to vim and show it correctly?

2013-11-23 Thread Gabriele Lana
On Nov 23, 2013, at 6:43 PM, Peng Yu wrote: > Something like 'grep --color' (although it produces colored output) > won't cause the problem. You have to use ack. Did you use ack? You are right sorry, now I'm able to confirm that alias less='sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"

Re: How to pipe colored output to vim and show it correctly?

2013-11-23 Thread Peng Yu
Something like 'grep --color' (although it produces colored output) won't cause the problem. You have to use ack. Did you use ack? ~$ ack --version ack 2.02 Running under Perl 5.14.2 at /usr/local/ActivePerl-5.14/bin/perl Copyright 2005-2013 Andy Lester. This program is free software. You may m

Re: How to pipe colored output to vim and show it correctly?

2013-11-23 Thread Gabriele Lana
On Nov 23, 2013, at 6:07 PM, Peng Yu wrote: > Hi > > I have the following alias which works fine when uncolored input. > > ~/linux/test/gnu/ack-grep/--color$ alias less > alias less='vim -R -' > > […] > > 1 ^[[1;32mtest1.txt^[[0m:^[[1;33m1^[[0m:^[[30;43mA^[[0mBC^[[0m^[[K > 2 ^[[1;32mtest2.

How to pipe colored output to vim and show it correctly?

2013-11-23 Thread Peng Yu
Hi I have the following alias which works fine when uncolored input. ~/linux/test/gnu/ack-grep/--color$ alias less alias less='vim -R -' ~/linux/test/gnu/ack-grep/--color$ cat.sh *.txt ==> test1.txt <== ABC ==> test2.txt <== AXY ~/linux/test/gnu/ack-grep/--color$ printf "%s\n" *.txt|ack --color

Re: Completion support for known language tokens

2013-11-23 Thread Nikolay Pavlov
On Nov 23, 2013 2:45 PM, "Gabriele Lana" wrote: > > On Nov 22, 2013, at 7:58 PM, Nikolay Pavlov wrote: > > > Dictionary will require tweaking 'isk' to include colon, will not it? I would be against it as this makes vim and my notion of what the "word" is be different. > > Yes, you are right but I

Re: Completion support for known language tokens

2013-11-23 Thread Gabriele Lana
On Nov 22, 2013, at 7:58 PM, Nikolay Pavlov wrote: > Dictionary will require tweaking 'isk' to include colon, will not it? I would > be against it as this makes vim and my notion of what the "word" is be > different. Yes, you are right but I would do that only for the local (markdown) buffer s

Re: Tabs vs buffers

2013-11-23 Thread Nikolay Pavlov
On Nov 23, 2013 2:18 PM, "Paws" wrote: > > W dniu piątek, 22 listopada 2013 16:51:45 UTC+1 użytkownik David Fishburn napisał: > > On Fri, Nov 22, 2013 at 9:06 AM, Nikolay Pavlov wrote: > > > > > > > > > > > > On Nov 22, 2013 5:48 PM, "David Fishburn" wrote: > > > > > > > > > > On Fri, Nov 22, 20

Re: Tabs vs buffers

2013-11-23 Thread Paws
W dniu piątek, 22 listopada 2013 16:51:45 UTC+1 użytkownik David Fishburn napisał: > On Fri, Nov 22, 2013 at 9:06 AM, Nikolay Pavlov wrote: > > > > > > On Nov 22, 2013 5:48 PM, "David Fishburn" wrote: > > > > > > On Fri, Nov 22, 2013 at 5:26 AM, Lech Lorens wrote: > > >> > > >> On Thur

Re: "vim blog" plugin anyone?

2013-11-23 Thread Paul Isambert
"Keith Kaple" : > I'm a developer and pretty much do everythig in vim, I was wondering > if a plugin existed which would do the following. > > 1 record my activity daily and append to a vim_blog.datestamp > 2 "activity" would be a simple adding somthing like: > added #lines deleted #li

Re: "vim blog" plugin anyone?

2013-11-23 Thread Nicolas Dermine
On 23 Nov 2013 04:13, "Keith Kaple" wrote: > > On Fri, Nov 22, 2013 at 03:47:01PM -0500, Karl Harris wrote: > > Keith Kaple wrote: > > > I'm a developer and pretty much do everythig in vim, I was wondering if a plugin existed which would do the following. > > > > > > 1 record my activity daily a