Wednesday, April 10, 2013

Re: Forcing myself to learn vim properly

On 08 Apr 2013, Marc Weber wrote:
>
> The fastest solution is
>
> for x in ['jjj','kkk']
> exec 'noremap '.x.' :echoe "stop doing this!<cr>'
> endfor
>
> or such. Don't let you stop typing when no action happens. ji still
> works while vim is waiting for more keys to find out whether you're
> going to type jjj.
>
> Marc Weber

I couldn't get this to work. I do suffer from the jjj problem.
I've tried several solutions; the most effective is to do

inoremap jj <Esc>

and so on, but it has the disadvantage that whenever I type h,j,k,l in
Insert mode there is a slight but annoying pause while vim waits to see
if there are going to repetitions.

I also tried a Tip to make vim return to Normal mode automatically after
an interval:

au InsertEnter * let updaterestore=&updatetime | set updatetime=25000
au InsertLeave * let &updatetime=updaterestore


But I found that annoying too. I came to the conclusion that there is
no really satisfactory way to avoid the problem apart from vigilance.

--
Anthony Campbell - ac@acampbell.org.uk
http://www.acampbell.org.uk
http://www.reviewbooks.org.uk
http://www.skepticviews.org.uk
http://www.acupuncturecourse.org.uk
http://www.smashwords.com/profile.view/acampbell
https://itunes.apple.com/ca/artist/anthony-campbell/id73235412





--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: