将ranger的默认编辑器配置成neovim
程序员文章站
2022-05-19 21:09:52
...
- 打开
~/.config/ranger/rifle.conf
, 找到以下代码段:
将上面两个#------------------------------------------- # Misc #------------------------------------------- # Define the "editor" for text files as first action mime ^text, label editor = $EDITOR -- "[email protected]" mime ^text, label pager = "$PAGER" -- "[email protected]" !mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "[email protected]" !mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "[email protected]"
$EDITOR
修改成nvim
, 如下:
下次再用#------------------------------------------- # Misc #------------------------------------------- # Define the "editor" for text files as first action mime ^text, label editor = nvim -- "[email protected]" mime ^text, label pager = "$PAGER" -- "[email protected]" !mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = nvim -- "[email protected]" !mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "[email protected]"
ranger
打开文件时, 默认编辑器就变成neovim
啦
上一篇: centos7安装svn服务器
下一篇: 函数指针,走过路过来分析一下