aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-21 10:09:58 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-21 10:09:58 +1200
commitef6cdc39da392964df2a55ab183d20c0eeed1aef (patch)
tree688a02111a0376c450c9307854b6874e484ad6a2
parente9b47ddd71ab97c2ca608d26e10eb3d818e68cc6 (diff)
downloaddotfiles-ef6cdc39da392964df2a55ab183d20c0eeed1aef.tar.gz
Add new vim_paste_open plugin and needed bindings
-rw-r--r--.gitmodules3
m---------vim/bundle/paste_open0
-rw-r--r--vim/vimrc3
3 files changed, 6 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index e8e15892..30a58edc 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -17,6 +17,9 @@
[submodule "vim/bundle/markdown_autoformat"]
path = vim/bundle/markdown_autoformat
url = https://sanctum.geek.nz/code/vim-markdown-autoformat.git
+[submodule "vim/bundle/paste_open"]
+ path = vim/bundle/paste_open
+ url = https://sanctum.geek.nz/code/vim-paste-open.git
[submodule "vim/bundle/put_blank_lines"]
path = vim/bundle/put_blank_lines
url = https://sanctum.geek.nz/code/vim-put-blank-lines.git
diff --git a/vim/bundle/paste_open b/vim/bundle/paste_open
new file mode 160000
+Subproject 6cfb284c64a562e56f97282341614e67ca9565a
diff --git a/vim/vimrc b/vim/vimrc
index da1d1137..6431bd54 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -278,6 +278,9 @@ nnoremap \j :<C-U>ls<CR>:buffer<Space>
nnoremap \l :<C-U>set list! list?<CR>
" \n toggles line numbers
nnoremap \n :<C-U>set number! number?<CR>
+" \o and \O open 'pasted insert' lines
+nmap \o <Plug>PasteOpenBelow
+nmap \O <Plug>PasteOpenAbove
" \p toggles paste mode
nnoremap \p :<C-U>set paste! paste?<CR>
" \r reloads .vimrc