Вопрос

I just installed vifm-0.7.4. It included much more functions than version 0.4. However, I am missing one behavior in the old version. That is, if you enable screen in vifm:

:screen

once you press l or Enter on a text file, the file will be open in vi in a new screen window. However, in the new version, the file is open in the same window as vifm interface. I can open the file in a new screen window using the edit command:

:e

But it is less convenient than a single l. Is it possible to go back to the old behavior in the new version?

Это было полезно?

Решение

It's a regression, which wasn't noticed until now. I'll fix the bug in the next release (it should be easy), but you could just ask me about such behavior by email or on one of bug trackers.

Here is something you can try to use for now (put it to your ~/.vifm/vifmrc file):

nnoremap l : if filetype('.') == 'reg'
          \|     edit
          \| else
          \|     execute 'normal! l'
          \| endif<cr>

nmap <cr> l
nmap <right> l

But this won't run programs, associated with files.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top