From 95c704e96ea10a17961de2569967bd2e836989bc Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 23 May 2024 20:48:54 +0300 Subject: [PATCH] modules/vifm: change vim and gvim to nvim --- .../home-manager/programs/file-managers/vifm/vifmrc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/modules/home-manager/programs/file-managers/vifm/vifmrc b/modules/home-manager/programs/file-managers/vifm/vifmrc index 89176f7..8792c53 100644 --- a/modules/home-manager/programs/file-managers/vifm/vifmrc +++ b/modules/home-manager/programs/file-managers/vifm/vifmrc @@ -11,7 +11,7 @@ " If you would like to use another vi clone such as Elvis or Vile " you will need to change this setting. -set vicmd=vim +set vicmd=nvim " This makes vifm perform file operations on its own instead of relying on " standard utilities like `cp`. While using `cp` and alike is a more universal @@ -128,12 +128,12 @@ mark h ~/ " %m run the command in a menu window command! df df -h %m 2> /dev/null -command! diff vim -d %f %F +command! diff nvim -d %f %F command! zip zip -r %c.zip %f command! run !! ./%f command! make !!make %a command! mkcd :mkdir %a | cd %a -command! vgrep vim "+grep %a" +command! vgrep nvim "+grep %a" command! reload :write | restart full " ------------------------------------------------------------------------------ @@ -316,11 +316,6 @@ nnoremap S :sort nnoremap w :view vnoremap w :viewgv -" Open file in existing instance of gvim -nnoremap o :!gvim --remote-tab-silent %f -" Open file in new instance of gvim -nnoremap O :!gvim %f - " Open file in the background using its default program nnoremap gb :file &l @@ -354,8 +349,6 @@ nnoremap ,t :!xterm & " Open editor to edit vifmrc and apply settings after returning to vifm nnoremap ,c :write | edit $MYVIFMRC | restart full -" Open gvim to edit vifmrc -nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC & " Toggle wrap setting on ,w key nnoremap ,w :set wrap!