blob: 9362d7eee05bba2411f7e37d0128f359fed179e2 (
plain)
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
|
" general settings
set modeline
set modelines=5
set mouse=
syntax on
set tabstop=4
set noexpandtab
set number
set shiftwidth=4
set autoindent
set spelllang=en,de
set colorcolumn=81 " don't touch this line to keep 80 chars. width
set encoding=utf-8
set fileencodings=utf-8
set listchars=tab:→\ ,nbsp:␣,trail:•,precedes:«,extends:»
set list
filetype plugin indent on
" special highlighting
highlight folded ctermfg=Black
highlight folded ctermbg=LightYellow
" hot keys
" switch tabs
map <F7> :tabp <LF>
map <F8> :tabn <LF>
" convert *.bin file to ascii or reverse (make sure to open with `vim -b`!)
map <F5> :%!xxd -r <LF>
map <F6> :%!xxd <LF>
" macros
" see ':help key-notation' to view documentation
" LaTeX enumeration (o rdered list)
let @o="A\<Enter>\<Enter>\\begin{enumerate}\<Enter>\<Enter>\\end{enumerate}\<Up>\<Tab>\\item "
" LaTeX itemize (u nordered list)
let @u="A\<Enter>\<Enter>\\begin{itemize}\<Enter>\<Enter>\\end{itemize}\<Up>\<Tab>\\item "
" LaTeX equation
let @e="A\<Enter>\<Enter>\\begin{equation}\<Enter>\<Enter>\\end{equation}\<Up>\<Tab>"
" LaTeX image
let @i="A\<Enter>\<Enter>\\begin{figure}[H]\<Enter>\<Tab>\\centering\<Enter>\\includegraphics[width=1.0\\textwidth]{}\<Enter>\<Esc>:left\<Enter>i\\end{figure}\<Esc>\<Up>A\<Left>"
|