From: Samir Benmendil Date: Sun, 17 Dec 2023 17:18:01 +0000 (+0000) Subject: vim: add mapping to source whole file X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/3421695d05272105b6b34ed9cea6f1a3dc693fd8?ds=sidebyside vim: add mapping to source whole file --- 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 ' `