From 885aa3ae8a7d967f4292df4fcfff2413786d31bf Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 5 Jun 2020 21:27:16 +0100 Subject: [PATCH] Set shiftwidth to 4 spaces to mtach the tabstop. This will make indenting the same as tabbing. --- .vimrc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.vimrc b/.vimrc index 2e4fc8f..ad18fc5 100644 --- a/.vimrc +++ b/.vimrc @@ -1,12 +1,13 @@ " Vim settings -set tabstop =4 " The amount of spaces per tab -syntax on " Syntax highlighting -set number " Line numbers -set cursorline " Shows a line on the cursor's line +set tabstop =4 " The amount of spaces per tab +set shiftwidth =4 " The amount of spaces when shifting >> << +syntax on " Syntax highlighting +set number " Line numbers +set cursorline " Shows a line on the cursor's line " Search settings -set incsearch " Search as characters are entered -set hlsearch " Highlight all matches +set incsearch " Search as characters are entered +set hlsearch " Highlight all matches " Changes colorcolumn per line that hits 81 characters call matchadd('ColorColumn', '\%81v', 100)