Re: vim autoformat ?

2023-05-27 Thread Owajigbanam Ogbuluijah
Hey Igor, Formatting in Vim is pretty simple. Vim already understands how to format many filetypes. Try not to use too many plugins to complicate things; especially if you're not mandated or forced to. I'll second what Bram, and the others, said here earlier. You can start by formatting the

Re: vim autoformat ?

2023-05-27 Thread Igor Lerinc
But what about plugins like https://github.com/vim-autoformat/vim-autoformat That use some external formatters. I find them slow, because it need to start program when called from Vim. And they say, it means you need to have some type of service running on your system. Like for 'prettier',

Re: vim autoformat ?

2023-05-27 Thread Bram Moolenaar
> I can't wrap my head around Vim autoformat at all. > I want to have autoformat on save feature. > I don't want it to have delays, so when i press `:w` it immediatelly saves > and formats indentation properly. > > I have no idea what is going on in (neo)Vim discussions about this >

Re: vim autoformat ?

2023-05-27 Thread Salman Halim
On Sat, May 27, 2023, 13:02 Enan Ajmain <3nan.ajm...@gmail.com> wrote: > > Igor: I second Matvey's caution. If you are working on a project that > has an autoformat tool which all contributors are supposed to be using, > e.g., uncrustify, then autoformatting could possibly be useful. But if >

Re: vim autoformat ?

2023-05-27 Thread Enan Ajmain
On Sat, 27 May 2023 19:32:31 +0300 M wrote: > , 27 __ 2023 __., 18:31 Igor Lerinc : > > [...] > > I have no idea what is going on in (neo)Vim discussions about this > > autoformating. Looks like those people never coded in their life. > > [...] > However, note that such "auto-features"

Re: vim autoformat ?

2023-05-27 Thread M
сб, 27 мая 2023 г., 18:31 Igor Lerinc : > I can't wrap my head around Vim autoformat at all. > I want to have autoformat on save feature. > I don't want it to have delays, so when i press `:w` it immediatelly saves > and formats indentation properly. > > I have no idea what is going on in

vim autoformat ?

2023-05-27 Thread Igor Lerinc
I can't wrap my head around Vim autoformat at all. I want to have autoformat on save feature. I don't want it to have delays, so when i press `:w` it immediatelly saves and formats indentation properly. I have no idea what is going on in (neo)Vim discussions about this autoformating. Looks