Add C-X to search into gitfiles, add hidden files to :Files and :GFiles

This commit is contained in:
Loïc Gremaud 2020-07-01 17:45:19 +02:00
parent f4c2af0f30
commit 4c4f674720
No known key found for this signature in database
GPG Key ID: CACB2A128E557EFD
2 changed files with 5 additions and 1 deletions

4
vimrc
View File

@ -318,6 +318,8 @@ nnoremap <C-F> :Ag<CR>
nnoremap <C-c> :15Gstatus<CR> nnoremap <C-c> :15Gstatus<CR>
" Search file name " Search file name
nnoremap <C-G> :Files<CR> nnoremap <C-G> :Files<CR>
" Search git file name
nnoremap <C-X> :GFiles<CR>
" Search buffers " Search buffers
nnoremap <C-B> :Buffers<CR> nnoremap <C-B> :Buffers<CR>
" Open Flake8 error " Open Flake8 error
@ -350,4 +352,4 @@ nnoremap <c-right> :bnext<CR>
nnoremap <Return> o<ESC> nnoremap <Return> o<ESC>
nnoremap <BS> O<ESC> nnoremap <BS> O<ESC>
nnoremap <C-X> %!xxd<CR> " nnoremap <C-X> %!xxd<CR>

View File

@ -32,3 +32,5 @@ alias cls="ls -lha --color=always -F --group-directories-first |awk '{k=0;s=0;fo
alias lcs="ls -lhaS --color=always -F --group-directories-first |awk '{k=0;s=0;for(i=0;i<=8;i++){;k+=((substr(\$1,i+2,1)~/[rwxst]/)*2^(8-i));};j=4;for(i=4;i<=10;i+=3){;s+=((substr(\$1,i,1)~/[stST]/)*j);j/=2;};if(k){;printf(\"%0o%0o \",s,k);};print;}'" alias lcs="ls -lhaS --color=always -F --group-directories-first |awk '{k=0;s=0;for(i=0;i<=8;i++){;k+=((substr(\$1,i+2,1)~/[rwxst]/)*2^(8-i));};j=4;for(i=4;i<=10;i+=3){;s+=((substr(\$1,i,1)~/[stST]/)*j);j/=2;};if(k){;printf(\"%0o%0o \",s,k);};print;}'"
alias open_keepass="keepassxc-cli open ~/Documents/keepassxc/main.kdbx --key-file ~/Documents/keepassxc/main.key" alias open_keepass="keepassxc-cli open ~/Documents/keepassxc/main.kdbx --key-file ~/Documents/keepassxc/main.key"
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""'