diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/after/ftplugin/sh.vim | 9 | ||||
-rw-r--r-- | vim/vimrc | 2 |
2 files changed, 10 insertions, 1 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 @@ -404,7 +404,7 @@ xmap <Leader>{ <Plug>(VerticalRegionUpVisual) xmap <Leader>} <Plug>(VerticalRegionDownVisual) " \/ types :vimgrep for me ready to enter a search pattern -nnoremap <Leader>/ :<C-U>vimgrep /\c/ **<S-Left><S-Left><Right> +nnoremap <Leader>/ :<C-U>vimgrep /\c/j **<S-Left><S-Left><Right> " \? types :helpgrep for me ready to enter a search pattern nnoremap <Leader>? :<C-U>helpgrep \c<S-Left> |