" Vim support file to help with paste mappings and menus " Maintainer: Bram Moolenaar <Bram@vim.org> " Last Change: 2006 Jun 23 " Define the string to use for items that are present both in Edit, Popup and " Toolbar menu. Also used in mswin.vim and macmap.vim. " Pasting blockwise and linewise selections is not possible in Insert and " Visual mode without the +virtualedit feature. They are pasted as if they " were characterwise instead. Add to that some tricks to leave the cursor in " the right position, also for "gi". if has("virtualedit") let paste#paste_cmd = {'n': ":call paste#Paste()<CR>"} let paste#paste_cmd['v'] = '"-c<Esc>' . paste#paste_cmd['n'] let paste#paste_cmd['i'] = 'x<BS><Esc>' . paste#paste_cmd['n'] . 'gi' func! paste#Paste() let ove = &ve set ve=all normal! `^ if @+ != '' normal! "+gP endif let c = col(".") normal! i if col(".") < c " compensate for i<ESC> moving the cursor left normal! l endif let &ve = ove endfunc else let paste#paste_cmd = {'n': "\"=@+.'xy'<CR>gPFx\"_2x"} let paste#paste_cmd['v'] = '"-c<Esc>gix<Esc>' . paste#paste_cmd['n'] . '"_x' let paste#paste_cmd['i'] = 'x<Esc>' . paste#paste_cmd['n'] . '"_s' endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
xml | Folder | 0755 |
|
|
README.txt | File | 773 B | 0644 |
|
ada.vim | File | 21.98 KB | 0644 |
|
adacomplete.vim | File | 3.58 KB | 0644 |
|
ccomplete.vim | File | 16.63 KB | 0644 |
|
clojurecomplete.vim | File | 7.4 KB | 0644 |
|
csscomplete.vim | File | 15.55 KB | 0644 |
|
decada.vim | File | 2.93 KB | 0644 |
|
getscript.vim | File | 24.28 KB | 0644 |
|
gnat.vim | File | 5.21 KB | 0644 |
|
gzip.vim | File | 5.95 KB | 0644 |
|
htmlcomplete.vim | File | 23.71 KB | 0644 |
|
javascriptcomplete.vim | File | 26.39 KB | 0644 |
|
netrw.vim | File | 398.22 KB | 0644 |
|
netrwFileHandlers.vim | File | 9.91 KB | 0644 |
|
netrwSettings.vim | File | 9.79 KB | 0644 |
|
paste.vim | File | 1.2 KB | 0644 |
|
phpcomplete.vim | File | 286.92 KB | 0644 |
|
python3complete.vim | File | 21 KB | 0644 |
|
pythoncomplete.vim | File | 21.5 KB | 0644 |
|
rubycomplete.vim | File | 23 KB | 0644 |
|
spellfile.vim | File | 6.07 KB | 0644 |
|
sqlcomplete.vim | File | 37.39 KB | 0644 |
|
syntaxcomplete.vim | File | 30.54 KB | 0644 |
|
tar.vim | File | 21.57 KB | 0644 |
|
tohtml.vim | File | 31.33 KB | 0644 |
|
vimball.vim | File | 23.76 KB | 0644 |
|
xmlcomplete.vim | File | 14.59 KB | 0644 |
|
zip.vim | File | 12.48 KB | 0644 |
|