Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

行がレジスタに入っている状態で最左列でPしてからのundoでリージョンハイライトが残る #8

Open
LeafCage opened this issue Dec 20, 2013 · 0 comments
Labels

Comments

@LeafCage
Copy link
Owner

http://lingr.com/room/vim/archives/2013/12/20#message-17873040

あと、P で貼り付けた後に u で undo するとその場ではハイライトが残っちゃいます。その後動かせば消えるので大きな問題はないですが

http://lingr.com/room/vim/archives/2013/12/20#message-17873709

行選択 yank して、カーソルを一番左のカラムにして Pu してみてください
矩形選択でもできるはず

undo時にカーソルが動かないのでautocmd CursorMovedじゃあ検知できない。
autocmd TextChanged使えばいけるかなと思ったけど、
無理でした。

  • autocmd定義と同時に発動する。
  • b:changedtickと、保存したchangedtickの値を比較するとなぜか常に等しい。

ということで、検知として役に立てられなかった。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant