2016-09-18 1:44 GMT+03:00 Tim Chase <[email protected]>: > On 2016-09-17 15:04, Ni Va wrote: >> On Saturday, September 17, 2016 at 11:51:10 PM UTC+2, Tim Chase >> wrote: >> > On 2016-09-17 14:47, Ni Va wrote: >>>>>> norm 1G does not work on vim8.0.4 >> >>> $ vim -u NONE yourfile.txt >> >> OK some loaded plugins may cause the pb. how can i locate the bad >> one..humm difficult out of doing dichotomie testing > > To bisect the problem, I usually start by putting > > finish > > in the middle of my vimrc. If it still works, then I move it to 75% > of the vimrc; if it broke, I move it to 25% of my vimrc. Repeat > until it works when you put "finish" before the problematic line, but > stops working when you put "finish" after the problematic line.
And if you are writing `norm 1G` somewhere (e.g. in a plugin), then just write it as `normal! 1G` (with bang). Bisecting vimrc is a last resort if more adequate techniques do not work: 1. In scripts/plugins/etc - something you have saved on your file system just follow best practices which include things like “do not use :normal, use :normal!”. If not working 1G is not causing you any problems outside of such scripts (i.e. when you type `1G` in place of using `normal`, in case you do type this) then there is no need to bother. 2. There are just two characters in your command which may cause problems: `1` and `G`. Just check `:verbose map 1` and `:verbose map G`. I do not remember last time I had to use bisecting. > > -tim > > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
