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
" 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