-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
160 lines (128 loc) · 4.31 KB
/
vimrc
File metadata and controls
160 lines (128 loc) · 4.31 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
""""""""""""""""""""""""""""""""""""""""
" manage vim plugins with vundle "
" "
""""""""""""""""""""""""""""""""""""""""
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-abolish'
Plugin 'Raimondi/delimitMate'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-repeat'
Plugin 'SirVer/ultisnips' " Track the engine.
Plugin 'honza/vim-snippets' " Snippets are separated from the engine.
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-unimpaired'
Plugin 'Valloric/YouCompleteMe'
Plugin 'tomtom/tcomment_vim'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-bundler'
Plugin 'suan/vim-instant-markdown'
Plugin 'mileszs/ack.vim'
Plugin 'lervag/vimtex'
call vundle#end()
filetype plugin indent on
filetype plugin on
""""""""""""""""""""""""""""""""""""""""
" settings for vim-markdown "
" "
""""""""""""""""""""""""""""""""""""""""
let g:vim_markdown_folding_disabled=1
""""""""""""""""""""""""""""""""""""""""
" settings for ultisnips "
" "
""""""""""""""""""""""""""""""""""""""""
let g:UltiSnipsExpandTrigger="<tab>" " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsJumpForwardTrigger="<tab>"
let g:UltiSnipsJumpBackwardTrigger="<s-tab>"
let g:UltiSnipsEditSplit="vertical" " If you want :UltiSnipsEdit to split your window.
""""""""""""""""""""""""""""""""""""""""
" settings for youcompleteme "
" "
""""""""""""""""""""""""""""""""""""""""
let g:ycm_key_list_select_completion = []
let g:ycm_key_list_previous_completion = []
let g:ycm_key_invoke_completion = '<c-y>'
let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py"
"let g:ycm_auto_trigger=0
"let g:ycm_key_invoke_completion='<c-m>'
""""""""""""""""""""""""""""""""""""""""
" settings for vim-instant-markdown "
" "
""""""""""""""""""""""""""""""""""""""""
let g:instant_markdown_autostart = 0
""""""""""""""""""""""""""""""""""""""""
" settings for vimtex "
" "
""""""""""""""""""""""""""""""""""""""""
if !exists('g:ycm_semantic_triggers')
let g:ycm_semantic_triggers = {}
endif
let g:ycm_semantic_triggers.tex = [
\ 're!\\[A-Za-z]*(ref|cite)[A-Za-z]*([^]]*])?{([^}]*, ?)*'
\ ]
let g:vimtex_view_method = 'mupdf'
""""""""""""""""""""""""""""""""""""""""
" settings for appearance "
" "
""""""""""""""""""""""""""""""""""""""""
colorscheme desert
syntax on
set nu
set laststatus=2
set expandtab
set ruler
set tabstop=2
set shiftwidth=2
set foldmethod=indent
autocmd filetype python set tabstop=8
autocmd filetype python set shiftwidth=4
autocmd filetype python set softtabstop=4
autocmd filetype mkd.markdown set tabstop=8
autocmd filetype mkd.markdown set shiftwidth=4
autocmd filetype mkd.markdown set softtabstop=4
""""""""""""""""""""""""""""""""""""""""
" settings for property "
" "
""""""""""""""""""""""""""""""""""""""""
set nrformats=
set mouse=a
set incsearch
set hlsearch
set history=200
set hidden
set backspace=2
set ignorecase
set smartcase
set scrolloff=3
set tags+=gems.tags
""""""""""""""""""""""""""""""""""""""""
" settings for key mappings "
" "
""""""""""""""""""""""""""""""""""""""""
let mapleader=','
noremap \ ,
cnoremap <silent> <C-p> <Up>
cnoremap <silent> <C-n> <Down>
cnoremap <expr> %% getcmdtype()==':'? expand('%:h').'/' : '%%'
nnoremap <tab> :bn<CR>
nnoremap <s-tab> :bp<CR>
nnoremap <silent> <Leader>n :noh<CR>
nnoremap & :&&<CR>
xnoremap & :&&<CR>
cmap w!! w !sudo tee > /dev/null %
map ,ss :setlocas spell!<cr>
imap jj <esc>
inoremap <c-l> <esc>la
inoremap <c-h> <esc>i
""""""""""""""""""""""""""""""""""""""""
" settings for built-in plugins "
" "
""""""""""""""""""""""""""""""""""""""""
runtime macros/matchit.vim
set dictionary=/usr/share/dict/words