Skip to content

I have some errors with the function triggerEndEvents #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 97 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
523df05
Cleanup, change keymaps & add ins/app/cha modes
hlissner Feb 23, 2013
7b5c970
Update readme
hlissner Feb 23, 2013
e0b5a4e
Fix broken nmap and s:offset error
hlissner Feb 23, 2013
0fd8d5d
Add options
hlissner Feb 24, 2013
10980b1
Update docs
hlissner Feb 24, 2013
72c297e
Minor revision
hlissner Feb 24, 2013
2c6af60
Remove excess code
hlissner Mar 1, 2013
2af5077
Standardize name conventions
hlissner Mar 1, 2013
c452f90
New structure finalized
hlissner Mar 1, 2013
bc0a634
Initial commit
hlissner Mar 2, 2013
f8407f7
Revise maps and options
hlissner Mar 2, 2013
1ec687f
Wrote addMark() (untested)
hlissner Mar 2, 2013
b3a32a8
addSelection() -> addRegion()
hlissner Mar 2, 2013
05224fd
Remove <Plug>s (unused)
hlissner Mar 2, 2013
c6520cf
Add comments to maps. Add addMatch() signature.
hlissner Mar 2, 2013
40f9294
Redone name convention and code cleanup
hlissner Mar 2, 2013
836f8ea
Add clear(), EntryMap()->entryMap(), Add rehighlight()
hlissner Mar 2, 2013
9f7dc0d
Rewrote/clean up maps
hlissner Mar 2, 2013
66f5823
Silence au! multiedit error
hlissner Mar 2, 2013
c761c3b
Comment cleanup
hlissner Mar 2, 2013
c21763d
Grammar derp fix
hlissner Mar 2, 2013
0617d04
Complete addMatch()
hlissner Mar 2, 2013
1252cb3
Fix addMarker and addRegion
hlissner Mar 3, 2013
8861f38
Fix addMark(), addRegion() and startEdit()
hlissner Mar 3, 2013
44a4bab
Implement MultiEditAddRegion highlight
hlissner Mar 3, 2013
099024e
Allow for custom highlights
hlissner Mar 3, 2013
8e85397
Update docs
hlissner Mar 3, 2013
dcfacb9
[0.2.0]
hlissner Mar 3, 2013
69308a2
[0.2.0]
hlissner Mar 3, 2013
62b559f
No-highlights bugfix
hlissner Mar 4, 2013
b1cd7b3
Remove mouse mapping
hlissner Mar 4, 2013
993309e
Autoload funcs and remove synced editing
hlissner Mar 6, 2013
1370519
Update documentation for 0.2.1
hlissner Mar 6, 2013
0c525ca
Update docs
hlissner Mar 7, 2013
e5222fb
MultieditAddRegion now accepts ranges (plugin works now)
hlissner Mar 8, 2013
ec14df3
Change way plugin searchs for overlapping regions
hlissner Mar 8, 2013
24f68bb
Add-next-occurrence implemented (like ST's CMD-D)
hlissner Mar 8, 2013
29cb33d
Clean up code
hlissner Mar 8, 2013
97b76f7
Graduated to v1.0
hlissner Mar 8, 2013
69d7171
Change default highlight color of first region
hlissner Mar 9, 2013
11811b1
[1.0.1]
hlissner Mar 9, 2013
e22d63a
Fixes #1
hlissner Mar 10, 2013
1d936b1
Resolves region order issue when clearing regions
hlissner Mar 10, 2013
4a52023
Fix bug with editing consecutive regions on the same line
hlissner Mar 10, 2013
4cc3765
New feature: change 'main' region w/ <leader>ms
hlissner Mar 10, 2013
92f8849
Mention <leader>ms
hlissner Mar 10, 2013
7667dc3
Don't automatically add next/prev occurrance on addMatch()
hlissner Mar 11, 2013
dfc66bd
[1.1.1] Add :Multiedit! for start-of-word INSERT
hlissner Mar 11, 2013
cf21d4c
Update version and README
hlissner Mar 11, 2013
6d05f83
[1.1.2] Change :Multiedit! to change mode
hlissner Mar 11, 2013
647c7ae
Add header
hlissner Mar 11, 2013
be5c992
Prefix private functions with s: instead of multiedit#
hlissner Mar 11, 2013
28527a5
New feature: restore previous regions
hlissner Mar 11, 2013
cc11d72
[1.1.3] Changelog update
hlissner Mar 11, 2013
73265db
Add 1.1.3 option and version
hlissner Mar 11, 2013
c79b3fd
Add <leader>mu
hlissner Mar 11, 2013
876c1fe
Replace (Next|Prev) match functions with keymap macro
hlissner Mar 23, 2013
f2cc662
:MultieditAddMark [ia] instead of :Multiedit(Append/Prepend)Mark
hlissner Mar 23, 2013
293920b
Update version tag
hlissner Mar 23, 2013
27c2bf0
Make MultieditSet implicit to MultieditAddRegion if overlapping
hlissner Mar 23, 2013
20cf125
Refactor selections and split update()
hlissner Mar 23, 2013
ccb6aa5
Update for refactored backend
hlissner Mar 23, 2013
18cb8c4
Use setline to insert markers, rather than normal commands
hlissner Mar 23, 2013
27df3bf
Add <silent> to <leader>m[np] key binds
hlissner Mar 24, 2013
0e52506
Fix set-new-main-region bug
hlissner Mar 24, 2013
e361c11
Use setline to insert markers instead
hlissner Mar 24, 2013
42ca525
Set b:regions_last properly in reset()
hlissner Mar 24, 2013
cbd51b2
Remove b:first_region check, it should always exist at this point
hlissner Mar 24, 2013
25cd3d1
Merge finish() in update() again
hlissner Mar 24, 2013
01bc57a
Rehighlight after restoring old regions, not update
hlissner Mar 24, 2013
f6eeb04
Auto-remove marker if first_region is a marker
hlissner Mar 24, 2013
90db387
Restore cursor position properly post-edit
hlissner Mar 24, 2013
cdb8bcb
MultieditRegion highlight now linked to 'Search' group
hlissner Mar 25, 2013
7ebf34d
Fix overlap detection bug (also caused when deleting single regions)
hlissner Mar 25, 2013
c9d0390
Fix new-main-region after deleting a main-region
hlissner Mar 25, 2013
99d3fe8
Comment on new-main-region in clear()
hlissner Mar 25, 2013
d77ac1b
Add jumping between regions (using ]m and [m)
hlissner Mar 25, 2013
7fafe52
Made AddRegion in visual mode <leader>m instead of <leader>mm
hlissner Mar 25, 2013
9c101af
Comment on jump() functionality and remove debug code
hlissner Mar 25, 2013
94d0b67
Updated docs
hlissner Mar 25, 2013
1f07428
Clean up docs and revise
hlissner Mar 25, 2013
94a201c
Changelog revision
hlissner Mar 25, 2013
73373e5
Fixed: can't add marker to start of line
hlissner Mar 25, 2013
73c2807
Remove: auto-remove marker. Causes problems at start-of-line
hlissner Mar 25, 2013
5d50ef8
Add some useful keybinds for inserting markers
hlissner Mar 26, 2013
54d1c98
[2.0.1] Update docs and version string
hlissner Mar 26, 2013
4a2ae39
Update README with new keybinds
hlissner Mar 26, 2013
b708ba6
Reset() undoes maps and now accepts a 'do-not-save-regions' arg
hlissner Mar 28, 2013
267d3e0
Fix blank and less-than blank regions when editing
hlissner Mar 28, 2013
a65f385
Update docs
hlissner Mar 28, 2013
e44223d
Remove stray debug code
hlissner Apr 30, 2013
2a5de26
Added hooks to allow disabling of other plugins or behaviour when mul…
faceleg Nov 12, 2014
bd95884
Merge pull request #2 from faceleg/master
hlissner Nov 14, 2014
02eebac
Fix error call triggerEndEvent and <SID> for vim 7.3 version
Sep 20, 2015
8144afb
Add MIT license
hlissner Dec 26, 2015
6e1bf26
Github syntax highlight usage block in readme
hlissner Dec 26, 2015
bcdf538
Merge pull request #3 from inmzombie/master
hlissner Jan 1, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2013-16 Henrik Lissner.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50 changes: 47 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,51 @@
# vim-multiedit - Multi-selection and editing in vim

## About

These are the beginnings of a plugin that brings multi-selection editing (like in Sublime Text) to vim.
Do you envy Sublime Text 2's multiple selection and editing feature? This plugin
tries to fill that multi-caret shaped gap in your heart by letting you
specify "regions" of text and edit them all from one place.

*(This plugin is based on https://github.com/felixr/vim-multiedit by Felix
Riedel <felix.riedel at gmail.com>)*

## Usage

```vim
" Insert a disposable marker after the cursor
nmap <leader>ma :MultieditAddMark a<CR>

" Insert a disposable marker before the cursor
nmap <leader>mi :MultieditAddMark i<CR>

" Make a new line and insert a marker
nmap <leader>mo o<Esc>:MultieditAddMark i<CR>
nmap <leader>mO O<Esc>:MultieditAddMark i<CR>

" Insert a marker at the end/start of a line
nmap <leader>mA $:MultieditAddMark a<CR>
nmap <leader>mI ^:MultieditAddMark i<CR>

" Make the current selection/word an edit region
vmap <leader>m :MultieditAddRegion<CR>
nmap <leader>mm viw:MultieditAddRegion<CR>

" Restore the regions from a previous edit session
nmap <leader>mu :MultieditRestore<CR>

" Move cursor between regions n times
map ]m :MultieditHop 1<CR>
map [m :MultieditHop -1<CR>

" Start editing!
nmap <leader>M :Multiedit<CR>

" Clear the word and start editing
nmap <leader>C :Multiedit!<CR>

## Status
" Unset the region under the cursor
nmap <silent> <leader>md :MultieditClear<CR>

It's my first plugin and currently it supports only basic editing using insert mode. Current functionality is demoed in the following screencast: http://shelr.tv/records/4fef105a966080237e00005e
" Unset all regions
nmap <silent> <leader>mr :MultieditReset<CR>
```
Loading