123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- set foldmethod=indent
- set expandtab tabstop=2 shiftwidth=2
- inoremap ' '
- set fo+=t
- set fo+=n
- set fo-=a
- nnoremap <leader>f :call ToggleAutoFormat()<cr>
- fu! ToggleAutoFormat()
- if stridx(&fo, 'a') == -1
- set fo+=a
- else
- set fo-=a
- endif
- endf
- let &formatlistpat='^\s*\(\d\+[\]:.)}\t ]\|[•][\t ]\)\s*'
- inoremap \Ep Σ
- inoremap \ep ε
- inoremap \Ee ∈
- inoremap \ee ϵ
- inoremap \delta ∆
- inoremap \fore ⸫
- inoremap \-> →
- inoremap \/> ↙
- inoremap \\> ↘
- inoremap \|> ↓
- inoremap \=> ⇒
- inoremap \. •<Space>
- inoremap \par ¶
- inoremap \sec §
- inoremap \_1 ₁
- inoremap \_2 ₂
- inoremap \^1 ¹
- syn match myTodo /^.*TODO:.*/
- hi myTodo cterm=bold ctermbg=red ctermfg=white
- setlocal conceallevel=2
- setlocal concealcursor=nvc
- syn region boldText matchgroup=boldDelim start=/\*/ end=/\*/ concealends
- hi boldText cterm=bold
- syn match escapedAsterisk /\\\*/ conceal cchar=*
- syn region italicText matchgroup=italicDelim start=/\// end=/\// concealends
- hi italicText cterm=italic
- syn match escapedItalic /\\\// conceal cchar=/
- syn region underlineText matchgroup=underlineDelim start=/_/ end=/_/ concealends
- hi underlineText cterm=underline
- syn match underlineText /\\_/ conceal cchar=_
- inoremap * **<left>
- inoremap / //<left>
- inoremap _ __<left>
- let g:conceal_on=1
- nnoremap <leader>m :call ToggleConceal()<cr>
- fu! ToggleConceal()
- if g:conceal_on
- set conceallevel=0
- let g:conceal_on=0
- else
- set conceallevel=2
- let g:conceal_on=1
- endif
- endf
- inoremap \hl <esc>:call FillLine('─')<cr>i
- inoremap \dl <esc>:call FillLine('-')<cr>i
- fu! FillLine(char)
- for i in range(0, &textwidth - 1)
- execute 'norm!i' .. a:char
- endfor
- endf
|