8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
shiftwidthを0に設定すると、filetype=vimの時のgg=Gするとインデントが亡くなり無くなります。
gg=G
https://github.com/vim/vim/blob/e3faf44bef029d07f37a457bd0050653b628058f/runtime/indent/vim.vim#L34-L97
&swの代わりにshiftwidth()関数を使う必要があります。 runtimeファイルの修正はこの関数が追加された後なので、 この関数が使えるかのバージョンチェックも不要で、ただ置換すれば良いと思います。
&sw
shiftwidth()
@rbtnnさんが見つけてくれました。
http://lingr.com/room/vim/archives/2016/01/23#message-22976509
The text was updated successfully, but these errors were encountered:
Pull Request投げました。 vim/vim#578
Sorry, something went wrong.
実は shiftwidth() を使っていないのが結構あってですね 😓 #714 参照
oh...
vim/vim@705ada1#diff-59df7be2982b9c340efe6e4d137ffd68
あ、あのPRの最初のコミットのみ取り込まれちゃったのか。 2コミット目で全てのindentプラグインの修正をしたのですが。 まぁおそらくindent/vim.vimのdiffはスキップしてもらえば大丈夫かな…
indent/vim.vim
No branches or pull requests
問題
shiftwidthを0に設定すると、filetype=vimの時の
gg=G
するとインデントが亡くなり無くなります。修正箇所
https://github.com/vim/vim/blob/e3faf44bef029d07f37a457bd0050653b628058f/runtime/indent/vim.vim#L34-L97
修正方法
&sw
の代わりにshiftwidth()
関数を使う必要があります。runtimeファイルの修正はこの関数が追加された後なので、
この関数が使えるかのバージョンチェックも不要で、ただ置換すれば良いと思います。
会話ログ
@rbtnnさんが見つけてくれました。
http://lingr.com/room/vim/archives/2016/01/23#message-22976509
The text was updated successfully, but these errors were encountered: