KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I like to write code using the ternary ?: operator like this: std::string result = input.empty() ? createNewItem() : processInput( input ); How can I configure vim so that when pressing Return after having typed createNewItem() indents the next line so that the cursor is in the same column as the last ? so that I can just continue typing : processInput( input ); ? I tried looking at the cinoptions-values setting but I didn't see anything relevant.
Tags (comma-separated)
Save Edits
Cancel