Re: norm 1G does not work on vim8.0.4

2016-09-18 Thread Ni Va
On Sunday, September 18, 2016 at 1:21:53 PM UTC+2, Tim Chase wrote:
> On 2016-09-18 02:55, Ni Va wrote:
> > > And stepping back, if you're writing *either* "norm 1G" or "norm!
> > > 1G" just write
> > > 
> > >   1
> > > 
> > > or whichever line-number you want to go to.  Likewise, just use
> > > "$" rather than "norm G" or "norm! g"
> > > 
> > >   :help range
> > > 
> > > -tim  
> > 
> > Thank you men for advices, it is located in a buffer opened by the
> > plugin Vimfiler that aims to review natural original vim mapping.
> > 
> > I was'not writing but just readgin and wanted to see the first line
> > of buffer so when I'm in normal mode I don't want to switch to
> > command mode with :[range]move {address}
> 
> I'm not suggesting using ":[range]move {address}" but rather just the
> number.  So instead of your script looking something like
> 
>   function! Test(...)
> call do_something(args)
> norm! 1G
> call do_something_else(args)
>   endfunction
> 
> it would instead just read
> 
>   function! Test(...)
> call do_something(args)
> 1
> call do_something_else(args)
>   endfunction
> 
> -tim

Oh ok Tim. Thanks a lot.

-- 
-- 
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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-18 Thread Tim Chase
On 2016-09-18 02:55, Ni Va wrote:
> > And stepping back, if you're writing *either* "norm 1G" or "norm!
> > 1G" just write
> > 
> >   1
> > 
> > or whichever line-number you want to go to.  Likewise, just use
> > "$" rather than "norm G" or "norm! g"
> > 
> >   :help range
> > 
> > -tim  
> 
> Thank you men for advices, it is located in a buffer opened by the
> plugin Vimfiler that aims to review natural original vim mapping.
> 
> I was'not writing but just readgin and wanted to see the first line
> of buffer so when I'm in normal mode I don't want to switch to
> command mode with :[range]move {address}

I'm not suggesting using ":[range]move {address}" but rather just the
number.  So instead of your script looking something like

  function! Test(...)
call do_something(args)
norm! 1G
call do_something_else(args)
  endfunction

it would instead just read

  function! Test(...)
call do_something(args)
1
call do_something_else(args)
  endfunction

-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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-18 Thread Ni Va
On Sunday, September 18, 2016 at 3:54:10 AM UTC+2, Tim Chase wrote:
> On 2016-09-18 03:57, Nikolay Aleksandrovich Pavlov wrote:
> > And if you are writing `norm 1G` somewhere (e.g. in a plugin), then
> > just write it as `normal! 1G` (with bang).
> 
> And stepping back, if you're writing *either* "norm 1G" or "norm! 1G"
> just write
> 
>   1
> 
> or whichever line-number you want to go to.  Likewise, just use "$"
> rather than "norm G" or "norm! g"
> 
>   :help range
> 
> -tim

Thank you men for advices, it is located in a buffer opened by the plugin 
Vimfiler
that aims to review natural original vim mapping.

I was'not writing but just readgin and wanted to see the first line of buffer
so when I'm in normal mode I don't want to switch to command mode with
:[range]move {address}

-- 
-- 
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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-17 Thread Tim Chase
On 2016-09-18 03:57, Nikolay Aleksandrovich Pavlov wrote:
> And if you are writing `norm 1G` somewhere (e.g. in a plugin), then
> just write it as `normal! 1G` (with bang).

And stepping back, if you're writing *either* "norm 1G" or "norm! 1G"
just write

  1

or whichever line-number you want to go to.  Likewise, just use "$"
rather than "norm G" or "norm! g"

  :help range

-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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-17 Thread Nikolay Aleksandrovich Pavlov
2016-09-18 3:57 GMT+03:00 Nikolay Aleksandrovich Pavlov :
> 2016-09-18 1:44 GMT+03:00 Tim Chase :
>> 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`.

Note that even if you find and get rid of offending script or vimrc
line then this does not mean you should not use bang when using
:normal command.

>
> 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 vim_use+unsubscr...@googlegroups.com.
>> 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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-17 Thread Nikolay Aleksandrovich Pavlov
2016-09-18 1:44 GMT+03:00 Tim Chase :
> 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 vim_use+unsubscr...@googlegroups.com.
> 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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-17 Thread Tim Chase
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.

-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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-17 Thread Ni Va
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
> > > 
> > > I just pulled from source and tested both 8.0.4 and the current
> > > tip and it works in both.  Have you tried it without your startup
> > > files?
> > 
> > no how van i disable it ?
> 
> $ vim -u NONE yourfile.txt
> 
> should do.
> 
> -tim

OK some loaded plugins may cause the pb. how can i locate the bad one..humm 
difficult out of doing dichotomie testing

-- 
-- 
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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-17 Thread Tim Chase
On 2016-09-17 14:47, Ni Va wrote:
> > > norm 1G does not work on vim8.0.4
> > 
> > I just pulled from source and tested both 8.0.4 and the current
> > tip and it works in both.  Have you tried it without your startup
> > files?
> 
> no how van i disable it ?

$ vim -u NONE yourfile.txt

should do.

-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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-17 Thread Ni Va
On Saturday, September 17, 2016 at 11:43:56 PM UTC+2, Tim Chase wrote:
> On 2016-09-17 14:29, Ni Va wrote:
> > norm 1G does not work on vim8.0.4
> 
> I just pulled from source and tested both 8.0.4 and the current tip
> and it works in both.  Have you tried it without your startup files?
> 
> -tim

no how van i disable it ?

-- 
-- 
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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: norm 1G does not work on vim8.0.4

2016-09-17 Thread Tim Chase
On 2016-09-17 14:29, Ni Va wrote:
> norm 1G does not work on vim8.0.4

I just pulled from source and tested both 8.0.4 and the current tip
and it works in both.  Have you tried it without your startup files?

-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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


norm 1G does not work on vim8.0.4

2016-09-17 Thread Ni Va
Hi,

norm 1G does not work on vim8.0.4

Thanks

-- 
-- 
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 vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.