From 3e61607bcfae666eb08f6b3941ca91a4281544de Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 17 Dec 2023 17:18:01 +0000 Subject: [PATCH] vim: add mapping to source whole file --- vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 21773f9..b2e40ae 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -629,6 +629,9 @@ nnoremap ww :Untrail " Source vnoremap S y:execute @@:echo 'Sourced selection.' nnoremap S ^vg_y:execute @@:echo 'Sourced line.' +" Technically this is similar to execute this file, which is usually mapped to +" r and it would make sense to have that for lua files in nvim folder +nnoremap SS :source %:echo 'Sourced file.' " jump to last cursor position noremap ' ` -- 2.48.1