Kim Silkebækken
c9e2c2d49d
Assign default GUI colors correctly
2011-03-31 15:39:58 +02:00
Kim Silkebækken
a7b7becea4
Reset default highlighting after loading a color scheme
...
Color schemes use `hi clear`, which clears the EasyMotion syntax
highlighting when a new color scheme is loaded. This change introduces
`autocmd`s which reset the default colors after loading a new color
scheme.
Closes #6 .
2011-03-31 13:34:53 +02:00
Kim Silkebækken
c48db22d4c
Revert "Speed up searching by moving past folded lines"
...
This reverts commit 28405afd2a
.
2011-03-31 13:13:36 +02:00
Kim Silkebækken
3cb436d203
Create function for index generation
...
By encapsulating the index generation in a function, the global
namespace doesn't get polluted with temporary variables.
2011-03-31 09:28:02 +02:00
Kim Silkebækken
ed4ed24fd3
Add missing fold markers
2011-03-31 09:27:28 +02:00
Kim Silkebækken
92ef3190bd
Add j/k motions
2011-03-30 18:47:02 +02:00
Kim Silkebækken
fd5ed651a0
Check if lines are empty before substituting
2011-03-30 18:46:49 +02:00
Kim Silkebækken
f14c962051
Refactor w/b motions
2011-03-30 18:23:38 +02:00
Kim Silkebækken
6f6d6ce1cf
Refactor ge motion
2011-03-30 18:03:48 +02:00
Kim Silkebækken
6074a8c7b1
Merge branch 'mathstuf-dev/add-easy-ge' into develop
...
* mathstuf-dev/add-easy-ge:
Add ge motion
2011-03-30 17:58:22 +02:00
Ben Boeckel
2c7065fa26
Add ge motion
2011-03-30 11:54:45 -04:00
Kim Silkebækken
635ffa4dd2
Check compatibility and version
2011-03-30 14:18:39 +02:00
Kim Silkebækken
419af50587
Update var initialization
2011-03-30 13:35:35 +02:00
Kim Silkebækken
ec17e11e0e
Verify that target_hl_id exists
2011-03-30 12:51:28 +02:00
Kim Silkebækken
7655a77d72
Remove unneeded cursor positioning
2011-03-30 12:48:12 +02:00
Kim Silkebækken
87caa8bcaa
Move assignment out of while loop
2011-03-30 10:47:11 +02:00
Kim Silkebækken
f24a54d798
Don't run undojoin before each setline() call
2011-03-30 10:43:59 +02:00
Kim Silkebækken
4a2cb09228
Use cursor() instead of setpos()
2011-03-30 10:32:42 +02:00
Kim Silkebækken
01a1091c0f
Use attribute 'NONE' instead of 'none'
...
Windows complains about missing color 'none', this update should fix
that.
Closes #1 .
2011-03-29 19:32:20 +02:00
Kim Silkebækken
28405afd2a
Speed up searching by moving past folded lines
2011-03-29 17:04:53 +02:00
Kim Silkebækken
1864b1d3fd
Improve exception handling
2011-03-29 17:04:19 +02:00
Kim Silkebækken
fea0d68d5a
Improve visual selection handling
2011-03-29 17:03:46 +02:00
Kim Silkebækken
b70c94403d
Use correct buffer name in VarReset
2011-03-29 17:01:47 +02:00
Kim Silkebækken
05a3fdac64
Remove stray commas
2011-03-29 15:39:25 +02:00
Kim Silkebækken
36e390e76f
Update author and source information
2011-03-29 14:10:00 +02:00
Kim Silkebækken
8e2c92d00c
Restore visual selection when cancelling F/T motions
2011-03-29 09:10:52 +02:00
Kim Silkebækken
40f21fdc3a
Create function for setting default highlighting
2011-03-29 08:58:00 +02:00
Kim Silkebækken
6b58e2ce2b
Fix variable name issue
2011-03-29 08:48:23 +02:00
Kim Silkebækken
c3d3d0f3d5
Create function for initializing options
2011-03-29 08:47:59 +02:00
Kim Silkebækken
1d263a8a99
Use s: instead of <SID>
2011-03-29 08:25:44 +02:00
Kim Silkebækken
120b0bab88
Improve exception handling for get_char()
2011-03-28 23:35:27 +02:00
Kim Silkebækken
a29f73d812
Verify that shade_hl_id is set to prevent error message
2011-03-28 23:24:00 +02:00
Kim Silkebækken
f586b2460e
Reorder function parameters for a more consistent API
2011-03-28 22:57:39 +02:00
Kim Silkebækken
7948d6ca47
Use "normal gv" to restore visual selection
2011-03-28 22:46:32 +02:00
Kim Silkebækken
49a4795a86
Refactor try/catch blocks
2011-03-28 22:46:02 +02:00
Kim Silkebækken
ebb93269cf
Make visualmode parameter required for motion functions
2011-03-28 22:30:28 +02:00
Kim Silkebækken
becf71b5ad
Update default syntax highlighting
2011-03-28 22:02:43 +02:00
Kim Silkebækken
1c1130bfe4
Create function for updating lines
2011-03-28 18:04:56 +02:00
Kim Silkebækken
a5119b9981
Wrap the main function in a try..catch..finally loop
...
The script throws exceptions when cancelled or when there's no matches.
The catch block displays the message and restores the cursor position.
The finally block restores buffer properties.
2011-03-28 17:48:09 +02:00
Kim Silkebækken
99afbc1b88
Create function for resetting/restoring variables
2011-03-28 17:47:13 +02:00
Kim Silkebækken
98384b9e49
Store and restore scrolloff value
...
Having &scrolloff > 0 caused an issue where backwards searches would
scroll during the searchpos() call and hide parts of the buffer. This
fix temporarily sets scrolloff to 0 during function execution.
2011-03-28 16:45:57 +02:00
Kim Silkebækken
8933340d24
Update docs
2011-03-28 12:05:30 +02:00
Kim Silkebækken
c1c4444e58
Update comment header
2011-03-28 10:18:00 +02:00
Kim Silkebækken
99dfdfb732
Make the motions work in visual mode
2011-03-28 10:14:51 +02:00
Kim Silkebækken
a4689e85ec
Use substitute() for markers, works better with Unicode
2011-03-28 10:12:08 +02:00
Kim Silkebækken
ed55a301e0
Use setpos() to set cursor position
2011-03-28 09:05:10 +02:00
Kim Silkebækken
8f19f49f46
Update shade regexps
2011-03-28 09:04:57 +02:00
Kim Silkebækken
0bcb81a5f3
Update comments
2011-03-28 09:04:22 +02:00
Kim Silkebækken
66010ff2a6
Simplify grouping of marker lines
2011-03-28 09:03:49 +02:00
Kim Silkebækken
2ccfe05430
Skip folded lines
2011-03-28 00:22:40 +02:00