From 117dd0a8c93062a797bf873e37444feea4798bda Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 30 May 2019 22:26:00 +1200 Subject: Move execution mappings into relevant filetypes --- vim/after/ftplugin/sh.vim | 4 ++++ vim/after/ftplugin/vim.vim | 10 ++++++++++ 2 files changed, 14 insertions(+) (limited to 'vim/after/ftplugin') diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 0327db78..8468b133 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -44,3 +44,7 @@ nnoremap l \ :compiler shellcheck let b:undo_ftplugin .= '|nunmap c' \ . '|nunmap l' + +" ,! executes line with 'shell' +nnoremap ! ^"zyg_:!z +let b:undo_ftplugin .= '|nunmap !' diff --git a/vim/after/ftplugin/vim.vim b/vim/after/ftplugin/vim.vim index 5b4d0f95..0b877178 100644 --- a/vim/after/ftplugin/vim.vim +++ b/vim/after/ftplugin/vim.vim @@ -43,3 +43,13 @@ endif nnoremap K \ :helpgrep let b:undo_ftplugin .= '|nunmap K' + +" ,@ executes line in normal mode +nnoremap @ + \ ^"zyg_@z +let b:undo_ftplugin .= '|nunmap @' + +" ,: executes line in command mode +nnoremap : + \ ^"zyg_:z +let b:undo_ftplugin .= '|nunmap :' -- cgit v1.2.3