Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

Shouldn't p be pp?

0 votes
asked Oct 2, 2015 in vifm by anonymous

Shouldn't pasting be done with pp instead of p by default? It would be more consistent with vi. If you think not, how can I do it?

1 Answer

0 votes
answered Oct 2, 2015 by xaizek

Shouldn't pasting be done with pp instead of p by default? It would be more consistent with vi.

I'm not aware of any vi version that has pp instead of p. If you refer to commands like dd and DD, then there isn't much sense in this either. When removing (or doing any operation on multiple files) you specify both action and its scope (second d in dd means "current item"), so you have multiple versions of the command:

  • da (delete all)
  • dj (delete this element and the one below)
  • ds (delete selected items)
  • dfb (delete all elements in the range from current item till the first file that starts with b)
  • and so on.

It's different with put command, which has basically one meaning: put here. That's why it doesn't need any modifiers.

how can I do it?

Just remap it:

nnoremap pp p
If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here won't be considered as spam, but this is not a perfect place for it.
...