Is there any way to get Vim to auto indent C++11 lambda functions correctly?
I have tried many different permutations of smartindent, cindent, etc. in .vimrc.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Here is piece of my
~/.vim/vimrc configuration file:
set cindent " enable specific indenting for C code set cino+=j1,(0,ws,Ws " enable partial c++11 (lambda) support
One workaround (not answer) is to declare the lambda and pass the func ptr into the receiving function... dilutes the convenience of lambdas though.