I just installed kotlin-vim
plugin.
The plugin looks like using 8-spaces indentation.
How can I change it 4-spaces indentation?
(To indent all codes I used gg=G
. Maybe I'm using wrong way for indent all the text.)
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI just installed kotlin-vim
plugin.
The plugin looks like using 8-spaces indentation.
How can I change it 4-spaces indentation?
(To indent all codes I used gg=G
. Maybe I'm using wrong way for indent all the text.)
After the plugin calls in your .vimrc
have a selection of the following (depending on desired configuration):
set tabstop=4 // how tabs are displayed
set shiftwidth=4 // how far a shift moves a line
set softtabstop=4 // how many spaces are inserted by pressing tab*
set expandtab // insert tabs as spaces
* if you are inserting tabs after text it will insert up to softtabstop
spaces until the number of characters on the line is a multiple of softtabstop