Skip to content

yuzhegan/lf.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

lf for nvim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published