Linux command
vifm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start vifm
vifm
Start in a specific directory
vifm [/path/to/dir]
Start with two panes in different directories
vifm [/left/path] [/right/path]
Execute a command on startup
vifm -c "[command]"
Choose files and write selection to a file
vifm --choose-files [output_file]
Open and highlight a specific file
vifm --select [/path/to/file]
Read file list from stdin for a custom view
find . -name "[*.txt]" | vifm -
说明
vifm is a curses-based file manager with vim-like keybindings. It provides dual-pane navigation with familiar modal editing. Vi keybindings make navigation fast. j/k moves, h goes up, l enters directories. Marks, registers, and macros work similarly to vim. Dual pane layout enables easy file operations between directories. Tab switches focus. Operations can target the other pane. File operations use familiar patterns. yy yanks, p pastes, dd deletes. Visual mode selects multiple files. Customization through vifmrc configures keybindings, colors, and behavior. File previews, icons, and scripts extend functionality. The --choose-dir and --choose-files options enable integration with shell scripts and other programs. The --remote option allows sending commands to a running instance, and --server-name supports managing multiple named instances.
参数
- -c _CMD_
- Execute command-line mode command on startup.
- +_CMD_
- Execute command-line mode command on startup (alternate syntax).
- --choose-files _FILE_
- Write selected file paths to FILE on exit (use - for stdout).
- --choose-dir _FILE_
- Write last visited directory to FILE on exit (use - for stdout).
- --delimiter _DELIM_
- Set separator for file path lists (default: newline).
- --select _PATH_
- Open parent directory and highlight the specified file.
- --on-choose _CMD_
- Execute command on chosen files instead of opening them.
- -f
- Write selection to $VIFM/vimfiles (used by vifm.vim plugin).
- --remote
- Send remaining arguments to an already running vifm instance.
- --remote-expr _EXPR_
- Pass expression to vifm server and print result.
- --server-name _NAME_
- Set or target a named vifm server instance.
- --server-list
- List available vifm server names and exit.
- --plugins-dir _PATH_
- Add plugin directory (can be specified multiple times).
- --no-configs
- Skip reading vifmrc and vifminfo files.
- --logging=_PATH_
- Enable logging to $VIFM/log or specified path.
- -h, --help
- Show help.
- -v, --version
- Show version.
FAQ
What is the vifm command used for?
vifm is a curses-based file manager with vim-like keybindings. It provides dual-pane navigation with familiar modal editing. Vi keybindings make navigation fast. j/k moves, h goes up, l enters directories. Marks, registers, and macros work similarly to vim. Dual pane layout enables easy file operations between directories. Tab switches focus. Operations can target the other pane. File operations use familiar patterns. yy yanks, p pastes, dd deletes. Visual mode selects multiple files. Customization through vifmrc configures keybindings, colors, and behavior. File previews, icons, and scripts extend functionality. The --choose-dir and --choose-files options enable integration with shell scripts and other programs. The --remote option allows sending commands to a running instance, and --server-name supports managing multiple named instances.
How do I run a basic vifm example?
Run `vifm` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -c _CMD_ do in vifm?
Execute command-line mode command on startup.