blob: f37fe663f85b6c36597713d620e8f483b82b8b74 (
plain) (
blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
" Enable ruler (will display line number and column number by default).
set ruler
" Enable syntax highlight.
syntax on
" Expand tabs to spaces.
set expandtab
" Use four-space indentation by default.
set tabstop=4
set softtabstop=4
set shiftwidth=4
" Limit text width.
set textwidth=79
" Do not expand tabs and use eight space indentation for C files.
autocmd FileType c setlocal noexpandtab
autocmd FileType c setlocal tabstop=8
autocmd FileType c setlocal softtabstop=8
autocmd FileType c setlocal shiftwidth=8
" Same for Go files.
autocmd FileType go setlocal noexpandtab
autocmd FileType go setlocal tabstop=8
autocmd FileType go setlocal softtabstop=8
autocmd FileType go setlocal shiftwidth=8
" In Makefiles, don't expand tabs to spaces, since we need the actual tabs.
autocmd FileType make setlocal noexpandtab
" Use two-space indentation for yaml files.
autocmd FileType yaml setlocal tabstop=2
autocmd FileType yaml setlocal softtabstop=2
autocmd FileType yaml setlocal shiftwidth=2
" Limit width to 72 columns for git commit messages.
autocmd FileType gitcommit setlocal textwidth=72
" And mail messages as well.
autocmd FileType mail setlocal textwidth=72
" Disable incremental search.
set noincsearch
" Disable highlighting of the search results.
set nohlsearch
" Disable incremental search.
set noincsearch
|