From 55babb1f8ecf8b2e5490501cd7f65710ed9b33bf Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Mon, 1 Feb 2021 10:31:18 +0100 Subject: [PATCH] Started improving settings.vim --- init/settings.vim | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/init/settings.vim b/init/settings.vim index 1d2cc21..4579bfe 100644 --- a/init/settings.vim +++ b/init/settings.vim @@ -10,26 +10,18 @@ hi LineNr ctermfg=NONE ctermbg=NONE " Line numbers " I use the combination of absolute and relative line numbers. On the " current line, it shows the absolute; on all the others, the relative. -" This shows the absolute line number -set number -" This shows the relative line numbers -set relativenumber +set number relativenumber " Splits " I prefer the logic of 'open your main window first, and all other -" afterwards'. -" Make horizontal splits appear below active window -set splitbelow -" Same for vertical splits, but to the right of active window -set splitright +" afterwards', so this makes a new file open below or to the right of the +" current one. +set splitbelow splitright " Indentation -" This makes Vim use spaces instead of tabs for indentation -set expandtab -" This sets each indent to be 4 characters wide (4 spaces with expandtab on) -set tabstop=4 -" Number of spaces that should be used for auto indentation -set shiftwidth=4 +" I only use four spaces as indentation. This configures Vim to always use four +" spaces, for both manual tabs and automatic indentation. +set expandtab tabstop=4 shiftwidth=4 " Search functionality " Show matches as pattern is being typed