From 41c1bae229d0fdca335a277f5c0e22d5d16f9025 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Tue, 10 Jan 2023 18:44:09 +0300 Subject: [PATCH] fix(vim): wrong commentary symbol --- functions/vim_askpass_helper | 2 +- sub/vim/vimrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/vim_askpass_helper b/functions/vim_askpass_helper index a530c4d..d29648e 100755 --- a/functions/vim_askpass_helper +++ b/functions/vim_askpass_helper @@ -1,2 +1,2 @@ #!/usr/bin/env bash -echo -e "OPTION title=vim\nOPTION default-prompt=[sudo] password for $USER:\nGETPIN" | pinentry-qt --display :0 2>/dev/null | grep ^D | cut -d" " -f2 +echo -e "SETTITLE vim\nOPTION default-prompt=[sudo] password for $USER:\nGETPIN" | pinentry-qt --display :0 2>/dev/null | grep ^D | cut -d" " -f2 diff --git a/sub/vim/vimrc b/sub/vim/vimrc index a241069..1b1e126 100644 --- a/sub/vim/vimrc +++ b/sub/vim/vimrc @@ -285,5 +285,5 @@ cnoremap %% getcmdtype() == ':' ? expand('%:h').'/' : '%%' -# :Sw to save file by root +" :Sw to save file by root command Sw execute 'silent! write !SUDO_ASKPASS=$(which vim_askpass_helper) sudo -A tee % >/dev/null'