Auto indent C++11 lambda functions Vim

https://unix.stackexchange.com/questions/116199/auto-indent-c11-lambda-functions-vim

https://stackoverflow.com/questions/8062608/vim-and-c11-lambda-auto-indentation

vim 对齐c++代码中的lambda表达式,解决方法就是在~/.vimrc文件中加入下面的配置:(vim版本要求7.4以上)

set cino+=g-1,j1,(0,ws,Ws,N+s,t0,g0,+0

posted @ 2023-04-06 17:36  元几科技  阅读(13)  评论(0编辑  收藏  举报