Prechádzať zdrojové kódy

click anywhere on the line to select

Marco Hinz 12 rokov pred
rodič
commit
9918dc4fd5
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      plugin/startify.vim

+ 1 - 1
plugin/startify.vim

@@ -91,7 +91,7 @@ function! s:insane_in_the_membrane() abort
   nnoremap <buffer> q :quit<cr>
   nnoremap <buffer><silent> e :enew<cr>
   nnoremap <buffer><silent> <cr> :normal <c-r><c-w><cr>
-  nnoremap <buffer><silent> <LeftMouse> :normal <c-r><c-w><cr>
+  nnoremap <buffer><silent> <LeftRelease> :execute 'normal '. matchstr(getline('.'), '\w\+')<cr>
 
   if exists('g:startify_empty_buffer_key')
     execute 'nnoremap <buffer><silent> '. g:startify_empty_buffer_key .' :enew<cr>'