Skip to content

Commit 2aae176

Browse files
authored
Update vimrc
1 parent 2f4d29d commit 2aae176

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

vimrc

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ set hidden
55

66
" enable syntax highlighting
77
syntax on
8+
set re=0
89

910
" configure Vundle
1011
filetype on " without this vim emits a zero exit status, later, because of :ft off
1112
autocmd 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
1314
autocmd FileType python set ts=4 sw=4 sts=4
1415
autocmd FileType js set ts=2 sw=2 sts=2
1516
autocmd FileType go set ts=4 sw=4 sts=4
@@ -55,7 +56,7 @@ set ignorecase " case-insensitive
5556
set incsearch " search as you type
5657
set laststatus=2 " always show statusline
5758
set list " show trailing whitespace
58-
set listchars=tab:\ ,trail:
59+
set listchars=tab:\ ,trail:
5960
set number " show line numbers
6061
set ruler " show where you are
6162
set scrolloff=3 " show context above/below cursorline
@@ -96,6 +97,7 @@ nnoremap <leader>T :CtrlPClearCache<CR>:CtrlP<CR>
9697
nnoremap <leader>] :TagbarToggle<CR>
9798
nnoremap <leader><space> :call whitespace#strip_trailing()<CR>
9899
nnoremap <leader>g :GitGutterToggle<CR>
100+
nnoremap <leader>D :term<CR>
99101
noremap <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
174176
let g:vim_markdown_folding_disabled = 1
175177
let 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

Comments
 (0)