diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-20 00:15:58 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-20 00:15:58 +1200 |
commit | 6690eb3acab230c440dc6d476702f4848f5b2031 (patch) | |
tree | 6bbe0d33d2b33dca080dbc803f406cc14c4ee603 /plugin | |
parent | Add better messages, customisable stop key (diff) | |
download | vim-paste-insert-6690eb3acab230c440dc6d476702f4848f5b2031.tar.gz vim-paste-insert-6690eb3acab230c440dc6d476702f4848f5b2031.zip |
Add comments to plugin file
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/paste_insert.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugin/paste_insert.vim b/plugin/paste_insert.vim index 2c17f80..a792a50 100644 --- a/plugin/paste_insert.vim +++ b/plugin/paste_insert.vim @@ -1,8 +1,21 @@ +" +" This small plugin provides a simple "one shot paste" method, with a command +" or mapping to prefix opening an insert, with the 'paste' option +" automatically set after the insert ends, to avoid the annoyances caused by +" forgetting to do so. +" +" Author: Tom Ryder <tom@sanctum.geek.nz> +" License: Same as Vim itself +" if exists('loaded_paste_insert') || &compatible finish endif let loaded_paste_insert = 1 + +" Command interface command! -bar PasteInsert \ call paste_insert#() + +" Normal mode mapping interface nnoremap <Plug>PasteInsert \ :<C-U>PasteInsert<CR> |