New line after bracket has 8 spaces indentation instead of 4?
See original GitHub issueAfter typing the bracket and enter, the next line will has 8 spaces indentation:
print conn.generate_url(
seconds,
'GET',
instead of 4:
print conn.generate_url(
seconds,
'GET',
My ~/.vimrc
: https://github.com/quantonganh/salt-states/blob/master/vim/vimrc.jinja2
Did I miss something?
Hereβs the list of my plugins:
βββ ctrlp.vim
βββ gundo.vim
βββ jedi-vim
βββ nerdtree
βββ powerline
βββ salt-vim
βββ supertab
βββ syntastic
βββ ultisnips
βββ vim-fugitive
βββ vim-indent-guides
βββ vim-surround
βββ vim-yankstack
βββ vundle
Issue Analytics
- State:
- Created 9 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to make vim only insert 4 spaces (one indent level) for ...
After typing the bracket and enter, the next line will has 8 spaces indentation: print conn.generate_url( seconds, 'GET',. instead of 4:
Read more >IntelliJ does not respect indentation settings of 4 spaces ...
I have set the indentation to 4 spaces. The files in Git are indented with 4 spaces. When I press CTRL+SHIFT+F, the whole...
Read more >VS Code tips β Indentation settings and the ... - YouTube
VS Code shows the indentation settings for the current in the status bar. Click on this entry to quickly change the tab size...
Read more >Clang-Format Style Options β Clang 16.0.0git documentation
We'll use defaults from the LLVM style, but with 4 columns indentation. ... Closing brackets will be placed on a new line. E.g.:....
Read more >Formatting - Coding Style - Read the Docs
The indentation is 4 spaces. Choose good parameter names. All parameters should be aligned if possible. The open curly brace is always on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
btw: I recommend https://github.com/hynek/vim-python-pep8-indent.
@quantonganh ok. I see.
I think we should add this line in your
.vimrc
because you already have
filetype plugin indent on