@@ -5,11 +5,12 @@ set hidden
55
66" enable syntax highlighting
77syntax on
8+ set re = 0
89
910" configure Vundle
1011filetype on " without this vim emits a zero exit status, later, because of :ft off
1112autocmd FileType c set ts = 8 sw = 8 sts = 8
12- autocmd FileType cpp set ts = 8 sw = 8 sts = 8
13+ autocmd FileType cpp set ts = 2 sw = 2 sts = 2
1314autocmd FileType python set ts = 4 sw = 4 sts = 4
1415autocmd FileType js set ts = 2 sw = 2 sts = 2
1516autocmd FileType go set ts = 4 sw = 4 sts = 4
@@ -55,7 +56,7 @@ set ignorecase " case-insensitive
5556set incsearch " search as you type
5657set laststatus = 2 " always show statusline
5758set list " show trailing whitespace
58- set listchars = tab :▸ \ ,trail: ●
59+ set listchars = tab :• \ ,trail: •
5960set number " show line numbers
6061set ruler " show where you are
6162set scrolloff = 3 " show context above/below cursorline
@@ -96,6 +97,7 @@ nnoremap <leader>T :CtrlPClearCache<CR>:CtrlP<CR>
9697nnoremap <leader> ] :TagbarToggle<CR>
9798nnoremap <leader> <space> :call whitespace#strip_trailing()<CR>
9899nnoremap <leader> g :GitGutterToggle<CR>
100+ nnoremap <leader> D :term<CR>
99101noremap <silent> <leader> V :source ~/.vimrc<CR> :filetype detect<CR> :exe ":echo 'vimrc reloaded'"<CR>
100102
101103" in case you forgot to sudo
@@ -173,23 +175,3 @@ set encoding=utf-8
173175" For markdown
174176let g: vim_markdown_folding_disabled = 1
175177let g: snipMate = { ' snippet_version' : 1 }
176-
177- " Use tab for trigger completion with characters ahead and navigate.
178- " NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
179- " other plugin before putting this into your config.
180- inoremap <silent> <expr> <TAB>
181- \ pumvisible() ? "\<C-n> " :
182- \ <SID> check_back_space() ? "\<TAB> " :
183- \ coc#refresh()
184- inoremap <expr> <S-TAB> pumvisible() ? "\<C-p> " : "\<C-h> "
185-
186- function ! s: check_back_space () abort
187- let col = col (' .' ) - 1
188- return ! col || getline (' .' )[col - 1 ] = ~# ' \s'
189- endfunction
190-
191- " GoTo code navigation.
192- nmap <silent> gd <Plug> (coc-definition)
193- nmap <silent> gy <Plug> (coc-type-definition)
194- nmap <silent> gi <Plug> (coc-implementation)
195- nmap <silent> gr <Plug> (coc-references)
0 commit comments