aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-19 11:11:42 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-19 11:11:42 +1300
commit84f9ddc9214401bdb7e5f6f3e5133d24b29e4917 (patch)
tree88dc8ad4a3df161792718e7718c79d17ee6d5254 /vim/after/ftplugin
parentMerge branch 'release/v3.2.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-84f9ddc9214401bdb7e5f6f3e5133d24b29e4917.tar.gz
dotfiles-84f9ddc9214401bdb7e5f6f3e5133d24b29e4917.zip
Merge branch 'release/v3.3.0'v3.3.0
* release/v3.3.0: Bump VERSION Add sh.vim mapping to insert '\'' quickly Remove now-unneeded shellcheck disable rules Follow ShellCheck's recommendation of -z over !-n Adjust PS1-PS4 reset Use exec for clearer subshell semantics Use `command` consistently, silence ShellCheck Add /j flag to :vimgrep shortcut
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r--vim/after/ftplugin/sh.vim9
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