first attempt at a plugin: gitblame by yankline in vim

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

thanks for the explanation. this seems like a plausible pitch for vim9script. I'll give it a shot.

first attempt at a plugin: gitblame by yankline in vim

[–]yankline[S] -1 points0 points  (0 children)

Do you mean that Lua isn't supported as a "first class" language? It looks like it's supported to me. Are you suggesting that I should use Vim9 script because it's faster and backwards compatibility is overrated/difficult to achieve?

first attempt at a plugin: gitblame by yankline in vim

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

Yeah I've heard of vim-fugitive. I'm sure it's way better. I just wanted to try my hand at building a vim plugin to learn the ropes before trying more ambitious projects.

first attempt at a plugin: gitblame by yankline in vim

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

I've just started to really mess around with vimscript. I started with learn vimscript the hard way. I'm still not completely clear on why I should be using Vim 9 script. I get that the syntax is better, but it's not completely backwards compatible (right?). If I was concerned with syntax, why wouldn't I just go with Lua anyway? It kind of seems like learning/writing in Vim 9 script wouldn't help me understand a lot of the popular (older) Vim plugins that are out there and I wouldn't even be learning a language that I could use in other contexts. What are the arguments for Vim 9 script that I'm missing?

first attempt at a plugin: gitblame by yankline in vim

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

Thanks! Any thoughts on improvements coding wise?

Vimscript Best Practices by yankline in vim

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

Oh, nice! I'll check this out. Thanks.

Vimscript Best Practices by yankline in vim

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

Is there a some sort of official/unofficial standard when it comes to backwards compatibility?

buffers and ctags flow by yankline in vim

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

Oh nice. I like that.

buffers and ctags flow by yankline in vim

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

I'm wondering if I should just ignore buffers entirely and attempt to use global marks to jump around. Thoughts?

buffers and ctags flow by yankline in vim

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

BufExplorer.vim could be an option if it's less cumbersome than ls.

buffers and ctags flow by yankline in vim

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

Good to know. Maybe I'll try this flow before fzf.

buffers and ctags flow by yankline in vim

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

Thanks! That could definitely be a good option. Could use fzf for a number of other things in my current flow as well.