diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f816adc..e485036 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -16,6 +16,7 @@ Plug 'jacoborus/tender.vim' Plug 'ciaranm/inkpot' Plug 'twerth/ir_black' Plug 'rodjek/vim-puppet' +Plug 'vim-ruby/vim-ruby' call plug#end() " Because. @@ -44,6 +45,8 @@ noremap c :ChangeDir "noremap u :FufRenewCache "noremap w :bdelete noremap :Helptags +" Edit a file in the same directory as the current buffer +noremap e :e %:p:h/ " --column: Show column number " --line-number: Show line number @@ -120,6 +123,12 @@ xmap ga (EasyAlign) " Backup files in backupdir=~/.local/share/nvim/backup/ set undofile +" Allow unwritten buffers to be hidden +set hidden + +" Enable live preview of replace +set inccommand=split + " Copy between instances let g:neoyank#file = $HOME.'/.local/share/nvim/yankring.txt' nmap :Denite neoyank