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
|
" incsearch: search for string as you're typing it
|
||||||
" ignorecase + smartcase: do a case-insensitive search by default, but switch
|
" ignorecase + smartcase: do a case-insensitive search by default, but switch
|
||||||
" to case-sensitive if the search string contains capital letters
|
" to case-sensitive if the search string contains capital letters
|
||||||
|
" nohlsearch: don't highlight search results
|
||||||
set incsearch ignorecase smartcase nohlsearch
|
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
|
" Create both swap & undo files
|
||||||
set swapfile undofile
|
set swapfile undofile
|
||||||
|
|
||||||
|
@ -20,6 +28,9 @@ set updatetime=250
|
||||||
" Center cursor in buffer
|
" Center cursor in buffer
|
||||||
set scrolloff=999
|
set scrolloff=999
|
||||||
|
|
||||||
|
" Enable syntax highlighting where possible
|
||||||
|
syntax enable
|
||||||
|
|
||||||
" Set space as map key
|
" Set space as map key
|
||||||
let mapleader = ' '
|
let mapleader = ' '
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue