Skip to main content

Timeline for Set command-line local variable

Current License: CC BY-SA 4.0

8 events
when toggle format what by license comment
Apr 30, 2023 at 1:24 answer added CrashNeb timeline score: 1
Apr 22, 2023 at 1:47 comment added D. Ben Knoble In Lisps and Schemes it gives you a guaranteed unique symbol
Apr 21, 2023 at 17:14 comment added user9024 @D.BenKnoble I don't know what gensym is
Apr 21, 2023 at 15:39 comment added D. Ben Knoble Do we need a gensym ?? Typically you use a unique prefix based on the plugin name or your initials or something.
Apr 21, 2023 at 14:54 answer added Vivian De Smedt timeline score: 0
Apr 21, 2023 at 14:27 comment added user9024 @VivianDeSmedt I get Illegal variable name: s:one when I try the first solution. The variable should only be as persistent as the call. I'm just defining a mapping like this in my vimrc xnoremap <silent> il :<C-u>let s:one ...
Apr 21, 2023 at 14:13 comment added Vivian De Smedt Could you explain why the first solution is not good enough? Where will the script will be defined: 1. in a one line mapping, 2. in a script file? How much persistent must the variable be: 1. in the call, 2. in the buffer lifetime, 3. in the Vim lifetime
Apr 21, 2023 at 14:03 history asked user9024 CC BY-SA 4.0