Re: vim autoformat ?

2023-05-28 Thread Enan Ajmain
On Sun, 28 May 2023 09:35:00 +0200 Igor Lerinc wrote: > So if I understood correctly, external tools won't help me more than > Vim already has ? > On Sun, May 28, 2023 at 6:53 AM Owajigbanam Ogbuluijah > wrote: > > > Hey Igor, > > > > Formatting in Vim is pretty simple. Vim already understands

Re: vim autoformat ?

2023-05-28 Thread Bram Moolenaar
> BTW, I suspect that Bram monitors vim-use, so cc-ing him just means he'll > get two copies of the message. So long as it's one message sent to different mail addresses, the Message-ID field will be equal and they can be de-duplicated easily. -- >From "know your smileys": O:-) Saint ///

Re: vim autoformat ?

2023-05-28 Thread arocker
If it's Perl code, there's a utility called perltidy, which is stand-alone. BTW, I suspect that Bram monitors vim-use, so cc-ing him just means he'll get two copies of the message. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text

Re: vim autoformat ?

2023-05-28 Thread Igor Lerinc
etails. > > *p.s: the "motions" bit means you can do something like* *=ip* *to format > the lines in a code block* > > All the best, > Igbanam > > On Sun, May 28, 2023 at 3:54 AM Igor Lerinc > wrote: > >> But what about plugins like >> >>

Re: vim autoformat ?

2023-05-27 Thread Owajigbanam Ogbuluijah
am On Sun, May 28, 2023 at 3:54 AM Igor Lerinc wrote: > 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

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

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 i

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