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

囲み処理を行ったあとに、処理を行いたい #16

Open
YoshihiroIto opened this issue Dec 13, 2014 · 0 comments
Open

囲み処理を行ったあとに、処理を行いたい #16

YoshihiroIto opened this issue Dec 13, 2014 · 0 comments

Comments

@YoshihiroIto
Copy link

VAC2014 紹介で存在知りました。
素晴らしいプラグインありがとうございます。

tpope/vim-surround からの移行中なのですが、
要望があります。

let g:operator#surround#blocks =
      \ {
      \   '-' : [
      \       { 'block' : ["{\<CR>", "\<CR>}"], 'motionwise' : ['line'], 'keys' : ['{', '}'] },
      \   ]
      \ }

この設定をしています。
C++コード編集中に波括弧で囲いたいときはこの定義がよく効くのですが、
その後インデントを合わせたいので
=%
を入力しています。
これをなんとか自動出来ないものかなと思いました。

よろしくお願いします。

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

No branches or pull requests

1 participant