aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 804a4f7..c269fa6 100644
--- a/.vimrc
+++ b/.vimrc
@@ -277,4 +277,7 @@ xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
" }}}
+vnoremap <leader>c y:call system("xclip -selection clipboard", getreg("\""))<CR>
+nnoremap <leader>v :call setreg("\"", system("xclip -selection clipboard -o"))<CR>p
+
let g:c_formatter_42_format_on_save=0