Questions tagged [smartindent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

macro doesn't work anymore after disabling smartindent

A while ago, with the help of the answers in this Question, I managed to write two macro's to create debug prints: autocmd Filetype python nnoremap <buffer> \p "=[printf('print("(%s)\...
user avatar
  • 137
2 votes
1 answer
357 views

Understanding indenting rules for C++ files

Why is the following C++ source file indented like this, #include <vector> int main() { std::vector<std::vector<int>> v{ {1,2}, {1,1}, {1,2} };...
user avatar
  • 1,670
0 votes
1 answer
146 views

Is it possible to configure Vim to indent line continuation differently from indented blocks?

Here is an example of line continuation: ThisIsASuperLongClassNameWithALotOfExtraCharacters thisIsALongVariableName = ThisIsAModeratelyLongSuperClass.longFunctionCall( ...
user avatar