sjbach / lusty

LustyExplorer / LustyJuggler for Vim
http://www.vim.org/scripts/script.php?script_id=1890
257 stars 30 forks source link

<Left> and <Right> support in lusty-juggler and \| mapping restore fix #50

Closed grota closed 12 years ago

grota commented 12 years ago

First off, thanks @sjbach for merging :) As per the topics, this adds and support in lusty-juggler and fixes the mapping restore commands for mapping that have | on the rhs, for example I have nnoremap <C-h> <C-w>h<C-w>\|<C-w>_ cheers, Giuseppe

sjbach commented 12 years ago

This patch doesn't seem to work for me; in gvim <Left> and <Right> continue under the original mappings, and in the terminal I get an error and backtrace when pressing <Left> or <Right>:

undefined method `+' for nil:NilClass
(eval):359:in `key_pressed'
(eval):1:in `block (2 levels) in <dummy toplevel>'
(eval):232:in `profile'
(eval):1:in `<dummy toplevel>'
grota commented 12 years ago

Yep, sorry I just realized I have let g:LustyJugglerAltTabMode = 1 in my .vimrc. I'll investigate more and let you know.

grota commented 12 years ago

ok now it should work better

sjbach commented 12 years ago

Merged, thanks! Looks like this change and the one to lusty-explorer.vim only allow arrow key usage in terminal vim; it may make sense at some point to get it working in gvim as well for consistency.