forked from rrrgh/exercise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc_etc
120 lines (110 loc) · 3.26 KB
/
vimrc_etc
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
set nocompatible " Use Vim defaults (much better!)
set bs=indent,eol,start " allow backspacing over everything in insert mode
"set ai " always set autoindenting on
"set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
" Only do this part when compiled with support for autocommands
if has("autocmd")
augroup fedora
autocmd!
" In text files, always limit the width of text to 78 characters
" autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
" don't write swapfile on most commonly used directories for NFS mounts or USB sticks
autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/tmp,/var/tmp,/tmp
" start with spec file template
autocmd BufNewFile *.spec 0r /usr/share/vim/vimfiles/template.spec
augroup END
endif
if has("cscope") && filereadable("/usr/bin/cscope")
set csprg=/usr/bin/cscope
set csto=0
set cst
set nocsverb
" add any database in current directory
if filereadable("cscope.out")
cs add $PWD/cscope.out
" else add database pointed to by environment
elseif $CSCOPE_DB != ""
cs add $CSCOPE_DB
endif
set csverb
endif
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
filetype plugin on
if &term=="xterm"
set t_Co=8
set t_Sb=[4%dm
set t_Sf=[3%dm
endif
" Don't wake up system with blinking cursor:
" http://www.linuxpowertop.org/known.php
let &guicursor = &guicursor . ",a:blinkon0"
nnoremap ; :
nnoremap : ;
iabbrev py` #!/usr/bin/python -tt
iabbrev utf` # -*- coding: utf-8 -*-
iabbrev e6` ө
iabbrev e7` ɯ
iabbrev e2` э
iabbrev zurh` ♥
iabbrev soyomb` �
iabbrev guleml` ‹
iabbrev gulemr` ›
iabbrev gulemp` ‹ ›
iabbrev gulemi` › ‹
iabbrev gulem2l` «
iabbrev gulem2r` »
iabbrev gulem2i` » «
iabbrev gulem2p` « »
iabbrev rfrmrk` ※
"iabbrev crsdot` ※
iabbrev apprx` ≈
iabbrev laro` ← ⇐
iabbrev raro` → ⇒
iabbrev uaro` ↑ ⇑
iabbrev daro` ↓ ⇓
iabbrev chk` ✓ ✔ 🗸 ✅
iabbrev krs` ✗ ✘ x × X ✕ ☓ ✖
iabbrev crcl` ⃝ ○
iabbrev bult` •
iabbrev no` №
iabbrev circld0` ⓪
iabbrev circld1` ①
iabbrev circld2` ②
iabbrev circld3` ③
iabbrev circld4` ④
iabbrev circld5` ⑤
iabbrev circld6` ⑥
iabbrev circld7` ⑦
iabbrev circld8` ⑧
iabbrev circld9` ⑨
iabbrev circld10` ⑩
iabbrev circld11` ⑪
iabbrev circld12` ⑫
iabbrev circld13` ⑬
iabbrev circld14` ⑭
iabbrev circld15` ⑮
iabbrev circld16` ⑯
iabbrev circld17` ⑰
iabbrev circld18` ⑱
iabbrev circld19` ⑲
iabbrev circld20` ⑳
iabbrev rd` РД, Ракетный Двигатель
iabbrev glns` ГЛОНАСС; Глобальная навигационная спутниковая система
iabbrev uaz` УАЗ: Ульяновский Автомобильный Завод