-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
40 lines (30 loc) 路 866 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
" Set tab size
set tabstop=4
" Enable line numbers
set number
" Enable mouse scrolling in tmux
set mouse=a
" Enable syntax highlighting
syntax on
" Makes 'CTRL-^' execute 'lnoremap x X' and 'lnoremap X x' for each letter a-z.
for c in range(char2nr('A'), char2nr('Z'))
execute 'lnoremap ' . nr2char(c+32) . ' ' . nr2char(c)
execute 'lnoremap ' . nr2char(c) . ' ' . nr2char(c+32)
endfor
" Kill the capslock when leaving insert mode.
autocmd InsertLeave * set iminsert=0
" Disable bell sounds
set belloff=all
" Show command while it's being typed
set showcmd
" Save undo history to a directory
if !isdirectory($HOME."/.vim/undofiles")
call mkdir($HOME."/.vim/undofiles", "p", 0700)
endif
set undodir=~/.vim/undofiles
set undofile
set undolevels=10000
" Wrap long lines
set wrap
" Set background to see text when using Visual mode
set background=dark