aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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