On Mon, Jul 13, 2009 at 7:31 PM, Tony Mechelynck wrote: > > On 14/07/09 01:08, James Vega wrote: >> >> On Tue, Jul 14, 2009 at 12:46:37AM +0200, Tony Mechelynck wrote: >>> >>> On 13/07/09 18:08, Ingo Karkat wrote: >>>> The default window navigation commands are a bit tedious, I mapped >>>> CTRL-JKHL to >>>> go to the window in that direction: >>>> nnoremap<C-j> <C-w>j >>>> etc. >> >>> Ctrl-L is the "redraw" key, very useful when something goes "half >>> wrong", and so forth. >> >> I find that doing ":syn sync fromstart" is usually a better fix.<C-l> >> only fixes the issue sometimes and in the cases it doesn't, ":syn sync >> fromstart" would be necessary anyway. > > I don't mean that. ":syn sync fromstart" is for times when redrawing > wouldn't be useful but syntax highlighting has to be recomputed from > higher than it was (much higther, sometimes). Ctrl-L is for when Vim > forgot to redraw the screen and it isn't displaying what it thinks it is.
You could always do :redraw! instead of <C-L> though - but, who wants that? I'm also against remapping CTRL + h/j/k/l >> The other two key combos being masked are<C-h> and<C-j> which don't >> override anything. They're simply alternatives for other keys. Yes, but remapping them *would* affect those keys. If, for example, your terminal sent ^H for <BS> then pressing <BS> would suddenly move one window left - which I suppose is as sane as moving one character left, it's default behavior - but it does still change things. Not sure if there's any setup where pressing a <Return> key (as distinct from <Enter>) on the keyboard actually sends a ^J but I bet there's one out there somewhere. ~Matt --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
