vim,zsh: small fixes

This commit is contained in:
Mathieu Maret 2021-09-01 14:47:17 +02:00
parent abf5972db7
commit 8f73bc5560
3 changed files with 8 additions and 2 deletions

3
.vimrc
View File

@ -648,8 +648,9 @@ if v:version >= 800
if has_key(g:LanguageClient_serverCommands, &filetype)
nmap <buffer> <silent> K <Plug>(lcn-hover)
nmap <buffer> <silent> gd <Plug>(lcn-definition)
nmap <buffer> <silent> gr <Plug>(lcn-references)
nmap <buffer> <silent> cr <Plug>(lcn-rename)
map <C-F1> <Plug>(lcn-menu)
nmap <C-F1> <Plug>(lcn-menu)
endif
endfunction
autocmd FileType * call LC_maps()

View File

@ -53,6 +53,11 @@ bindkey "^[[B" down-line-or-beginning-search # Down
#bindkey "^[[A" up-line-or-search ## up arrow for back-history-search
#bindkey "^[[B" down-line-or-search ## down arrow for fwd-history-search
#edit current cmdline in vim with Ctrl-x Ctrl-e
autoload -z edit-command-line
zle -N edit-command-line
bindkey "^X^E" edit-command-line
unsetopt beep
#force emacs binding for tmux && screen
bindkey -e

View File

@ -91,7 +91,7 @@ fi
}
mgrep () {
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -regextype posix-egrep -iregex '(.*\/Makefile|.*\/Makefile\..*|.*\.make|.*\.mak|.*\.mk)' -type f -print0 | xargs -0 grep --color -n "$@"
find . -name .repo -prune -o -name .git -prune -o -path ./out -prune -o -regextype posix-egrep -iregex '(.*\/Makefile|.*\/Makefile\..*|.*\.make|.*\.mak|.*\.mk|CMakeLists.txt)' -type f -print0 | xargs -0 grep --color -n "$@"
}
bbgrep () {