aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-02 11:10:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-02 11:10:02 +1200
commitb3a4111df7b7f71e637c82e6706525b52d8fd41f (patch)
tree062edf2810326c5a281b3179faaf9c0587b3ec32
parentRevert "Remove j/gj remappings" (diff)
downloaddotfiles-b3a4111df7b7f71e637c82e6706525b52d8fd41f.tar.gz
dotfiles-b3a4111df7b7f71e637c82e6706525b52d8fd41f.zip
Add \@ mapping to execute lines with 'shell'
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index cdc8c14d..3c5a4d4a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -313,6 +313,9 @@ nnoremap <Bslash><Delete> :bdelete<CR>
" \INS edits a new buffer
nnoremap <Bslash><Insert> :<C-U>enew<CR>
+" \@ executes the current line with 'shell'
+nnoremap <Bslash>@ :!<C-R>=getline('.')<CR><CR>
+
" If we're running NeoVim, source some extra configuration
if has('nvim')
runtime nvim.vim