vim: Fix some keybindings n reduce path var
This commit is contained in:
parent
0cbd465e41
commit
791dacebed
10
.vimrc
10
.vimrc
@ -98,7 +98,6 @@ set autowrite
|
|||||||
" ":augroup vimStartup | au! | augroup END"
|
" ":augroup vimStartup | au! | augroup END"
|
||||||
augroup vimStartup
|
augroup vimStartup
|
||||||
au!
|
au!
|
||||||
|
|
||||||
" When editing a file, always jump to the last known cursor position.
|
" When editing a file, always jump to the last known cursor position.
|
||||||
" Don't do it when the position is invalid or when inside an event handler
|
" Don't do it when the position is invalid or when inside an event handler
|
||||||
" (happens when dropping a file on gvim).
|
" (happens when dropping a file on gvim).
|
||||||
@ -193,6 +192,7 @@ set shiftwidth=8
|
|||||||
" real tabs
|
" real tabs
|
||||||
" set noexpandtab
|
" set noexpandtab
|
||||||
|
|
||||||
|
nnoremap <silent> <leader>gg :tab term ++close lazygit<CR>
|
||||||
|
|
||||||
"filetype specific action
|
"filetype specific action
|
||||||
augroup FtSpecific
|
augroup FtSpecific
|
||||||
@ -310,7 +310,7 @@ function! TagInNewTab()
|
|||||||
execute 'tag ' . word
|
execute 'tag ' . word
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
map <C-S-I> :call TagInNewTab()<CR>
|
map <S-T> :call TagInNewTab()<CR>
|
||||||
|
|
||||||
"""""""""
|
"""""""""
|
||||||
" PASTE "
|
" PASTE "
|
||||||
@ -446,7 +446,7 @@ let OmniCpp_LocalSearchDecl=1
|
|||||||
let OmniCpp_MayCompleteDot = 1 " autocomplete after .
|
let OmniCpp_MayCompleteDot = 1 " autocomplete after .
|
||||||
let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
|
let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
|
||||||
let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
|
let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
|
||||||
set path+=**,..,/usr/local/include,/usr/include
|
set path+=..,/usr/local/include,/usr/include
|
||||||
|
|
||||||
"""""""""""""
|
"""""""""""""
|
||||||
" Latex "
|
" Latex "
|
||||||
@ -674,6 +674,8 @@ if v:version >= 800
|
|||||||
if has_key(g:LanguageClient_serverCommands, &filetype)
|
if has_key(g:LanguageClient_serverCommands, &filetype)
|
||||||
nmap <buffer> <silent> K <Plug>(lcn-hover)
|
nmap <buffer> <silent> K <Plug>(lcn-hover)
|
||||||
nmap <buffer> <silent> gd <Plug>(lcn-definition)
|
nmap <buffer> <silent> gd <Plug>(lcn-definition)
|
||||||
|
nmap <buffer> <silent> gy <Plug>(lcn-type-definition)
|
||||||
|
nmap <buffer> <silent> gi <Plug>(lcn-implementation)
|
||||||
nmap <buffer> <silent> gr <Plug>(lcn-references)
|
nmap <buffer> <silent> gr <Plug>(lcn-references)
|
||||||
nmap <buffer> <silent> cr <Plug>(lcn-rename)
|
nmap <buffer> <silent> cr <Plug>(lcn-rename)
|
||||||
nmap <C-F1> <Plug>(lcn-menu)
|
nmap <C-F1> <Plug>(lcn-menu)
|
||||||
@ -692,7 +694,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
"Completion (need more configuration for python, c# ...)
|
"Completion (need more configuration for python, c# ...)
|
||||||
"Plugin 'Valloric/YouCompleteMe'
|
"Plugin 'ycm-core/YouCompleteMe'
|
||||||
" VimWiki
|
" VimWiki
|
||||||
Plugin 'vimwiki/vimwiki'
|
Plugin 'vimwiki/vimwiki'
|
||||||
let g:vimwiki_list=[{'path':'~/.vim/vimwiki'}]
|
let g:vimwiki_list=[{'path':'~/.vim/vimwiki'}]
|
||||||
|
Loading…
Reference in New Issue
Block a user