From 98f5eca725dffdc77a168d8d577a964be79156fd Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Mon, 30 Oct 2023 11:06:34 +0100 Subject: [PATCH] Better indentation --- vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vimrc b/vimrc index d773ede..2fde99d 100644 --- a/vimrc +++ b/vimrc @@ -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 = ' '