Skip to content

Commit

Permalink
doc: Clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ptzz committed May 12, 2020
1 parent 7294a0f commit 8dbdb13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ To disable the default key mapping, add this line in your .vimrc or init.vim: `l
Then you can add a new mapping with this line: `map <leader>f :Lf<CR>`.

The command for opening Lf in the current file's directory is `:Lf`.
When opening (default 'l' and '<right>') a file from the lf window,
Vim will open the selected file in the current window. To open the selected
file in a new tab instead use `:LfNewTab`.

(Note that the the lf `open` command is required to return to the originating vim session.
E.g. the `edit` command opens a new process of $EDITOR.)

For opening Lf in the current workspace, run `:LfWorkingDirectory`.
Vim will open the selected file in the current window.
`:LfWorkingDirectoryNewTab` will open the selected file in a new tab instead.
Expand Down

0 comments on commit 8dbdb13

Please sign in to comment.