Questions tagged [autoindent]
The autoindent tag has no usage guidance.
5
questions
2
votes
1answer
20 views
When autoindent setting is on, tabstop value defaults
My ~/.vimrc contains:
set tabstop=4
syntax on
set number
set noswapfile
set hlsearch
set ignorecase
set incsearch
set autoindent
filetype plugin indent on
When I didn't have the last two lines, tab ...
0
votes
1answer
19 views
Understanding interaction between visual, autoindent, and paste option
Let's start form this faulty C++ source file
#include <vector>
int main() {
std::vector<std::vector<int>> v{
1,2},
9,3},
4,2}
};
}
which ...
2
votes
1answer
50 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}
};...
2
votes
1answer
32 views
Automatically indent at the right level when moving to a completely empty line
I have this binding in my .vimrc to trick autointent into actually populating the next line with real characters, so that if I hit enter, leave the line, and click back to it, I can already be at the ...
0
votes
1answer
44 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(
...