From ef6cdc39da392964df2a55ab183d20c0eeed1aef Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 21 Jun 2018 10:09:58 +1200 Subject: Add new vim_paste_open plugin and needed bindings --- .gitmodules | 3 +++ vim/bundle/paste_open | 1 + vim/vimrc | 3 +++ 3 files changed, 7 insertions(+) create mode 160000 vim/bundle/paste_open 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 index 00000000..6cfb284c --- /dev/null +++ b/vim/bundle/paste_open @@ -0,0 +1 @@ +Subproject commit 6cfb284c64a562e56f97282341614e67ca9565a1 diff --git a/vim/vimrc b/vim/vimrc index da1d1137..6431bd54 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -278,6 +278,9 @@ nnoremap \j :ls:buffer nnoremap \l :set list! list? " \n toggles line numbers nnoremap \n :set number! number? +" \o and \O open 'pasted insert' lines +nmap \o PasteOpenBelow +nmap \O PasteOpenAbove " \p toggles paste mode nnoremap \p :set paste! paste? " \r reloads .vimrc -- cgit v1.2.3