-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
41 lines (31 loc) · 888 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
" http://vimhelp.appspot.com/usr_05.txt.html#usr_05.txt
" Enable italics
let &t_ZH="\e[3m"
let &t_ZR="\e[23m"
" Disable Vi-compatibility
set nocompatible
" Enable backspace in Insert mode
" - white space at the start of the line
" - line break
" - the character before where Insert mode started
set backspace=indent,eol,start
" Enable arrow keys in Insert mode
set esckeys
" Use the indent of the previous line for a newly created line
set autoindent
" Show the (partial) command as it’s being typed
set showcmd
" Centralize backups, swapfiles and undo history
set backupdir=~/.vim/backups
set directory=~/.vim/swaps
if exists("&undodir")
set undodir=~/.vim/undo
endif
" Enable syntax highlighting
syntax on
" Enable mouse in all modes
set mouse=a
" Use system clipboard
" even works in Vim compiled without '+clipboard'
vmap <C-x> :!pbcopy<CR>
vmap <C-c> :w !pbcopy<CR><CR>