-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·66 lines (51 loc) · 1.19 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
65
66
" -[ General behaviour ]-
" general
set nocompatible
"set nowrap
"paste on
" search
set nohls
set incsearch
set showmatch
syntax on
set mouse=a
" identing
set autoindent
set smartindent
" command mode
set wildmenu
set wildmode=list:longest,full
" -[ Look ]-
" general
set showcmd
set showmode
set number
:syntax on
" statusline
set statusline=%<%f\ %y%h%m%r\ PWD:%{getcwd()}%=%-14.(%l,%c%V%)\ %P
set laststatus=2
" colours
"set t_Co=256
colorscheme darkdot
" -[ FileTypes ]-
" mail
autocmd FileType mail,human set formatoptions+=t textwidth=72
" Python stuff
autocmd FileType python let python_highlight_all = 1
autocmd FileType python let python_slow_sync = 1
autocmd FileType python set expandtab shiftwidth=4 softtabstop=4
" LaTeX
autocmd Filetype tex,latex set grepprg=grep\ -nH\ $
autocmd Filetype tex,latex let g:tex_flavor = "latex"
" -[ Mappings ]-"
" taglist
nnoremap <silent> <F8> :TlistToggle<CR>
inoremap <silent> <F8> <esc>:TlistToggle<CR>a
nnoremap <silent> <F9> :TlistUpdate<CR>
inoremap <silent> <F9> <esc>:TlistUpdate<CR>a
" -[ Plugins and Scripts ]-
" taglist
let Tlist_Use_Right_Window = 1
let Tlist_Compart_Format = 1
let Tlist_Show_Menu = 1
let Tlist_Exit_OnlyWindow = 1