summaryrefslogtreecommitdiff
path: root/etc/vimrc
blob: 8b0fd4274d0d3ca5e87c8650182786afba2f8659 (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
49
50
51
52
"" vim:ft=vim

set nocompatible
set number
set title
set ttyfast
set ruler

" Tabbing (mainly)
set tabstop=5
set shiftwidth=5
set shiftround
set autoindent
set smartindent
autocmd FileType c,cpp set cindent comments=sr:/*,mb:*,ex:*/,://
inoremap # X#
set list
set listchars=tab:»·,trail:·,extends:…,precedes:…,nbsp:␠
set formatoptions=coqrt

" Folding
set foldmethod=marker

" Colors
set bg=dark
colorscheme mine
syntax enable
set t_Co=8

" Swapfiles
set backupdir=~/.vim-backup
set dir=~/.vim-backup

" Searching
set smartcase
set ignorecase
set hlsearch
set incsearch
set redrawtime=500

" Greedy remaps (TODO: Add more keys)
noremap - :
noremap r h
noremap n j
noremap t k
noremap h l
noremap R H
noremap N J
noremap T K
noremap H L
noremap c n
noremap f p