Difference between revisions of "FAQ"
(→Design/Features: Add question about directory synchronization) |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
* [http://sourceforge.net/p/vifm/_list/tickets SourceForge tracker] | * [http://sourceforge.net/p/vifm/_list/tickets SourceForge tracker] | ||
− | * [https://github.com/ | + | * [https://github.com/vifm/vifm/issues?q=is%3Aopen+is%3Aissue GitHub issues] |
* [mailto:xaizek@openmailbox.org E-mails] | * [mailto:xaizek@openmailbox.org E-mails] | ||
Line 14: | Line 14: | ||
<code>master</code> branch and tags of both | <code>master</code> branch and tags of both | ||
− | [https://github.com/ | + | [https://github.com/vifm/vifm.git https://github.com/vifm/vifm.git] |
and | and | ||
− | [http:// | + | [http://sourceforge.net/p/vifm/code/ http://git.code.sf.net/p/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. | 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 == | == Configuration == | ||
+ | |||
+ | '''NOTE''': in vifm 0.8.1 and above there is no need for <code>windo</code> | ||
+ | command in <code>vifmrc</code>, it's implicitly added to cover the cases | ||
+ | below. | ||
=== How to set sorting/columns in both panes from <code>vifmrc</code>? === | === How to set sorting/columns in both panes from <code>vifmrc</code>? === | ||
Line 37: | Line 41: | ||
=== How to show hidden files by default on startup? === | === How to show hidden files by default on startup? === | ||
− | + | ||
+ | Add this command to your <code>~/.vifm/vifmrc</code>: | ||
<source lang="vim"> | <source lang="vim"> | ||
− | windo normal zo | + | windo normal! zo |
</source> | </source> | ||
− | + | Where: | |
− | * <code>windo</code> | + | |
− | * <code>normal</code> | + | * <code>windo</code> applies command to both panes (as described in [[#How_to_set_view-local_option_for_both_views_from_vifmrc.3F|in another question]]); |
− | * < | + | * <code>normal!</code> is ''Command-line mode'' command that executes its argument list as ''Normal mode'' commands (<code>!</code> ensures that none of user-defined mappings will affect execution of ''Normal mode'' commands); |
+ | * <kbd>zo</kbd> is ''Normal mode'' command to show hidden files. | ||
+ | |||
+ | === How to set view-local option for ''both'' views from <code>vifmrc</code>? === | ||
+ | |||
+ | Use <code>:windo</code> prefix-command to do this. An example: | ||
+ | |||
+ | <source lang="vim"> | ||
+ | windo set viewcolumns=-{name}..,6{}. | ||
+ | </source> | ||
+ | |||
+ | <code>:windo</code> can be used with any command, it just executes the rest of | ||
+ | command-line in both panes. | ||
== Design/Features == | == Design/Features == | ||
Line 78: | Line 95: | ||
Add that <code>:nnoremap</code> command to your <code>~/.vifm/vifmrc</code> to | Add that <code>:nnoremap</code> command to your <code>~/.vifm/vifmrc</code> to | ||
make the shortcut persistent. | make the shortcut persistent. | ||
+ | |||
+ | === How to get total size of selected files? === | ||
+ | |||
+ | <code>'statusline'</code> option has <code>%E</code> flag (with optional width | ||
+ | field). It allows one to see total size of selected items on the status line. | ||
+ | |||
+ | Add the flag somewhere in the value of the option, maybe use it instead of | ||
+ | <code>%s</code>. Example: | ||
+ | |||
+ | <source lang="vim"> | ||
+ | set statusline=' %t%= %A %10u:%-7g %15E %20d ' | ||
+ | </source> |
Revision as of 07:01, 25 November 2016
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/vifm/vifm.git
and
http://git.code.sf.net/p/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
NOTE: in vifm 0.8.1 and above there is no need for windo
command in vifmrc
, it's implicitly added to cover the cases
below.
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
.
Add this command to your ~/.vifm/vifmrc
:
windo normal! zo
Where:
windo
applies command to both panes (as described in in another question);normal!
is Command-line mode command that executes its argument list as Normal mode commands (!
ensures that none of user-defined mappings will affect execution of Normal mode commands);- zo is Normal mode command to show hidden files.
How to set view-local option for both views from vifmrc
?
Use :windo
prefix-command to do this. An example:
windo set viewcolumns=-{name}..,6{}.
:windo
can be used with any command, it just executes the rest of
command-line in both panes.
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.
How to get total size of selected files?
'statusline'
option has %E
flag (with optional width
field). It allows one to see total size of selected items on the status line.
Add the flag somewhere in the value of the option, maybe use it instead of
%s
. Example:
set statusline=' %t%= %A %10u:%-7g %15E %20d '