From 15a3541ab9777371aa05a0d5076ffa706d08083b Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Wed, 14 Sep 2022 17:23:40 +0200 Subject: [PATCH] added functionality to insert random pw inside vim by executing `:PG` --- .vim/after/plugin/keymaps.vim | 1 + .vimrc | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.vim/after/plugin/keymaps.vim b/.vim/after/plugin/keymaps.vim index 76ed621..fb0cb85 100644 --- a/.vim/after/plugin/keymaps.vim +++ b/.vim/after/plugin/keymaps.vim @@ -6,3 +6,4 @@ nnoremap :Goyo nnoremap nnoremap :w :! clear; ./% nnoremap Q +command PG :r!echo -n $(passgen) diff --git a/.vimrc b/.vimrc index 8fbacfc..19b5be3 100644 --- a/.vimrc +++ b/.vimrc @@ -79,3 +79,6 @@ autocmd! User GoyoEnter Limelight autocmd! User GoyoLeave Limelight! " Keymaps are in `~/.vim/after/plugin/keymaps.vim` + +" read bashrc for executing commands inside vim +:set shellcmdflag=-ic