blob: b6dd66d937bd0169f2c2631df061a3048aa6c6d4 (
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
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
|
" pathogen
execute pathogen#infect()
" settings
set nocompatible
set nu
set noet
set showcmd
set autoindent
set smartindent
set cursorline
set nocp
set showmatch
set foldmethod=indent
set completeopt=longest,menuone
set tabstop=2
set shiftwidth=2
set expandtab
set ruler
set ttyfast
set mouse=r
set bs=2
set ignorecase
set smartcase
set laststatus=2
set ttyfast
set lazyredraw
if v:version >= 703
set cc=80
endif
syntax on
filetype plugin indent on
autocmd FileType cpp set complete-=i
" spelling
setlocal spell spelllang=en_us
set nospell
" color
if $TERM =~ "^rxvt" || $TERM =~ "256color$"
set t_Co=256
colorscheme pks256
else
colorscheme default
endif
" bindings
nmap <C-t> :tabnew<cr>
nmap <C-a> :tabprevious<cr>
nmap <C-d> :tabnext<cr>
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
inoremap <C-s> <esc>:w<cr>a
nnoremap <C-s> :w<cr>
nmap <C-b> :TagbarToggle<cr>
" cursorline
autocmd InsertEnter * setlocal nocursorline
autocmd InsertLeave * setlocal cursorline
" airline
let g:airline_theme = 'pks256'
let g:airline_powerline_fonts = 1
let g:airline_enable_branch = 0
let g:airline_symbols = {}
let g:airline_symbols.whitespace = 'Ξ'
" tagbar
let g:tagbar_compact = 1
" vimwiki
let g:vimwiki_list = [{'path':'~/var/wiki'}]
|