summaryrefslogtreecommitdiff
path: root/.vimrc
blob: c298e8de1a5a69760b46ac6b6ab6039c8273b695 (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
" Disable Vi-compatibility
set nocompatible

" Set paths according to XDG Base Directory specification
set viminfo+=n${XDG_CACHE_HOME}/vim/viminfo
set runtimepath=${XDG_CONFIG_HOME}/vim,${XDG_CONFIG_HOME}/vim/after,$VIM,$VIMRUNTIME

" Syntax highlighting
syntax on

" Enable the filetype plugin
filetype plugin indent on
" LaTeX instead of Plain TeX
let g:tex_flavor = "latex"

" Status line and numbers
set laststatus=2
set number
set relativenumber
set ruler

" Colors
set background=dark

" Ignore some additional patterns when opening files
set wildignore+=*.o,*.so,*.swp

" Search subdirectories with :find & co
set path+=**

" Better completion
set wildmenu
set wildmode=longest:full,full

" netrw
let g:netrw_banner=0
" let g:netrw_browse_split=4
let g:netrw_altv=1
let g:netrw_liststyle=3
let g:netrw_list_hide=netrw_gitignore#Hide()