aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/sh.vim9
-rw-r--r--vim/vimrc2
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
diff --git a/vim/vimrc b/vim/vimrc
index f5ffec73..69f63083 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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>