-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
65 lines (49 loc) · 1.07 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
" gholk's vim rc
" highlight style
":colorscheme desert
:set nocp
":set number
:nmap Y y$
:nmap cc c^
":map <C-c> <Esc>
:map! <C-B> <Left>
:map! <C-F> <Right>
:map! <C-e> <End>
:map! <C-a> <Home>
:map! <C-d> <Del>
:map! <Esc>b <S-Left>
:map! <Esc>f <S-Right>
" use space instead tab
:set tabstop=4
:set expandtab
" use abbr for my site "
:abbr myweb~ myweb.ncku.edu.tw/~c34031328/
" use star dict console version "
:nmap K :!sdcv
"
":nmap \m :!markdown
" use clipit "
:map "* :r !xsel -ob<CR>
:set autoindent
:set backspace=indent,eol,start
:set tabstop=4
:set shiftwidth=4
" ez HTML sup sub
"qs:s#_\([^ ^]\+\)#<sub>\1</sub>#g
":s#^\([^ _]\+\)#<sup>\1</sup>#g
"q
" format MathML
"qf:s# column[^>]*##g
":s#<math>#<math display="block">#
":s#</mn><mn>##g
":s#<.\{,50}>#&\r#g
"}I <ESC>xq
" call remove tab and call eqn to MathML
"qq:!tr -d '\t' | eqn -T MathML
"q
" use pathogen for coffee script
"call pathogen#infect()
"syntax enable
"filetype plugin indent on
" use easy zip archive from vim.org instead.
" https://github.com/kchmck/vim-coffee-script#install-from-a-zip-file