瀏覽代碼

Make <MiddleMouse> paste in new empty buffer

References #272.
Marco Hinz 9 年之前
父節點
當前提交
66d4500576
共有 1 個文件被更改,包括 1 次插入0 次删除
  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.