-
Notifications
You must be signed in to change notification settings - Fork 0
/
vim_base
executable file
·52 lines (36 loc) · 723 Bytes
/
vim_base
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
set nocompatible
filetype off
set encoding=utf-8
set noswapfile
set dir=/tmp/
set showcmd
set background=dark
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" Auto indent
set autoindent
set smartindent
set cindent
" Set relative numbers
set nu
set relativenumber
" Incremental search highlight
set incsearch
" Warn when reaching 80 chars
match ErrorMsg '\%>80v.\+'
syntax on
" Make 'jk' act as Esc
inoremap jk <esc>
vnoremap jk <esc>
inoremap ht <esc>
vnoremap ht <esc>
inoremap ( ()<esc>
inoremap ( ()<esc>
inoremap [ []<esc>
inoremap { {}<esc>
inoremap " ""<esc>
inoremap <tab> <C-p>