Last active
September 18, 2016 02:33
-
-
Save ryotako/412122a85635c70394f9af590a70757e to your computer and use it in GitHub Desktop.
xでレジスタを汚さない&x連打のundo履歴をまとめる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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