diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 84b0ca7..cecd93a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,6 +1,8 @@ call plug#begin() -" Why? +" For git shortcuts below. Plug 'tpope/vim-fugitive' +" To make :Gbrowse work. Shortcut below. +Plug 'tpope/vim-rhubarb' " Auto linting! See triggers below, plus built-in ones at https://github.com/neomake/neomake/blob/master/autoload/neomake/makers/ft/ruby.vim Plug 'neomake/neomake' @@ -82,6 +84,10 @@ noremap c :ChangeDir "noremap u :FufRenewCache "noremap w :bdelete noremap :Helptags + +" From vim-rhubarb +noremap gh :Gbrowse + " Edit a file in the same directory as the current buffer noremap e :e %:p:h/