This commit is contained in:
Gokcehan committed 2016-09-07 01:47:08 +03:00
1 parent f59227c5f9
commit c93738a6ec
4 files changed
+41 -33

No files matched your search

+13 -10
View File
@@ -1,16 +1,19 @@
" use lf to select and open a file in vim
" adapted from the similar script for ranger
" Use lf to select and open a file in vim (adapted from ranger).
"
" you need to add something like the following to your ~/.vimrc:
" You need to either copy the content of this file to your ~/.vimrc or source
" this file directly using something like:
"
" let lfvim = $GOPATH . "/src/github.com/gokcehan/lf/etc/lf.vim"
" if filereadable(lfvim)
" exec "source " . lfvim
" nnoremap <leader>l :<c-u>StartLF<cr>
" endif
" let lfvim = $GOPATH . "/src/github.com/gokcehan/lf/etc/lf.vim"
" if filereadable(lfvim)
" exec "source " . lfvim
" endif
"
" You may also like to assign a key to this command:
"
" nnoremap <leader>l :<c-u>LF<cr>
"
function! StartLF()
function! LF()
let temp = tempname()
exec 'silent !lf -selection-path=' . shellescape(temp)
if !filereadable(temp)
@@ -28,4 +31,4 @@ function! StartLF()
endfor
redraw!
endfunction
command! -bar StartLF call StartLF()
command! -bar LF call LF()