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
Written by gahtune
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#