Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
609 views

How to remove 2 characters from the beginning of a string after using filename-modifiers?

How to remove 2 characters from the beginning of a string after using filename-modifiers? So assume that I have a files that looks like this: /home/drskoolie/projects/examples/ex40.c /home/drskoolie/...
Al-Baraa El-Hag's user avatar
12 votes
1 answer
3k views

How do I use a variable or return value in option, command, or mapping?

I have a variable foo with let foo='value', and a function F like function F() return 'value' endfunction and I want to use them in an option: :set option=foo, :set option=F(); or in a command: :...
D. Ben Knoble's user avatar
  • 27.7k