Re: [dev] suckless indentation with vim

2022-07-06 Thread NRK
On Tue, Jul 05, 2022 at 06:43:53PM -0500, Robert Winkler wrote: > Probably a newly written 'vimish' editor is needed. I see that "vis" has already been mentioned. There's also neatvi, and kakoune. But if your problem with neovim is that it isn't compatible with the vim ecosystem, then neatvi and

Re: [dev] suckless indentation with vim

2022-07-05 Thread Robert Winkler
On Tue Jul 5, 2022 at 7:44 AM CDT, 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,

Re: [dev] suckless indentation with vim

2022-07-05 Thread NRK
On Tue, Jul 05, 2022 at 08:54:20AM +0200, David Demelier wrote: > I'm not sure if it's really easy to implement a smart alignment. Do you mean implementing it in vimscript/externally or internally? Because I don't think implementing it internally should be difficult, given that it already can do

Re: [dev] suckless indentation with vim

2022-07-05 Thread David Demelier
On Sat, 2022-07-02 at 23:07 +0600, NRK wrote: > Hi, > > The suckless coding style follows "tabs for indent, spaces for > alignment" philosophy. But afaik, vim doesn't support it natively. > > I remember trying out a couple plugins from here: >

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. ;)