better fzf in vim

This commit is contained in:
Felix Van der Jeugt 2017-07-06 14:39:28 +02:00
parent e4ee2bf4fc
commit 86f23575b2
No known key found for this signature in database
GPG Key ID: 58B209295023754D
2 changed files with 4 additions and 1 deletions

View File

@ -169,7 +169,7 @@ map g# <Plug>(incsearch-nohl-g#)
" path for fzf install " path for fzf install
set rtp+=/usr/share/vim/vimfiles/ set rtp+=/usr/share/vim/vimfiles/
nnoremap <Leader>l :GitFiles<CR> nnoremap <Leader>l :FZF<CR>
nnoremap <Leader>s :Tags<CR> nnoremap <Leader>s :Tags<CR>
" Plugged }}} " Plugged }}}

View File

@ -18,6 +18,9 @@ export PATH="$HOME/.local/bin:$CABAL_HOME/bin:$RBENV_HOME/shims:$CARGO_HOME/bin:
export EDITOR="nvim" export EDITOR="nvim"
#stty -ixon # turn of <C-s> for vimshell #stty -ixon # turn of <C-s> for vimshell
# Searching
export FZF_DEFAULT_COMMAND='(git ls-files -co --exclude-standard || rg --files) 2> /dev/null'
# Start X if we're in tty1 # Start X if we're in tty1
xsession() { xsession() {
startx 2>&1 || vlock startx 2>&1 || vlock