diff options
Diffstat (limited to 'vim/after')
-rw-r--r-- | vim/after/ftplugin/sh.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/after/ftplugin/sh.vim b/vim/after/ftplugin/sh.vim index 6ee016a5..d6716a3d 100644 --- a/vim/after/ftplugin/sh.vim +++ b/vim/after/ftplugin/sh.vim @@ -45,3 +45,12 @@ nnoremap <buffer> <LocalLeader>l \ :<C-U>compiler shellcheck<CR> let b:undo_ftplugin .= '|nunmap <buffer> <LocalLeader>c' \ . '|nunmap <buffer> <LocalLeader>l' + +" Mapping to insert '\'' with Alt+'; not sure I'll keep this just yet +if has('gui_running') + inoremap <buffer> <M-'> '\'' + let b:undo_ftplugin .= '|nunmap <buffer> <M-''>' +else + inoremap <buffer> <Esc>' '\'' + let b:undo_ftplugin .= '|nunmap <buffer> <Esc>''' +endif |