aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-10 01:33:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-10 01:33:49 +1200
commitba8ceb1d7ef14d82292636e018881a019ce5f474 (patch)
tree83f5841213950b0ca784c9d9c5f010f8b6e8a249
parentcfceeda823b68d9224090693f76a551854872f41 (diff)
parentb12c7bd944b95c96c596a92835b6c3aac49d6d9c (diff)
downloaddotfiles-ba8ceb1d7ef14d82292636e018881a019ce5f474.tar.gz
Merge branch 'release/v1.52.0'v1.52.0
* release/v1.52.0: Bump VERSION Update vertical_region.vim with hotfix Spin out vertical_region.vim into submodule Use autoloading for vertical_region.vim Add vertical_region.vim plugin
-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