Advertisement
mosaid

Untitled

Feb 3rd, 2019
652
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.36 KB | None | 0 0
  1. function! Output()
  2.     enew | 0put =v:oldfiles| nnoremap <buffer> <CR> :e <C-r>=getline('.')<CR><CR>|normal gg<CR>
  3.     setlocal buftype=nofile bufhidden=wipe noswapfile nowrap
  4.     "setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap
  5. endfunction
  6.  
  7. :command! Browse call Output()
  8. :command! Mm     call Output()
  9. :command! MM     call Output()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement