Last Updated: February 25, 2016
·
1.482K
· gahtune

Use backspace in vim

In normal mode, I'm not aware of backspace mapped to anything. Then I remmapped it in order to have a behaviour like in a file explorer or internet browser

nnoremap <backspace> :pop<CR>
autocmd FileType netrw nmap <buffer> <backspace> -

I can now follow the links in the documentation and come back with backspace and in the file explorer up one level of folder.

And in bonus:

autocmd FileType help nmap <buffer> <Return> <C-]>

Follow the links with enter when in the help pages

1 Response
Add your response

Awesome! I've just added these mappings to my vimrc and I think they're going to change the way I use tags.

over 1 year ago ·