Skip to main content
7 events
when toggle format what by license comment
Apr 13, 2017 at 12:51 history edited CommunityBot
replaced http://vi.stackexchange.com/ with https://vi.stackexchange.com/
Jun 11, 2016 at 12:11 answer added the_velour_fog timeline score: 1
Jun 11, 2016 at 12:07 comment added the_velour_fog @user9433424 yes, I looked at the answer romainl gave on my previous question, and he used :normal! form too. So based on my testing and the assumption romainl has likely used the command without issues I guess its a workable answer that might help others.
Jun 11, 2016 at 12:01 comment added user9433424 I'm glad it helped! Yes, I think what you said is right, it basically locks the command in. They talk about this in :help :normal. Also in the 15th and 16th chapter of Learn Vimscript the Hard Way. There are various Ex commands whose behavior is changed when you append a bang to them (like :retab or :join). When you think your problem is solved, you could post your solution as an answer.
Jun 11, 2016 at 11:23 comment added the_velour_fog @user9433424 thanks alot! I've added the ! and so far its working nicely. I knew the ! after a function name would allow you to redefine the function. But I didn't know about the ! in autocmd / normal statements. so it basically locks the command in, so that it can't be remapped? . Thanks!
Jun 11, 2016 at 9:06 comment added user9433424 If you add a bang after :normal, does it change anything? A bang just after :normal means that the keys you give as an argument won't be remapped. If the keys are not remapped, maybe your autocmd will simply set marks and not call netrw or NERDTree's functions.
Jun 11, 2016 at 0:42 history asked the_velour_fog CC BY-SA 3.0