Skip to content

Instantly share code, notes, and snippets.

@ryotako
Last active September 18, 2016 02:33
Show Gist options
  • Save ryotako/412122a85635c70394f9af590a70757e to your computer and use it in GitHub Desktop.
Save ryotako/412122a85635c70394f9af590a70757e to your computer and use it in GitHub Desktop.
xでレジスタを汚さない&x連打のundo履歴をまとめる
" xでレジスタを汚さない&x連打はまとめてundo履歴に登録
" haya14busaさんの記事(http://haya14busa.com/improve-x-with-vim-submode/)を参考に二行に圧縮
call submode#enter_with('x', 'n', '', 'x', '"_x')
call submode#map('x', 'n', '', 'x', ":\<C-u>undojoin <bar> normal! \"_x<CR>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment