From 791dacebed983258d687c0b362e92dacb00a669d Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Wed, 9 Mar 2022 10:06:25 +0100 Subject: [PATCH] vim: Fix some keybindings n reduce path var --- .vimrc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index a9a73c9..f5da7a4 100644 --- a/.vimrc +++ b/.vimrc @@ -98,7 +98,6 @@ set autowrite " ":augroup vimStartup | au! | augroup END" augroup vimStartup au! - " 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 " (happens when dropping a file on gvim). @@ -193,6 +192,7 @@ set shiftwidth=8 " real tabs " set noexpandtab +nnoremap gg :tab term ++close lazygit "filetype specific action augroup FtSpecific @@ -200,7 +200,7 @@ augroup FtSpecific au BufRead,BufNewFile *.iris set ft=python au BufRead,BufNewFile *.ino set tabstop=4 shiftwidth=4 softtabstop=4 au BufRead,BufNewFile *.asm set ft=nasm - "hand written GNU AS + "hand written GNU AS au BufRead,BufNewFile *.S set ft=asm au BufRead,BufNewFile *.logcat set filetype=logcat au BufRead,BufNewFile logcat set filetype=logcat @@ -310,7 +310,7 @@ function! TagInNewTab() execute 'tag ' . word endfunction -map :call TagInNewTab() +map :call TagInNewTab() """"""""" " PASTE " @@ -446,7 +446,7 @@ let OmniCpp_LocalSearchDecl=1 let OmniCpp_MayCompleteDot = 1 " autocomplete after . let OmniCpp_MayCompleteArrow = 1 " autocomplete after -> let OmniCpp_MayCompleteScope = 1 " autocomplete after :: -set path+=**,..,/usr/local/include,/usr/include +set path+=..,/usr/local/include,/usr/include """"""""""""" " Latex " @@ -674,6 +674,8 @@ if v:version >= 800 if has_key(g:LanguageClient_serverCommands, &filetype) nmap K (lcn-hover) nmap gd (lcn-definition) + nmap gy (lcn-type-definition) + nmap gi (lcn-implementation) nmap gr (lcn-references) nmap cr (lcn-rename) nmap (lcn-menu) @@ -692,7 +694,7 @@ else endif "Completion (need more configuration for python, c# ...) -"Plugin 'Valloric/YouCompleteMe' +"Plugin 'ycm-core/YouCompleteMe' " VimWiki Plugin 'vimwiki/vimwiki' let g:vimwiki_list=[{'path':'~/.vim/vimwiki'}]