Started improving settings.vim

master
Jef Roosens 2021-02-01 10:31:18 +01:00
parent 5668a4a467
commit 55babb1f8e
1 changed files with 7 additions and 15 deletions

View File

@ -10,26 +10,18 @@ hi LineNr ctermfg=NONE ctermbg=NONE
" Line numbers " Line numbers
" I use the combination of absolute and relative line numbers. On the " I use the combination of absolute and relative line numbers. On the
" current line, it shows the absolute; on all the others, the relative. " current line, it shows the absolute; on all the others, the relative.
" This shows the absolute line number set number relativenumber
set number
" This shows the relative line numbers
set relativenumber
" Splits " Splits
" I prefer the logic of 'open your main window first, and all other " I prefer the logic of 'open your main window first, and all other
" afterwards'. " afterwards', so this makes a new file open below or to the right of the
" Make horizontal splits appear below active window " current one.
set splitbelow set splitbelow splitright
" Same for vertical splits, but to the right of active window
set splitright
" Indentation " Indentation
" This makes Vim use spaces instead of tabs for indentation " I only use four spaces as indentation. This configures Vim to always use four
set expandtab " spaces, for both manual tabs and automatic indentation.
" This sets each indent to be 4 characters wide (4 spaces with expandtab on) set expandtab tabstop=4 shiftwidth=4
set tabstop=4
" Number of spaces that should be used for auto indentation
set shiftwidth=4
" Search functionality " Search functionality
" Show matches as pattern is being typed " Show matches as pattern is being typed