On Saturday, December 24, 2016 at 7:36:55 AM UTC+8, Tony Mechelynck wrote:
> On Fri, Dec 23, 2016 at 2:22 AM, Zhe Lee wrote:
> > I use the two command below to map my `j` and `k`, the purpose of these
> > command is that when the current line is too long, it will be
On Fri, Dec 23, 2016 at 2:22 AM, Zhe Lee wrote:
> I use the two command below to map my `j` and `k`, the purpose of these
> command is that when the current line is too long, it will be wrapped in vim
> window, and you don't want to jump it when you press j or k. So ~
>
I use the two command below to map my `j` and `k`, the purpose of these command
is that when the current line is too long, it will be wrapped in vim window,
and you don't want to jump it when you press j or k. So ~
nnoremap j v:count == 0 ? 'gj' : 'j'
nnoremap k v:count == 0 ? 'gk' : 'k'
It