Better indentation
parent
5255fcb410
commit
98f5eca725
11
vimrc
11
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 = ' '
|
||||
|
||||
|
|
Loading…
Reference in New Issue