Set shiftwidth to 4 spaces to mtach the tabstop. This will make indenting the same as tabbing.

develop
Nathan Steel 6 years ago
parent c8770c2673
commit 885aa3ae8a

@ -1,12 +1,13 @@
" Vim settings " Vim settings
set tabstop =4 " The amount of spaces per tab set tabstop =4 " The amount of spaces per tab
syntax on " Syntax highlighting set shiftwidth =4 " The amount of spaces when shifting >> <<
set number " Line numbers syntax on " Syntax highlighting
set cursorline " Shows a line on the cursor's line set number " Line numbers
set cursorline " Shows a line on the cursor's line
" Search settings " Search settings
set incsearch " Search as characters are entered set incsearch " Search as characters are entered
set hlsearch " Highlight all matches set hlsearch " Highlight all matches
" Changes colorcolumn per line that hits 81 characters " Changes colorcolumn per line that hits 81 characters
call matchadd('ColorColumn', '\%81v', 100) call matchadd('ColorColumn', '\%81v', 100)

Loading…
Cancel
Save