Better indentation

main
Jef Roosens 2023-10-30 11:06:34 +01:00
parent 5255fcb410
commit 98f5eca725
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 11 additions and 0 deletions

11
vimrc
View File

@ -9,8 +9,16 @@ set splitbelow splitright
" incsearch: search for string as you're typing it
" ignorecase + smartcase: do a case-insensitive search by default, but switch
" to case-sensitive if the search string contains capital letters
" nohlsearch: don't highlight search results
set incsearch ignorecase smartcase nohlsearch
" noexpandtab: insert tabs, not spaces
" tabstop=4: display tabs as 4 spaces
set noexpandtab tabstop=4
" Automatically keep the indentation of the previous line
set autoindent
" Create both swap & undo files
set swapfile undofile
@ -20,6 +28,9 @@ set updatetime=250
" Center cursor in buffer
set scrolloff=999
" Enable syntax highlighting where possible
syntax enable
" Set space as map key
let mapleader = ' '