summaryrefslogtreecommitdiff
path: root/.vim/vimrc
blob: 469e89dfed710f5e554d9ee977c9f6811174f30f (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
33
34
35
36
37
38
39
40
" Vim configuration

" General

set nocompatible
filetype plugin on
filetype indent on
syntax on
set encoding=utf-8
set splitbelow splitright
set wrap
set wildmode=longest,list,full
set lazyredraw
set ignorecase
set mouse=a
set guioptions=a
set nobackup nowritebackup
set list listchars=eol:¬,tab:»\ ,trail:∙,extends:›,precedes:‹

" Tabs

set noexpandtab
set cindent
set softtabstop=0
set tabstop=8
set shiftwidth=8

" Line numbers

set number

" Comments

" Do not comment on newline.
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o

" Miscellaneous

" Have :Q behave like :q.
command! Q :q