{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/810738f71559221b265c4b881adf23c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"810738f71559221b265c4b881adf23c3","url":"https://api.github.com/users/christfo","login":"christfo","id":612967},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/46bce3a0fb5eb6fa9abe3a395c3e03f7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"46bce3a0fb5eb6fa9abe3a395c3e03f7","url":"https://api.github.com/users/kana","login":"kana","id":1742},"updated_at":"2011-11-14T09:59:20Z","labels":[{"name":"bug","color":"e10c02","url":"https://api.github.com/repos/kana/vim-arpeggio/labels/bug"}],"closed_at":"2011-11-14T09:59:20Z","comments":4,"url":"https://api.github.com/repos/kana/vim-arpeggio/issues/1","body":"this might be unfair to pin on arpeggio, but I can't find a workaround. The issue is as follows:\r\n\r\nsay I start vim with no chords loaded and I have three lines:\r\n\r\n```\r\n:set ignorecase\r\n\r\n:set smartcase\r\n```\r\nIf in normal mode I position my cursor on the 'o' of ignore and execute \":echo winsaveview()\", then I move down with 'j' and do the same, and again onto the smartcase line, I get:\r\n```\r\n{'lnum': 25, 'leftcol': 0, 'col': 8, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 8}\r\n{'lnum': 26, 'leftcol': 0, 'col': 0, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 8}\r\n{'lnum': 27, 'leftcol': 0, 'col': 8, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 8}\r\n```\r\nand the cursor sits on the 'r' of smart.\r\n\r\nnext I execute \r\n```:call arpeggio#map('nv',  's', 0, 'jk', '<Esc>')```\r\n and repeat the exercise.\r\n```\r\n{'lnum': 25, 'leftcol': 0, 'col': 8, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 8}\r\n{'lnum': 26, 'leftcol': 0, 'col': 0, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 0}\r\n{'lnum': 27, 'leftcol': 0, 'col': 0, 'topfill': 0, 'topline': 1, 'coladd': 0, 'skipcol': 0, 'curswant': 0}\r\n```\r\n...and this time the cursor sits on the ':' . \r\nI'm looking for the mapping to preserve the 'curswant' presumably, but this is already outside my vimfoo to work out what is going awry. \r\n\r\nincidentally, the cursor keys still behave so I tried \r\n```:nnoremap <Plug>(arpeggio-default:j)  <down>```\r\nbut no luck.\r\n\r\nAnd finally, thanks for such an awesome plugin. Its a huge boost to productivity.\r\n","html_url":"https://github.com/kana/vim-arpeggio/issues/1","title":"loss of curswant when motion key mapped in 'n' or 'v'","number":1,"id":2185473,"created_at":"2011-11-09T11:59:24Z"},"action":"closed"}