Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Copying Stata code with line numbers
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Copying Stata code with line numbers
Date
Fri, 9 Mar 2012 15:39:10 +0000
I guess many if not most readers will not want a long thread about the
idiosyncrasies of vi/vim/Vim. Suffice it to say that the Windows port
of Vim has a fairly standard Windows GUI so that it is not nearly so
cryptic as implied here. Brendan is here in part making OS-specific
comments, I imagine, although the specific ways he cites of exiting
apply across all flavours.
Nick
On Fri, Mar 9, 2012 at 10:53 AM, Brendan Halpin <[email protected]> wrote:
> The one bit of essential vi or vim knowledge:
>
> To exit (without saving): <esc>:q!<ret>
>
> I used to think that that was just a smartass remark, but about once
> every year or so I find myself in vi by accident[1], and remembering
> this little wisecrack saves me a lot of frustration. The vi interface is
> extremely efficient but not at all intuitive!
>
> Brendan
>
> [1] Mostly due to the completely unreasonable practice of visudo using
> vi to edit the sudoers file. Note that if you've managed to enter useful
> text, a constructive way to exit is <esc>:wq!<ret>.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/