summaryrefslogtreecommitdiff
path: root/vim/.vimrc
blob: 9444378d2e6c1ece1fd0015422056dd417d49d22 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
" pathogen
execute pathogen#infect()

" settings
set nocompatible
set nu
set noet
set showcmd
set autoindent
set smartindent
set cursorline
set nocp
set showmatch
set foldenable
set foldmethod=indent
set foldlevelstart=4
set foldnestmax=10
set completeopt=longest,menuone
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set ruler
set ttyfast
set mouse=r
set bs=2
set ignorecase
set smartcase
set laststatus=2
set incsearch
set hlsearch
set ttyfast
set lazyredraw
set wildmenu
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 spellfile=$HOME/.vim/spell/en.utf-8.add
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>
imap     ^L      <Esc>[s1z=`]a


" cursorline
" autocmd InsertEnter * setlocal cursorline
" autocmd InsertLeave * setlocal nocursorline

" airline
let g:airline_theme                     = 'pks256'
let g:airline_powerline_fonts           = 1
let g:airline#extensions#branch#enabled = 1
let g:airline_symbols                   = {}
let g:airline_symbols.whitespace        = 'Ξ'

" tagbar
let g:tagbar_compact = 1

" vimwiki
let g:vimwiki_list = [{'path':'~/wiki'}]

" semantic highlighting
let s:semanticGUIColors = [ '#72d572', '#c5e1a5', '#e6ee9c', '#fff59d', '#ffe082', '#ffcc80', '#ffab91', '#bcaaa4', '#b0bec5', '#ffa726', '#ff8a65', '#f9bdbb', '#f9bdbb', '#f8bbd0', '#e1bee7', '#d1c4e9', '#ffe0b2', '#c5cae9', '#d0d9ff', '#b3e5fc', '#b2ebf2', '#b2dfdb', '#a3e9a4', '#dcedc8' , '#f0f4c3', '#ffb74d' ]