Re: [dev] suckless indentation with vim

2022-07-02 Thread Страхиња Радић
On 22/07/02 11:07, NRK wrote: > If someone's using vim and follows this style, what plugin and/or > setting do you use? set tabstop=8 set softtabstop=0 set shiftwidth=0 set noexpandtab Not being lazy to type text, and indenting each line manually. Side note: vim

Re: [dev] suckless indentation with vim

2022-07-02 Thread NRK
On Sat, Jul 02, 2022 at 07:29:03PM +0200, Rene Kita wrote: > It does. Just press Tab to indent and press Space to align. You don't > need a plugin. ;) One of the main reason I use vim is because it makes it VERY easy to edit/refactor code. A lot of things which are very cumbersome on other

Re: [dev] suckless indentation with vim

2022-07-02 Thread Rene Kita
On Sat, Jul 02, 2022 at 11:07:48PM +0600, NRK wrote: > Hi, > > The suckless coding style follows "tabs for indent, spaces for > alignment" philosophy. But afaik, vim doesn't support it natively. It does. Just press Tab to indent and press Space to align. You don't need a plugin. ;)

Re: [dev] show line number *and* column number in a search

2022-07-02 Thread Marc Chantreux
On Mon, Jun 20, 2022 at 09:02:13AM -0400, Greg Reagle wrote: > On Mon, Jun 20, 2022, at 3:00 AM, m...@datameer.com wrote: > > "Greg Reagle" wrote: > >> ls | awk '/er.*/ {match($0, /er.*/); print $0; print > >> NR":"RSTART"-"RSTART+RLENGTH}' > > [0] https://geoff.greer.fm/ag/ you don't need