Difference between revisions of "FAQ"
(→Design/Features: Add "How to exit vifm in the active directory?") |
(→Design/Features: Add question about directory synchronization) |
||
Line 63: | Line 63: | ||
See [[How to set shell working directory after leaving Vifm]]. | See [[How to set shell working directory after leaving Vifm]]. | ||
+ | |||
+ | === How to change current pane to the directory of inactive pane? === | ||
+ | |||
+ | <code>:cd %D</code> command does this, here <code>%D</code> is a macro that | ||
+ | expands to full path of the other pane. One probably would like to map this | ||
+ | command to a shortcut, e.g. | ||
+ | |||
+ | <source lang="vim"> | ||
+ | :nnoremap <c-y> :cd %D<cr> | ||
+ | </source> | ||
+ | |||
+ | binds such directory synchronization to <kbd>Ctrl+Y</kbd> shortcut. | ||
+ | |||
+ | Add that <code>:nnoremap</code> command to your <code>~/.vifm/vifmrc</code> to | ||
+ | make the shortcut persistent. |
Revision as of 12:43, 15 September 2014
Generic
How to report bugs/feature requests?
There are several ways to do that, pick one that is the most convenient to you (e.g. you already have an account where it's required for posting):
Which code repository is the primary one?
master
branch and tags of both
https://github.com/ksteen/vifm.git
and
http://git.code.sf.net/p/vifm/code vifm-code
are updated at the same time for all repositories (although they might be out of sync for a short period of time occasionally), so one should get same results no matter which code repository is used. Different repositories might have different feature/bug-fix branches, but they are temporary ones and just to communicate new code for testing.
Configuration
How to set sorting/columns in both panes from vifmrc
?
Add windo
prefix to command you want to be executed for both panes.
" separated
windo set sort=...
windo set viewcolumns=...
" or both at the same time
windo set sort=... viewcolumns=...
windo
can be applied to any command-line command, not just set
.
Put this into vifmrc
file:
windo normal zo
Explanation:
windo
— execute prefixed command for each pane.normal
— execute normal mode command.zo
— normal mode command to how hidden files.
Design/Features
Is it possible to embed Vim or another terminal application into one of Vifm's panes?
No, unfortunately it's not possible. Allowing this would require embedding
terminal multiplexer into Vifm, which is kinda silly because it is a file
manager. The compromise is to run Vifm inside terminal multiplexer and
provide some integration between them (there is already some builtin support
for GNU Screen and
tmux in Vifm, e.g. :screen
,
:ls
).
How to exit vifm in the active directory?
See How to set shell working directory after leaving Vifm.
How to change current pane to the directory of inactive pane?
:cd %D
command does this, here %D
is a macro that
expands to full path of the other pane. One probably would like to map this
command to a shortcut, e.g.
:nnoremap <c-y> :cd %D<cr>
binds such directory synchronization to Ctrl+Y shortcut.
Add that :nnoremap
command to your ~/.vifm/vifmrc
to
make the shortcut persistent.