Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #91982

Re: Improving productivity

From Nick Bowler <nbowler@draconx.ca>
Newsgroups comp.lang.c
Subject Re: Improving productivity
Date 2016-08-08 18:47 +0000
Organization A noiseless patient Spider
Message-ID <noak4l$4ud$1@dont-email.me> (permalink)
References <affac3f5-3804-41e9-9678-9f02ca51b47a@googlegroups.com> <94918357-365a-4c67-9397-5bc2228d9bb6@googlegroups.com> <ln1t1zw7qu.fsf@kst-u.example.com>

Show all headers | View raw


On Mon, 08 Aug 2016 09:22:33 -0700, Keith Thompson wrote:
> luser droog <luser.droog@gmail.com> writes:
[...]
>> If you have a makefile written, then in vi you just type
>>
>>   :!make<RET>
>>
>> to build your project. That's light years ahead of opening
>> (or suspending to) a shell and typing `gcc ...`.
> 
> I rarely invoke commands from within vi (actually vim) like that.
> I'd suspend the editor and type "make" from the shell prompt.
> Of course you can use whichever approach you're more comfortable
> with.

In vim you can additionally do

  :make

(note, no exclamation point).  This is similar to :!make except the
editor looks at the console output, and navigates to the first error
(if there is one).  Then you can use editor commands to go to the next
error (:cn), and more.

That being said, I usually just run make in another shell.

Cheers,
  Nick

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Improving productivity janus <emekamicro@gmail.com> - 2016-08-07 06:46 -0700
  Re: Improving productivity Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-08-07 18:52 -0700
  Re: Improving productivity Real Troll <real.troll@trolls.com> - 2016-08-07 22:59 -0400
  Re: Improving productivity fir <profesor.fir@gmail.com> - 2016-08-08 00:49 -0700
    Re: Improving productivity fir <profesor.fir@gmail.com> - 2016-08-08 01:32 -0700
  Re: Improving productivity luser droog <luser.droog@gmail.com> - 2016-08-08 08:04 -0700
    Re: Improving productivity Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-08-08 09:24 -0600
    Re: Improving productivity Keith Thompson <kst-u@mib.org> - 2016-08-08 09:22 -0700
      Re: Improving productivity Nick Bowler <nbowler@draconx.ca> - 2016-08-08 18:47 +0000
      Re: Improving productivity luser droog <luser.droog@gmail.com> - 2016-08-08 15:23 -0700
        Re: Improving productivity Udyant Wig <udyant.wig@gmail.com> - 2016-08-09 11:27 +0530
    Re: Improving productivity Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-08-08 19:59 +0100
      Re: Improving productivity luser droog <luser.droog@gmail.com> - 2016-08-08 20:16 -0700
  Re: Improving productivity Nobody <nobody@nowhere.invalid> - 2016-08-10 03:19 +0100
  Re: Improving productivity jgh@mdfs.net - 2016-08-12 13:59 -0700

csiph-web