added functionality to insert random pw inside vim by executing `:PG`

master
Michael Ochmann 3 years ago
parent c6a70e34a3
commit 15a3541ab9
  1. 1
      .vim/after/plugin/keymaps.vim
  2. 3
      .vimrc

@ -6,3 +6,4 @@ nnoremap <silent> <C-g> :Goyo<CR>
nnoremap <silent> <Space> <C-w> nnoremap <silent> <Space> <C-w>
nnoremap <buffer> <F5> :w<cr> :! clear; ./% <cr> nnoremap <buffer> <F5> :w<cr> :! clear; ./% <cr>
nnoremap Q <nop> nnoremap Q <nop>
command PG :r!echo -n $(passgen)

@ -79,3 +79,6 @@ autocmd! User GoyoEnter Limelight
autocmd! User GoyoLeave Limelight! autocmd! User GoyoLeave Limelight!
" Keymaps are in `~/.vim/after/plugin/keymaps.vim` " Keymaps are in `~/.vim/after/plugin/keymaps.vim`
" read bashrc for executing commands inside vim
:set shellcmdflag=-ic

Loading…
Cancel
Save