summaryrefslogtreecommitdiff
path: root/vim/.config/vim/vimrc
blob: a057cf3db38914a31b2b86cd9cc8793e37f63b6e (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
41
42
43
44
45
46
47
48
" 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,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,${XDG_CONFIG_HOME}/vim/after
let g:netrw_home = "${XDG_CACHE_HOME}/vim"

" 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

" Fast redrawing
set ttyfast

" Splits
set splitbelow
set splitright

" Colors
set background=dark

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

" 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()