-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
90 lines (74 loc) · 1.65 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
"sets
set nocompatible
set laststatus=1
set confirm
set autoindent
set cindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set number
set ignorecase
set hlsearch
set noswapfile
"switches
filetype on
syntax on
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")|execute("normal `\"")|endif
endif
autocmd FileType apache setlocal commentstring=#\ %s
"keyboard commands
nmap <leader>w :w<CR>
nmap <leader>q :q<CR>
nmap ' :vsp
nmap ; :sp
nmap . :only
nmap , :close
nmap <F9> O/**<CR>@brief: <CR>@date:[<ESC>:read !date <CR>kJ$a ]<CR>@author: zhuoliang<CR>@param: <CR>@return: <CR>/<ESC>5kA
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
"My plugin
Bundle 'gmarik/vundle'
Bundle 'L9'
Bundle 'taglist.vim'
Bundle 'scrooloose/nerdcommenter'
Bundle 'bling/vim-airline'
Bundle 'scrooloose/nerdtree'
Bundle 'a.vim'
Bundle 'godlygeek/tabular'
Bundle 'plasticboy/vim-markdown'
Bundle 'snipMate'
Bundle 'scrooloose/snipmate-snippets'
Bundle 'AutoComplPop'
Bundle 'headerguard'
Bundle 'AutoClose'
Bundle 'STL-Syntax'
Bundle "EasyMotion"
Bundle 'rust-lang/rust.vim'
Bundle 'vim-latex/vim-latex'
Bundle 'sickill/vim-monokai'
Bundle 'davidhalter/jedi-vim'
"taglist
nnoremap <F8> :TlistToggle<CR>
"nerdtree
nmap nd :NERDTree
nmap nc :NERDTreeClose
"vim-powerline
set laststatus=2
set t_Co=256
let g:Powerline_symbols='unicode'
set encoding=utf8
"markdown
"let g:vim_markdown_frontmatter=1
let g:vim_markdown_folding_disabled=1
"vim-colors-solarized
"syntax enable
""set background=dark
"colorscheme solarized
"headerguard
nmap <leader>h :HeaderguardAdd<CR>
let g:clang_cpp_options='-std=c++11'
set nocompatible
colorscheme darkblue
""colorscheme monokai