Hi Bee!

On Fr, 10 Jun 2011, Bee wrote:

> > > Works great but for the offset I needed to add 1:
> > > :nmap <expr> J tline+1-line('.')%tline.'jzt'
> > > :nmap <expr> K tline+1-line('.')%tline.'kzt'

I don't really understand, why you add 1 here.

> The only improvement I would like is to do each by a count, if count
> is not specified then count=1.
> 
> {count}J
> {count}K
> 
> To go to the nth block of tlines.

I would use this mapping:

:nnoremap <silent> J @=(17-line(".")%16)."jzt"<cr>
:nnoremap <silent> K @=(17-line(".")%16)."kzt"<cr>

The @= forces the mapping to be evaluated like an expression and the 
count should simply work with that.

regards,
Christian 

-- 
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

Reply via email to