blob: c9b883807f2d0cc8732a1e0ed4176672a5656d39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
" https://vimhelp.org/options.txt.html
set nocompatible
syntax enable
" Sane defaults.
set path+=**
set relativenumber
set smartcase
set ignorecase
set incsearch
set nowrap
set nobackup
set noswapfile
set autoread
set wildmenu
set autoindent
set encoding=utf8
set backspace=2
set scrolloff=4
set spelllang=en_us
set laststatus=2
" Buffer navigation remaps.
nnoremap <C-]> :bnext<cr>
nnoremap <C-[> :bprevious<cr>
" Language specific indentation.
filetype plugin indent on
autocmd Filetype make,go,sh setlocal noexpandtab tabstop=4 shiftwidth=4
autocmd Filetype c,cpp,html,javascript,css,python setlocal expandtab tabstop=2 shiftwidth=2
|