Commit Graph

276 Commits

Author SHA1 Message Date
haya14busa
2fdfc15c56 Fix lineanywhere motion at visual selection
Probrem: line('.') couldn't correctly current position at visual mote
unless get buck normal mode temporarily
2014-01-07 20:29:16 +09:00
haya14busa
ead72033d7 Delete unused file 2014-01-07 17:08:52 +09:00
haya14busa
4eeae613bc Flatten indent 2014-01-07 17:02:16 +09:00
haya14busa
9812233fac Perform refactoring for handling visual mode 2014-01-07 16:17:54 +09:00
haya14busa
49af16d291 Merge branch 'feature/withinline' into master 2014-01-07 10:17:42 +09:00
haya14busa
10e4d19ed2 Fix indent 2014-01-06 13:53:49 +09:00
haya14busa
986119b514 Fix error temporarily when undofile is empty at first edit
Solution: execute undobreak if undofile is not readable(maybe once)
Problem : side effect(undo number is incremented)
2014-01-06 13:52:35 +09:00
haya14busa
c6a7c4ff10 Fix undotree
Problem  : EasyMotion destroy undotree by overwriting buffer text
temporarily
Solution : Use wundo & rundo
Reference: :h wundo
           :h rundo
2014-01-06 09:24:32 +09:00
haya14busa
53100fbc61 Implement within Line Motion! 2013-12-29 16:21:37 +09:00
haya14busa
652e5985b4 Add small condition to migemo 2013-12-29 14:31:34 +09:00
haya14busa
4c55ab61ac Add smartsign feature like smartcase
Now, you can jump to '!' by '1'.
Option: keyboard layout
    g:EasyMotion_use_smartsign_us
    g:EasyMotion_use_smartsign_jp
2013-12-29 14:29:05 +09:00
haya14busa
37e5506b8b Refactoring JumpToAnywhere motion! 2013-12-23 01:00:13 +09:00
haya14busa
fe8d8448cf Refactoring Find motion! 2013-12-23 01:00:07 +09:00
haya14busa
6cb60225bf Fix SelectLine & SelectPhrase behavior
Now cursor jump to second typed position
2013-12-22 20:55:28 +09:00
haya14busa
e5aac13f0b Improve do mapping behavior 2013-12-22 20:49:35 +09:00
haya14busa
530723fc7a Backward compatible mapping for special function 2013-12-21 21:29:27 +09:00
haya14busa
07e1bbd191 Backward compatible mapping 2013-12-21 20:00:37 +09:00
haya14busa
cc4c084597 Add and fix some comment 2013-12-21 01:43:16 +09:00
haya14busa
f8078d6939 Implement uppercase target
Show target label by uppercase letter, but you can type it as lowercase
Make sure g:EasyMotion_keys doesn't include lowercase
2013-12-21 01:28:05 +09:00
haya14busa
942cce2927 Modify global variable
Change them to s: from g: or add prefix to them
2013-12-20 18:31:20 +09:00
haya14busa
d739e65270 Support JumpToAnywhere motion!
You can config this motion by g:EasyMotion_re_anywhere in your vimrc
Example:

    let g:EasyMotion_re_anywhere = '\v(<.|.>|^$)'
2013-12-20 16:55:17 +09:00
haya14busa
ead7164a4b Refactoring EasyMotion#init#InitMappings
Now you can chose do mapping or preparing <Plug> only
2013-12-20 16:55:02 +09:00
haya14busa
0bffa2ddc2 Feature: vim-easymotion-user 2013-12-20 15:04:46 +09:00
haya14busa
66480855da Support <Plug> mappings
Delete: g:variable mappings
2013-12-19 02:58:51 +09:00
haya14busa
7715fc0caf Fix: autoload script is loaded when vim starting
Solution: Use autoload/EasyMotion/init.vim to call init functions
2013-12-18 22:41:31 +09:00
haya14busa
e707333290 Change s:migemo_dicts location 2013-12-18 22:39:41 +09:00
haya14busa
8a897c58f0 Use save cpo options in autoload/ too 2013-12-18 21:42:56 +09:00
haya14busa
f83bdc1bd5 Change undobreak command
This method doesn't depend on vim mode.
2013-12-10 19:38:43 +09:00
haya14busa
e319902b9a Compensate deleted lines
When you delete lines above current cursor position by SelectLines or
SelectPhrase, restoring cursor position didn't work intuitively

this commit fix this problem
2013-11-27 23:36:43 +09:00
haya14busa
3baa549b64 Break undo history
Make undo behavior after using easymotion in operator pending mode
(or SelectLinesDelete function) consistent with Vim's default

Problem and how to reproduce:

1. `exec normal! "i{text}<C-[>"` or something
2. Call `Easymotion#SelectLinesDelete()` or `d<Leader><Leader>s{target}`
3. type `u`

In this case, undo should restore second operation only, but it restored
first operation in addition to second one because undojoin command is
called in SetLines() function.

This commit fix this problem.
2013-11-27 21:23:10 +09:00
haya14busa
041883bb9a Add SelectPhraseDelete 2013-11-27 19:30:24 +09:00
Joey Liu
f862310910 Add Easymotion#SelectLinesDelete based on Joey Liu works
and fix normal to normal!

-----
added new mapping for selectlines

now dl will preserve current position for easier paste

Conflicts:
	autoload/EasyMotion.vim
2013-11-27 18:53:57 +09:00
haya14busa
18f51f0699 Delete special Paste functions
EasyMotion#SelectLinesPaste() &  EasyMotion#SelectPhrasePaste() conflict
with vim default 'p' function. If enable this function, you cannot
execute vim default 'p' smoothly
2013-11-27 13:24:31 +09:00
haya14busa
7ed30f2bac Fix: Handle no match when visual mode 2013-11-14 07:04:18 +09:00
haya14busa
64869ccaf1 Fix visual selection bug
Fix: when visualmode and current cursor position is end of visual
selection, target is double counted in visual selection. This commit fix
this issue.
2013-11-14 06:39:42 +09:00
haya14busa
59a097877e Fix Visualmode selection bug
now you can use o when visual mode
From : yuex's commit @344b4915ca05efeb59e9acc7159ee69b2ea68602
2013-11-14 05:38:50 +09:00
haya14busa
d78ad4db69 Cosmetic 2013-11-14 04:14:46 +09:00
haya14busa
62c41d6bd5 Now you can use migemo by Easymotion# f, F, t, T function in addition to
Easymotion#S() function
2013-10-24 00:18:08 +09:00
haya14busa
eed78b4283 cosmetic change & refactoring 2013-10-24 00:13:49 +09:00
haya14busa
ce53296016 Fix EOL bug 2013-10-23 23:49:47 +09:00
haya14busa
47e12eaf6a Fix Multibyte hundling! 2013-10-23 23:26:50 +09:00
haya14busa
78fe0b2d14 [WIP]Fix multibyte hundling 2013-10-23 20:28:48 +09:00
haya14busa
bafa29fee7 support migemo but it'll take too long time 2013-10-12 12:58:29 +09:00
haya14busa
4fbffd964d Fixed skipfoldef bug 2013-10-05 13:05:48 +09:00
haya14busa
f109537d31 Feature: don't skip folded line 2013-10-05 12:58:51 +09:00
haya14busa
80255e41c9 updated documents and added SelectPhrasePaste function 2013-10-05 02:34:48 +09:00
haya14busa
630484d7b6 rename condition to flag 2013-10-05 01:12:31 +09:00
haya14busa
f0b9eb8a5e Supported remapping special function's keymap by vimrc 2013-10-05 01:06:34 +09:00
haya14busa
8b42c6b372 change smartcase function in SelectPhrase 2013-10-04 23:25:45 +09:00
haya14busa
68fc1d8278 Implmented lazymotion!(smartcase) 2013-10-04 22:45:06 +09:00
haya14busa
a705a81d25 Merge mtth's keep cursor column function(Easymotion_startofline) 2013-10-04 21:25:31 +09:00
haya14busa
73b31f1461 delete EOL spaces 2013-10-04 20:35:22 +09:00
haya14busa
29992f7563 Merge remote-tracking branch 'bootleq/buffer-name' into mergebootleq 2013-10-03 20:19:12 +09:00
Matthieu Monsch
412abbe14a Merge branch 'nostartofline' into combined 2013-08-20 22:50:51 -04:00
Matthieu Monsch
76c39169ef added g:EasyMotion_startofline option 2013-08-20 22:47:19 -04:00
Matthieu Monsch
0444f36058 keep cursor column when jumping 2013-08-20 20:07:19 -04:00
svermeulen
e41aaee11c Fix for some folding related issues 2013-06-22 18:17:47 -03:00
Supasorn Suwajanakorn
c90a9c3aed auto commit 2013-06-03 17:37:02 -07:00
Supasorn Suwajanakorn
b877360a1c auto commit 2013-06-03 17:35:29 -07:00
Supasorn Suwajanakorn
d9661ac7da auto commit 2013-06-03 17:26:16 -07:00
Supasorn Suwajanakorn
be5190f01d Cleanup code, default selectline mapping 2013-06-03 14:24:44 -07:00
Supasorn Suwajanakorn
7b480405e6 auto commit 2013-05-31 10:55:17 -07:00
Supasorn Suwajanakorn
eed79f3f43 auto commit 2013-05-30 23:02:16 -07:00
Supasorn Suwajanakorn
0249df33e6 auto commit 2013-05-30 22:48:00 -07:00
Supasorn Suwajanakorn
2d2887cd8f a 2013-05-30 22:47:09 -07:00
Supasorn Suwajanakorn
32189c48d0 auto commit 2013-05-23 01:09:09 -07:00
Supasorn Suwajanakorn
3ede0e986c Add character . for repeating line for selectlines() 2013-05-23 01:02:03 -07:00
Supasorn Suwajanakorn
9ce29dc392 auto commit 2013-05-16 10:08:30 -07:00
Supasorn Suwajanakorn
8e90450c84 auto commit 2013-05-15 23:50:30 -07:00
Supasorn Suwajanakorn
bbd92e49c8 auto commit 2013-05-15 19:32:47 -07:00
Supasorn Suwajanakorn
008e81e523 auto commit 2013-05-15 14:05:02 -07:00
Supasorn Suwajanakorn
27a8f3ddb4 auto commit 2013-05-13 22:53:51 -07:00
Supasorn Suwajanakorn
229a190ceb auto commit 2013-05-13 21:43:58 -07:00
Supasorn Suwajanakorn
c58b10b59f auto commit 2013-05-13 20:30:03 -07:00
bootleq
1d773b0dfe Fix incorrect setbufvar with invalid bufname expr.
When bufname contains |file-pattern|, setbufvar() might raise E16
Invalid Range error.

Use setbufvar("", ...) instead of setbufvar(bufname_string, ...).
2013-04-10 14:07:30 +08:00
Kim Silkebækken
6f0c9b9084 Move most of the code to autoload/
Should make vim startup a bit faster. Thanks to kien for the idea.

Refs #33.
2011-11-07 14:33:20 +01:00