So i tried to change the setting from cpoptions, so i did:
set cpoptions=aABceF
on the commandline, where s for the star is missing (on purpose) and it seems to work fine but only if i do it in the commandline. If i use it in my .vimrc, nothing happen, and doing:
set cpoptions?
In the commandline after opening vim show:
set cpoptions=aABceFs
Where s isn't missing as intended (which worked only in the commandline as shown above).
How can i make this work in my .vimrc too?
set nocompatiblein your vimrc? If you do, that command will reset'cpoptions'to the default... So any setting of'cpoptions'before that line will be overwritten. – filbranden Sep 18 '20 at 06:28:verbose :set cpoptions?to see where it was reset – Christian Brabandt Sep 18 '20 at 06:29nocompatibleby default, especially since i have a.vimrc. @filbranden – Nordine Lotfi Sep 18 '20 at 06:50.vimrc? or so the above line in my.vimrctake precedence over the result from:verbose :set cpoptions?? @ChristianBrabandt – Nordine Lotfi Sep 18 '20 at 06:52:verbose :set cpoptions?queries only where the option was last set/changed. It does not change anything – Christian Brabandt Sep 18 '20 at 06:56'nocompatible'(or resets'cpoptions'), see How do I debug my vimrc file? if you'd like to figure out where it's being clobbered. – filbranden Sep 18 '20 at 07:10