|
@@ -67,6 +67,14 @@ set wildmenu
|
|
|
set encoding=utf-8
|
|
|
scriptencoding utf-8
|
|
|
|
|
|
+" Copy Pasta {{{
|
|
|
+function! RegisterSwapDefaultWith()
|
|
|
+ let l = nr2char(getchar())
|
|
|
+ execute 'let @x=@' . l . '| let @' . l . '=@" | let @"=@x'
|
|
|
+endfunction
|
|
|
+nnoremap <Leader>c :call RegisterSwapDefaultWith()<CR>
|
|
|
+nnoremap <Leader>C :let @x=@+ \| let @+=@" \| let @"=@x<CR>
|
|
|
+" }}}
|
|
|
|
|
|
" Formatting {{{
|
|
|
|