Auto indent C++11 lambda functions Vim
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
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.
vim c++ vimrc
add a comment |
up vote
3
down vote
favorite
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.
vim c++ vimrc
1
I think it's related to your standards such as old style C, camel case, and so on. please refer to your standard and adjust vim according to your standard,
– PersianGulf
Feb 21 '14 at 12:33
Please, don't post images of text. Are we supposed to re-type that complex code when testing?
– Kusalananda
yesterday
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
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.
vim c++ vimrc
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.
vim c++ vimrc
vim c++ vimrc
asked Feb 21 '14 at 0:18
frickskit
164115
164115
1
I think it's related to your standards such as old style C, camel case, and so on. please refer to your standard and adjust vim according to your standard,
– PersianGulf
Feb 21 '14 at 12:33
Please, don't post images of text. Are we supposed to re-type that complex code when testing?
– Kusalananda
yesterday
add a comment |
1
I think it's related to your standards such as old style C, camel case, and so on. please refer to your standard and adjust vim according to your standard,
– PersianGulf
Feb 21 '14 at 12:33
Please, don't post images of text. Are we supposed to re-type that complex code when testing?
– Kusalananda
yesterday
1
1
I think it's related to your standards such as old style C, camel case, and so on. please refer to your standard and adjust vim according to your standard,
– PersianGulf
Feb 21 '14 at 12:33
I think it's related to your standards such as old style C, camel case, and so on. please refer to your standard and adjust vim according to your standard,
– PersianGulf
Feb 21 '14 at 12:33
Please, don't post images of text. Are we supposed to re-type that complex code when testing?
– Kusalananda
yesterday
Please, don't post images of text. Are we supposed to re-type that complex code when testing?
– Kusalananda
yesterday
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
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
New contributor
add a comment |
up vote
0
down vote
One workaround (not answer) is to declare the lambda and pass the func ptr into the receiving function... dilutes the convenience of lambdas though.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
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
New contributor
add a comment |
up vote
1
down vote
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
New contributor
add a comment |
up vote
1
down vote
up vote
1
down vote
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
New contributor
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
New contributor
edited yesterday
perror
1,83241834
1,83241834
New contributor
answered yesterday
Andrey A. Ugolnik
112
112
New contributor
New contributor
add a comment |
add a comment |
up vote
0
down vote
One workaround (not answer) is to declare the lambda and pass the func ptr into the receiving function... dilutes the convenience of lambdas though.
add a comment |
up vote
0
down vote
One workaround (not answer) is to declare the lambda and pass the func ptr into the receiving function... dilutes the convenience of lambdas though.
add a comment |
up vote
0
down vote
up vote
0
down vote
One workaround (not answer) is to declare the lambda and pass the func ptr into the receiving function... dilutes the convenience of lambdas though.
One workaround (not answer) is to declare the lambda and pass the func ptr into the receiving function... dilutes the convenience of lambdas though.
edited Feb 21 '14 at 13:54
answered Feb 21 '14 at 13:16
frickskit
164115
164115
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f116199%2fauto-indent-c11-lambda-functions-vim%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I think it's related to your standards such as old style C, camel case, and so on. please refer to your standard and adjust vim according to your standard,
– PersianGulf
Feb 21 '14 at 12:33
Please, don't post images of text. Are we supposed to re-type that complex code when testing?
– Kusalananda
yesterday