aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitmodules3
-rw-r--r--VERSION4
m---------vim/bundle/vertical_region0
-rw-r--r--vim/vimrc10
4 files changed, 15 insertions, 2 deletions
diff --git a/.gitmodules b/.gitmodules
index 38a03a11..9f9f3f62 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -50,6 +50,9 @@
[submodule "vim/bundle/uncap_ex"]
path = vim/bundle/uncap_ex
url = https://sanctum.geek.nz/code/vim-uncap-ex.git
+[submodule "vim/bundle/vertical_region"]
+ path = vim/bundle/vertical_region
+ url = https://sanctum.geek.nz/code/vim-vertical-region.git
[submodule "vim/bundle/vimrc_reload_filetype"]
path = vim/bundle/vimrc_reload_filetype
url = https://sanctum.geek.nz/code/vim-vimrc-reload-filetype.git
diff --git a/VERSION b/VERSION
index 97f3db47..8dcab59d 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v1.51.0
-Wed Aug 8 12:58:23 UTC 2018
+tejr dotfiles v1.52.0
+Thu Aug 9 13:33:49 UTC 2018
diff --git a/vim/bundle/vertical_region b/vim/bundle/vertical_region
new file mode 160000
+Subproject f7989e2bdd4ed6630cc7318296a6a25f594f1f7
diff --git a/vim/vimrc b/vim/vimrc
index be9c63ab..2531327d 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -318,6 +318,16 @@ nnoremap <Bslash>. :<C-U>lmake!<CR>
nnoremap <Bslash><lt> :<C-U>'[,']<lt><CR>
nnoremap <Bslash>> :<C-U>'[,']><CR>
+" \{ and \} move to lines with non-space chars before current column
+nmap <Bslash>{ <Plug>(VerticalRegionUpNormal)
+nmap <Bslash>} <Plug>(VerticalRegionDownNormal)
+omap <Bslash>{ <Plug>(VerticalRegionUpOperator)
+omap <Bslash>} <Plug>(VerticalRegionDownOperator)
+if exists(':xmap')
+ xmap <Bslash>{ <Plug>(VerticalRegionUpVisual)
+ xmap <Bslash>} <Plug>(VerticalRegionDownVisual)
+endif
+
" \/ types :vimgrep for me ready to enter a search pattern
nnoremap <Bslash>/ :<C-U>vimgrep /\c/ **<S-Left><S-Left><Right>
" \? types :helpgrep for me ready to enter a search pattern