-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc2.local
92 lines (55 loc) · 1.39 KB
/
vimrc2.local
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
if v:progname =~? "evim"
finish
endif
if exists('skip_defaults_vim')
finish
endif
if &compatible
set nocompatible
endif
silent! while 0
set nocompatible
silent! endwhile
set backspace=indent,eol,start
set history=200 " keep 200 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set wildmenu " display completion matches in a status line
set ttimeout " time out for key codes
set ttimeoutlen=100 " wait up to 100ms after Esc for special key
set display=truncate
set scrolloff=5
if has('reltime')
set incsearch
endif
set nrformats-=octal
if has('win32')
set guioptions-=t
endif
map Q gq
inoremap <C-U> <C-G>u<C-U>
if has('mouse')
set mouse -=a
endif
if &t_Co > 2 || has("gui_running")
syntax on
let c_comment_strings=1
endif
" Only do this part when Vim was compiled with the +eval feature.
if 1
filetype plugin indent on
augroup vimStartup
au!
autocmd BufReadPost *
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
\ | exe "normal! g`\""
\ | endif
augroup END
endif
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
\ | wincmd p | diffthis
endif
if has('langmap') && exists('+langremap')
set nolangremap
endif