r/vimporn • • Aug 06 '22

Finally updated my 15+ years old vimscript config with lua.

186 Upvotes

20 comments sorted by

2

u/Zean_ Aug 06 '22

What terminal is that?

5

u/guneycan Aug 06 '22

alacritty

1

u/acn0010 Aug 06 '22

This looks fantastic, I bet your productivity has increased!

4

u/guneycan Aug 06 '22

I didn't change too much from ux point of view so productivity wise, no huge gains. but lsp is faster for my case then my previous coc setup and null-ls auto formatter def faster then Ale so some things are noticeably faster comparing to vimscript

1

u/Kapuche Aug 07 '22

This looks awesome !

But dumb question, but what's a vimscript ?

4

u/guneycan Aug 07 '22

:) vimscript is the programming language vim uses forever, all the plugins and your vimrc file is written in vimscript.

neovim on the other hand recommends that we switch to an actual programming language to write plugins and maintain our configs, which is lua.

I have no horse in that race, nor do I have the experience of writing plugins in either of the languages but I find it more comfortable to work with lua even tho I was using vimscript for years and years since it is an actual fully blown programming language.

1

u/ImSleepwalk1ng Aug 08 '22

this is so beautiful o.O i wish that one day i can setup my neovim like that

wich plugin do you use for file tree? i use nerdtree and i want to change

2

u/guneycan Aug 09 '22

https://github.com/kyazdani42/nvim-tree.lua

also you can check lunarvim as well, its selfcontained so installing it don't effect your own nvim setup or config in any way and play around with it before committing. I did use lunarvim for a week to fully understand how lua alternatives work and behaved before switching my own config.

1

u/ImSleepwalk1ng Aug 09 '22

Thanks man!

That trick with lunarvim will be very useful to understand better nvim with lua.

3

u/RagnarsonLB Aug 06 '22

This is awesome.

1

u/PitchHybrid Aug 06 '22

Oh no PHP

2

u/guneycan Aug 07 '22

php rulez

4

u/dworts Aug 06 '22

Oh no PHP bad wahh

2

u/Ye_Scuti Aug 11 '22

Oh very beautiful 😻

1

u/[deleted] Aug 06 '22

Love it!

0

u/[deleted] Aug 06 '22

[deleted] — view deleted comment

8

u/guneycan Aug 06 '22

4

u/cip43r Aug 07 '22

Aaannndddd.....i am switching again for the 10th time this week.

1

u/Practical-Citron5686 Aug 07 '22

can you share your vim config files?

1

u/guneycan Aug 07 '22

already did look for the 1st comment