Hi, Yves,

I use vim to teach my 5-day CFEngine class, I have hotkeys setup to run the
current screen buffer using cf-agent or bash, whichever's appropriate. =) I
find it very handy, as I can edit the examples to answer questions from
students, and immediately run the result. I also have hotkeys to advance to
the next file, or to go back.

However I don't capture the command output within vim, that we just look at
and throw away when we are done.  =)

Best,
-at


On Thu, Oct 29, 2015 at 7:36 AM, Yves Dorfsman <y...@zioup.com> wrote:

>
> For people spending a lot of time in a terminal/shell (bash, csh etc...) do
> you work from the shell or from an editor?
>
> The joke goes that people using emacs live inside emacs, and I have indeed
> seen developers working from a simple window and sending chunk of code to a
> compiler/repl right from emacs, now what about the shell?
>
> I'm a vi/vim person, and when working from the shell I tend to use one of
> these two patterns:
>
> - run a command with no output redirection, then use "Shift-PgUP" and
> "Shift-PgDn" to examine the output
>
> - run a command with a redirection to a file in /tmp, then "view" that
> file to
> be able to do searches etc on the output
>
> This morning it occurred to me (after 25 years of using UNIXes, I'm not
> really
> fast I guess) that if I know that the output is going to be very long and
> it
> is likely that I will want to do searches on the output, I can open a blank
> file, then do something like (in vi/vim):
>
>     esc-: r ! whois google.com
>
> Bingo! Then really, I can continue my day by doing "Shift-g" and re-using
> the
> above trick. It has the huge advantage to log everything I do, I guess I
> could
> clean up anything I don't really care for (or not and assume that anything
> could be important, I just don't know yet), and save the file after the
> date
> and have a log of my work for the rest of my life. Now, I could see the
> added
> gymnastic of "esc-: r !" becoming a pain very quickly.
>
> Hence my question, anybody already doing something similar (Even with
> emacs, I
> guess that'd be the straw to get me to start using evil mode!)? Can you
> describe?
>
>
> Thanks.
> --
> http://yves.zioup.com
> gpg: 4096R/32B0F416
>
> _______________________________________________
> Tech mailing list
> Tech@lists.lopsa.org
> https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
> This list provided by the League of Professional System Administrators
>  http://lopsa.org/
>



-- 
Need CFEngine training?  Email train...@verticalsysadmin.com
_______________________________________________
Tech mailing list
Tech@lists.lopsa.org
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to