1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-07 00:05:10 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
6381ad2a62 Ignore vim swap files 2019-03-19 18:23:18 +01:00
f8d8ad6f27 Search files, showing a preview window 2019-03-17 12:03:46 +01:00
2 changed files with 9 additions and 2 deletions

View File

@@ -1 +1,3 @@
tags
*.swp
*.swo

9
.vimrc
View File

@@ -164,11 +164,16 @@ command! -bang -nargs=* Rg
\ : fzf#vim#with_preview('right:50%:hidden', '?'),
\ <bang>0)
" Files command with preview window
command! -bang -nargs=? -complete=dir FilesPreview
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
" Simply type ; to search through buffers, leader-o to search through file
" names, \t for tags, \c for (Git) commits and \f to search through contents
" of files
" names, leader-O to search through file names, showing a preview window,
" \t for tags, \c for (Git) commits and \f to search through contents of files
nmap ; :Buffers<CR>
nmap <Leader>o :Files<CR>
nmap <Leader>O :FilesPreview<CR>
nmap <Leader>t :Tags<CR>
nmap <Leader>c :Commits<CR>
nmap <Leader>f :Find<CR>