Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: What is one Vim trick most people don't know?. Parent comment
>a) many modern editors will do it for you
although I tend not to use those particular vim options much.
And for anyone else who does not know, many other vim set commands also have shortcuts, like:
:se ai (for :set autoindent)
and ts for tabstop, sw for shiftwidth, ic for ignorecase, wm for wrapmargin and many others, probably.
I tend to do this in my .vimrc or .exrc as soon as I start using any new instance (on a new machine) of vi/vim:
:se ai ts=4 sw=4 showmode showmatch ignorecase expandtab report=0
Also, like:
>" See the current format
> :set ff
you can do this for any boolean setting, like readonly, ignorecase, etc.:
:se readonly?
:se ic?
to query their values.
There are no comments on this comment yet.
>a) many modern editors will do it for you
although I tend not to use those particular vim options much.
And for anyone else who does not know, many other vim set commands also have shortcuts, like:
:se ai (for :set autoindent)
and ts for tabstop, sw for shiftwidth, ic for ignorecase, wm for wrapmargin and many others, probably.
I tend to do this in my .vimrc or .exrc as soon as I start using any new instance (on a new machine) of vi/vim:
:se ai ts=4 sw=4 showmode showmatch ignorecase expandtab report=0
Also, like:
>" See the current format
> :set ff
you can do this for any boolean setting, like readonly, ignorecase, etc.:
:se readonly?
:se ic?
to query their values.