Просмотр исходного кода

Make <MiddleMouse> paste in new empty buffer

References #272.
Marco Hinz 9 лет назад
Родитель
Сommit
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.