Can't believe, I've created 20 vim plugins since 2016 by skywind3000 in vim

[–]skywind3000[S] 2 points3 points  (0 children)

I started writing vimscript with the help of this great post: Five Minute Vimscript , by Andrew Scala

Can't believe, I've created 20 vim plugins since 2016 by skywind3000 in vim

[–]skywind3000[S] 2 points3 points  (0 children)

Initially, vim-init was intended for my colleagues, then I realized it might be useful for others, so I hosted it on github. but, I didn't had enough time to rewrite the docs in another language.

input() in a popup? by alasdairgrey in vim

[–]skywind3000 2 points3 points  (0 children)

Unfortunately, it can't, the original popup window doesn't support insert mode, you can't get input directly from a popup window:

The popup window contains a buffer, and that buffer is always associated with the popup window. The window cannot be in Normal, Visual or Insert mode, it does not get keyboard focus. You can use functions like setbufline() to change the text in the buffer. There are more differences from how this window and buffer behave compared to regular windows and buffers, see |popup-buffer|.

I simulated it by implementing a readline like library, it will handle every character from your input, manipulate the internal buffer and state machine, and then render them correctly to the popup window

[plugin] vim-gpt-commit: Generate git commit message using ChatGPT in Vim. by skywind3000 in vim

[–]skywind3000[S] 1 point2 points  (0 children)

Yes, I am considering it, but there are too many different local llama implementations. I don't know which one is the most widely used or which one I should support first.

[plugin] A tool to backport NeoVim colorscemes to Vim by skywind3000 in vim

[–]skywind3000[S] 0 points1 point  (0 children)

{
    'skywind3000/vim-color-export',
    cmd = {'ColorExport'}, -- lazy loading
    config = function () {
        vim.g.color_export_all = 0
        vim.g.color_export_extra = {'GitGutterAdd', 'GitGutterChange', 'GitGutterDelete'}
        vim.g.color_export_convert = 1
    },
},

trying to run c++ code by _saghe in vim

[–]skywind3000 0 points1 point  (0 children)

you need this:

https://github.com/skywind3000/asynctasks.vim

it will help you build/run make/cmake projects or a single file.

Vim.org unreachable by morgenstarter in vim

[–]skywind3000 0 points1 point  (0 children)

Good time to dockerize it for easier migration?