X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=keymaps.vim;h=38f7774ee4d6a38379edc9f0e8f66e243c19337b;hp=69799d1b8b9a9b5c7573191fec57337f9e9c9fa8;hb=HEAD;hpb=d56efbd414836bd7048c54e384c709e632b54381 diff --git a/keymaps.vim b/keymaps.vim index 69799d1..38f7774 100644 --- a/keymaps.vim +++ b/keymaps.vim @@ -2,10 +2,17 @@ " Global settings if has('clipboard') + " Use + or * registers + if has('unnamedplus') + set clipboard+=unnamedplus + else + set clipboard+=unnamed + endif + " Ordinary ctrl+{c,x,v} using system clipboard register +. We use autocmd to " override plugin keymaps. - autocmd VimEnter * vnoremap "+y - autocmd VimEnter * vnoremap "+x + "autocmd VimEnter * vnoremap "+y + "autocmd VimEnter * vnoremap "+x " Is performed by S+Ins "autocmd VimEnter * nnoremap "+p "autocmd VimEnter * inoremap + @@ -62,7 +69,7 @@ au Filetype c,cpp,objc map :FSHere au Filetype c,cpp,objc map :FSHere au Filetype markdown map :call RunMarkdown() -au Filetype asciidoc map :call RunAsciidoc() +au Filetype asciidoc,asciidoctor map :call RunAsciidoc() " See https://github.com/artur-shaik/vim-Javacomplete2 " ji ji