-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc_mine
136 lines (113 loc) · 3.29 KB
/
.vimrc_mine
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf',{'dir':'~/.fzf','do':'./install --all'}
Plug 'junegunn/fzf.vim'
Plug 'junegunn/vim-easy-align'
Plug 'tpope/vim-surround'
Plug 'scrooloose/NERDTree',{'on':'NERDTreeToggle'}
Plug 'altercation/vim-colors-solarized'
Plug 'rking/ag.vim'
Plug 'bling/vim-airline'
Plug 'gmarik/vundle'
"Plug 'taglist.vim'
Plug 'lepture/vim-velocity'
Plug 'pangloss/vim-javascript'
Plug 'mattn/emmet-vim'
Plug 'jiangmiao/auto-pairs'
"Plug 'davidhalter/jedi-vim'
"vim-multiple-cursors
Plug 'terryma/vim-multiple-cursors'
call plug#end()
nnoremap <silent> <C-p> :Files<CR>
nnoremap <silent> <C-l> :Lines<CR>
syntax enable
syntax on
filetype on
filetype plugin on
filetype plugin indent on
set enc=utf-8
set backspace=indent,eol,start
set whichwrap+=<,>,h,l
set scrolloff=2
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smarttab
set history=1024
set nofoldenable
set foldmethod=syntax
"set foldcolumn=4
set ignorecase
set smartcase
set showcmd
set nowrapscan
set incsearch
set hlsearch
set noerrorbells
set novisualbell
set nobackup
set noswapfile
set smartindent
set laststatus=2
set showmatch
set display=lastline
set shortmess=atl
set cursorline
set clipboard=unnamed
"set shell=zsh\ -i
set shell=/bin/zsh\ -i
let mapleader=","
let Tlist_Ctags_Cmd='/usr/local/cellar/ctags/5.8_1/bin/ctags'
nnoremap <silent> <F8> :TlistToggle<CR>
let Tlist_Show_One_File=1 "不同时显示多个文件的tag,只显示当前文件的
let Tlist_Sort_Type='name'
let Tlist_WinWidth=30 "设置taglist的宽度
let Tlist_Exit_OnlyWindow=1 "如果taglist窗口是最后一个窗口,则退出vim
let Tlist_Use_Right_Window=1 "在右侧窗口中显示taglist窗口
"let Tlist_Use_Left_Windo =1 "在左侧窗口中显示taglist窗口
let Tlist_GainFocus_On_ToggleOpen=1 "显示时获取焦点
"NERDTree
let NERDTreeMinimalUI=1
let NERDTreeShowHidden=1
let NERDTree_tabs_open_on_console_startup =1
"vim-multiple-cursors
let g:multi_cursor_use_default_mapping=0
let g:multi_cursor_select_all_word_key='<C-j>'
let g:multi_cursor_start_word_key='<C-n>'
let g:multi_cursor_next_key='<C-n>'
let g:multi_cursor_prev_key='<C-p>'
let g:multi_cursor_skip_key='<C-x>'
let g:multi_cursor_quit_key='<Esc>'
let g:javascript_plugin_jsdoc =1
let g:javascript_plugin_ngdoc =1
let g:javascript_plugin_flow =1
augroup javascript_folding
au!
au FileType javascript setlocal foldmethod=syntax
augroup END
"let NERDTree_tabs_focus_on_files=1
nnoremap <silent> <F7> :NERDTreeToggle<CR>
nnoremap <silent> <S-F7> :NERDTreeFind<CR>
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
nnoremap <leader>j :YcmCompleter GoToDefinitionElseDeclaration<CR>
autocmd FileType java setlocal omnifunc=javacomplete#Complete
if has('gui_running')
set background=light
else
set background=dark
endif
colorscheme solarized
au BufNewFile,BufRead *.vm,*.html,*.htm set ft=velocity
"按F5运行python"
"map <F5> :Autopep8<CR> :w<CR> :call RunPython()<CR>
"function RunPython()
" let mp = &makeprg
" let ef = &errorformat
" let exeFile = expand("%:t")
" setlocal makeprg=python\ -u
" set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m
" silent make %
" copen
" let &makeprg = mp
" let &errorformat = ef
"endfunction