X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=keymaps.vim;h=38f7774ee4d6a38379edc9f0e8f66e243c19337b;hp=234ee91746f3b735ce918958f0c793f5feec912d;hb=HEAD;hpb=a7bd98a26484944d7db299009cc9cab309389c86 diff --git a/keymaps.vim b/keymaps.vim index 234ee91..38f7774 100644 --- a/keymaps.vim +++ b/keymaps.vim @@ -2,12 +2,20 @@ " 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 + + "autocmd VimEnter * inoremap + endif " ctrl+d as EOF exits shells and the like. Add a keymap for the same here. @@ -61,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