Explorar o código

Make <MiddleMouse> paste in new empty buffer

References #272.
Marco Hinz %!s(int64=9) %!d(string=hai) anos
pai
achega
66d4500576
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      autoload/startify.vim

+ 1 - 0
autoload/startify.vim

@@ -731,6 +731,7 @@ function! s:set_mappings() abort
   execute "nnoremap <buffer>". s:nowait ."<silent> v             :call <sid>set_mark('V')<cr>"
   execute "nnoremap <buffer>". s:nowait ."<silent> <cr>          :call startify#open_buffers()<cr>"
   execute "nnoremap <buffer>". s:nowait ."<silent> <2-LeftMouse> :call startify#open_buffers()<cr>"
+  execute "nnoremap <buffer>". s:nowait ."<silent> <MiddleMouse> :enew <bar> normal! gp<cr>"
 
   " Without these mappings n/N wouldn't work properly, since autocmds always
   " force the cursor back on the index.