Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 847 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 847 Bytes

lf.vim

A simple Lf wrapper for Vim and Neovim

Usage

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.

Settings

To config the plugin, two variables are provided:

  • g:lf_change_cwd, set to 1 to default the Lf command to changing the Vim cwd 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 the cwd. Defaults to cd.