-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
41 lines (29 loc) · 771 Bytes
/
vimrc
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
" Do not try to be vi compatible
set nocompatible
" Turn on syntax highlighting
syntax on
" map the keys jk to the Escape key to improve efficiency.
imap jk <Esc>
" map the keys 'jk' to the Escape key in visual mode
xmap jk <Esc>
" Security
set modelines=0
set nomodeline
" Show line numbers
set number
" Blink cursor on error instead of beeping
set visualbell
" Encoding
set encoding=utf-8
" Whitespace
set wrap
set textwidth=79
set tabstop=2
" Blink cursor in Insert mode
set guicursor+=n-v-c:blinkon0
" Change cursor shape in different modes
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
" Highlight matched parentheses
hi MatchParen cterm=underline ctermbg=none ctermfg=none