From 35e6bf81851cdb215fa5ade5c20f088d677e8d90 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 17 Jul 2021 13:25:57 +0200 Subject: [PATCH] neovim: Add binding for sorting in visual mode --- users/simon/modules/neovim.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/users/simon/modules/neovim.nix b/users/simon/modules/neovim.nix index c1a54ad..dcc71e1 100644 --- a/users/simon/modules/neovim.nix +++ b/users/simon/modules/neovim.nix @@ -118,6 +118,9 @@ in " Close terminal with double-Esc tnoremap + " Sort in visual mode + vnoremap s :sort + " Jump to the last position au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") \| exe "normal! g`\"" | endif