A simple Lf wrapper for Vim and Neovim
The command Lf
opens the Lf file manager inside the Vim native terminal.
Opening a file inside Lf will make it to quit and open the same file inside Vim.
By default, the Vim cwd
will NOT change to the last directory of Lf. This
behaviour can be changed by the variable g:lf_change_cwd
or, if you want to
change it only once, using the commands LfChangeCwd
and LfNoChangeCwd
.
To config the plugin, two variables are provided:
g:lf_change_cwd
, set to 1 to default theLf
command to changing the Vimcwd
or 0 to default it to not change.g:lf_hijack_netrw
, set to 1 (default) to hijack netrw, and 0 to don't hijack it.g:lf_change_cwd_cmd
, sets the Vim command to change thecwd
. Defaults tocd
.