From a63d7a98928a9958dd1948f1fd9dcafd6ad50c3c Mon Sep 17 00:00:00 2001 From: Rmys Date: Fri, 3 Nov 2023 19:05:16 +0300 Subject: [PATCH] vim --- editor/vi/vim/actions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/vi/vim/actions.py b/editor/vi/vim/actions.py index ad67325348..49320f92f4 100644 --- a/editor/vi/vim/actions.py +++ b/editor/vi/vim/actions.py @@ -17,8 +17,12 @@ def setup(): #shelltools.export("CFLAGS", get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", "")) #pisitools.dosed("runtime/tools/mve.awk", "#!/usr/bin/nawk -f", "#!/usr/bin/awk -f") + # shelltools.system("""sed -E 's|^.*(#define SYS_.*VIMRC_FILE.*").*$|\1|g' -i src/feature.h""") + # shelltools.system("""sed -E 's|^.*(#define VIMRC_FILE.*").*$|\1|g' -i src/feature.h""") + # define the place for the global (g)vimrc file (set to /etc/vim/vimrc) shelltools.echo("src/feature.h", "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"") + shelltools.echo("src/feature.h", "#define VIMRC_FILE \"/etc/vim/vimrc\"") # our binary ctags file is names as exuberant-ctags pisitools.dosed("runtime/doc/syntax.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") @@ -77,3 +81,4 @@ def install(): # Vi != Vim, it's hard to break habbits pisitools.dosym("vim", "/usr/bin/vi") pisitools.dosym("/usr/bin/vim", "/bin/ex") + pisitools.remove("/usr/bin/ex")