Welcome to Vifm Q&A, where you can ask questions about using Vifm. Registration is optional, anonymous posts are moderated. E-mail and GitHub logins are enabled.
0 votes
in vifm by
retagged by

Hi. I'm a daily user so I thought I should leave some more feedback. Thanks a lot for Vifm!

  • The vifm.vim Vim plugin seems to lack a license.

  • filextype {*.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx,*.ppt}, should include *.ods files

  • Is there a key binding to paste/move copied files to the directory under the cursor, without actually entering that directory? I didn't immediately find this in the manual, so I created the following. Maybe it could be supported natively, as my solution causes some flickering. This key binding is useful if a directory contains for instance file_a and subdir_x and you want to move the file into the subdirectory.

" Copy/move file into directory under cursor, without leaving current directory
nnoremap ,p :copytodirundercursor<CR>
nnoremap ,P :movetodirundercursor<CR>

command! copytodirundercursor
         \ :if filetype('.') == 'dir'
         \ |  execute 'normal l'
         \ |  execute 'normal p'
         \ |  execute 'normal h'
         \ |else
         \ |  echo 'Cursor is not on a directory'
         \ |endif

command! movetodirundercursor
         \ :if filetype('.') == 'dir'
         \ |  execute 'normal l'
         \ |  execute 'normal P'
         \ |  execute 'normal h'
         \ |else
         \ |  echo 'Cursor is not on a directory'
         \ |endif
  • Some mappings I created, might be useful for someone else:
""" The b key was surprisingly still free:
" Toggle between vertical split and single window view
nnoremap b :vsplit!<CR>

""" The next two mappings are in my opinion a bit more Vim-like than the defaults.

" Hide ('close') dotfiles
nnoremap zc zm

" Clear local filter
nnoremap zi zr

1 Answer

0 votes
by
 
Best answer

Hello.

The vifm.vim Vim plugin seems to lack a license.

Looks like it. It's probably GPLv2+ as the sources.

filextype {*.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx,*.ppt}, should include *.ods files

Will add, thanks.

Is there a key binding to paste/move copied files to the directory under the cursor, without actually entering that directory?

No, although you're not the first one to ask about it. Maybe something like gp/gP could be used for that.

Maybe it could be supported natively, as my solution causes some flickering.

Combine multiple normal commands, that should reduce flickering. Another way is to define a mapping with <silent> and call it from your commands, which might further reduce redraws.

Thanks for your feedback.

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...