Put under/over with correct indentation

3 Points

Nic West Nic West

4 years ago

Put text from default register above/below the current line and adjusts indentation.

" put under/over
nnoremap <silent> <leader>pu :pu<CR>`[=`]
nnoremap <silent> <leader>po :pu!<CR>`[=`]