about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home-manager/soispha/config/neovim/nixvim/autocmds/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/autocmds/default.nix b/home-manager/soispha/config/neovim/nixvim/autocmds/default.nix
index c2b64ae3..b1945944 100644
--- a/home-manager/soispha/config/neovim/nixvim/autocmds/default.nix
+++ b/home-manager/soispha/config/neovim/nixvim/autocmds/default.nix
@@ -10,7 +10,7 @@
         event = ["BufWritePre"];
         pattern = ["*"];
         command = ''
-          ks | if search("\\s\\+$", 'n') != 0 | :%s/\s\+//g | endif | 's
+          ks | if search("\\s\\+$", 'n') != 0 | :%s/\s\+$// | endif | 's
         '';
         description = ''
           Remove trailing whitespace on safe