Re: The package you uploaded (vim-noweb.tgz) is empty

2023-06-05 Thread JohnBeckett
On Tuesday, June 6, 2023 at 3:31:29 AM UTC+10 Bram Moolenaar wrote: I have see some DB errors the last few days. Usually the problem goes away a bit later, e.g. after an hour. I have no clue what might cause this. Are you able to ask for help at the hosting service? The problem would probably

Re: add skeleton to new file based on filetype, not extension

2023-06-05 Thread NBaH
Le 06/06/2023 à 02:58, Gary Johnson a écrit : if line("$") == 1 && empty(getline(1)) that's nice if last line is the first one, and  first line is empty thank you. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying

Re: add skeleton to new file based on filetype, not extension

2023-06-05 Thread Gary Johnson
On 2023-06-06, NBaH wrote: > Le 05/06/2023 à 17:50, Gary Johnson a écrit : > > no file name argument has been given to that :new command, so the > BufNewFile > autocommand is not triggered. > > this is the most important part of the reason why it doesn't work. :) > > thank you for

Re: add skeleton to new file based on filetype, not extension

2023-06-05 Thread NBaH
Le 05/06/2023 à 17:50, Gary Johnson a écrit : no file name argument has been given to that :new command, so the BufNewFile autocommand is not triggered. this is the most important part of the reason why it doesn't work. :) thank you for correcting autocommand. do you have any (simple) idea

Re: The package you uploaded (vim-noweb.tgz) is empty

2023-06-05 Thread Bram Moolenaar
Christian wrote: > On Sa, 03 Jun 2023, Lifepillar wrote: > > > On 2023-06-02, Bram Moolenaar wrote: > > > > > You could try using another browser. > > > > I have tried with Safari, Brave, and LibreWolf (~Firefox) on macOS to no > > avail. I have taken care to disable ad blockers and,

Re: add skeleton to new file based on filetype, not extension

2023-06-05 Thread Gary Johnson
On 2023-06-05, NBaH wrote: > hello, > > I'm trying to add skeleton to new files having a filetype (eg python) > > here's what  I've tried : > > autocmd BufNewFile if == "python" 0r ~/.vim/python.skel | normal G | > let IndentStyle = "python" | endif One problem with the above is that the

add skeleton to new file based on filetype, not extension

2023-06-05 Thread NBaH
hello, I'm trying to add skeleton to new files having a filetype (eg python) here's what  I've tried : autocmd BufNewFile if == "python" 0r ~/.vim/python.skel | normal G | let IndentStyle = "python" | endif with no luck when I open a new file like this : : bel new | set filetype=python I

Re: The package you uploaded (vim-noweb.tgz) is empty

2023-06-05 Thread Christian Brabandt
On Sa, 03 Jun 2023, Lifepillar wrote: > On 2023-06-02, Bram Moolenaar wrote: > > > You could try using another browser. > > I have tried with Safari, Brave, and LibreWolf (~Firefox) on macOS to no > avail. I have taken care to disable ad blockers and, afaics, only > cross-site cookies are

Re: BUG: terminal vim 9.0.1506 x64 window 10

2023-06-05 Thread Christian Brabandt
On Sa, 03 Jun 2023, Robert Solomon wrote: > My point is different. It's isn't working correctly on ANY of them. That is hardly correct. I haven't heard from many complaints about using Vim terminal in neither Windows nor Linux. > see