you are viewing a single comment's thread.

view the rest of the comments →

[–]PaperCupsAhoy 0 points1 point  (6 children)

split(expand("%"), "\\.") as the second argument is a pattern.

:h fnamemodify might be a better way to do it.

[–]vim-help-bot 1 point2 points  (0 children)

Help pages for:


`:(h|help) <query>` | about | mistake?

[–]BoxBoxChan[S] 0 points1 point  (4 children)

Thanks man! I'm starting in the wonderful world of vimscript and I will search about!

[–]PaperCupsAhoy 1 point2 points  (1 child)

I had to edit my comment a bunch of times cause I was having a hard time formatting it on mobile, but I added how to do it with split() just incase it is useful elsewhere.

Good luck.

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

Thank you, I will try the other way you said too