aboutsummaryrefslogtreecommitdiff
path: root/base/vimrc
diff options
context:
space:
mode:
authorAdam Hovorka <[email protected]>2020-05-19 16:22:25 -0600
committerAdam Hovorka <[email protected]>2020-05-19 16:22:25 -0600
commit0a312771ee7a79d5682d9d7f6fdf94d6de2fb579 (patch)
tree4657729a88753f12b4dd41ece85458f307ac3927 /base/vimrc
parentdc9a44afdc0babdafa2e3e0861af079e891e13a4 (diff)
Add ,qr to .vimrc (turns line into QR code)
Diffstat (limited to 'base/vimrc')
-rw-r--r--base/vimrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/vimrc b/base/vimrc
index 619f3c7..16ccf21 100644
--- a/base/vimrc
+++ b/base/vimrc
@@ -187,6 +187,9 @@ nnoremap Q gqap
cnoremap <c-n> <down>
cnoremap <c-p> <up>
+nnoremap <leader>qr :.!qrencode -t UTF8<CR>
+vnoremap <leader>qr !qrencode -t UTF8<CR>
+
" helper function to toggle hex mode
function! ToggleHex()
" hex mode should be considered a read-only operation
@@ -260,7 +263,6 @@ endfunction
au BufNewFile,BufRead * call SetLocalOptions(bufname("%"))
-
" To move elsewhere ====----
au BufNewFile,BufRead *.less set filetype=less
autocmd! BufWritePost $MYVIMRC source $MYVIMRC