forked from idbrii/vim-jumpmethod
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed various situations where [m would hit places it shoudln't and m…
…iss places it should hit. Also added mappings for [[ and ]].
- Loading branch information
Rob
authored and
Rob
committed
Feb 16, 2020
1 parent
8cb81e6
commit 8ea9e8d
Showing
4 changed files
with
338 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
# vim-jumpmethod | ||
Add ]m/[m support for more languages | ||
Add better `[[`, `]]`, `]m`, `[m` support for more languages | ||
|
||
# About | ||
|
||
Based on [Andrew Radev's awesome Stack Overflow | ||
answer](https://stackoverflow.com/a/6855438/79125), this plugin improves | ||
`]m`/`[m` support for C#, Java, and C++. | ||
`]m` and `[m` support for C#, Java, and C++. | ||
|
||
It also uses [bybor answer](https://stackoverflow.com/a/25521838/79125) to use | ||
OmniSharp support, if available. | ||
|
||
|
||
Turned into a plugin by @idbrii | ||
|
||
Modified by @RobertCWebb in the following ways: | ||
|
||
* Added Test.cs as a C# file to test on. Fixes listed below reference it | ||
* Fixed: In Func1() there were false positives where `if` or `using` statements span multiple lines | ||
* Fixed: Func2() failed to hit before due to the template definition | ||
* Fixed: Func3() failed to hit because a comment contained the word "if" | ||
* Fixed: Func4() failed to hit because function heading was split over multiple lines | ||
* Fixed: Func5() failed to hit too, here the '(' is also on a new line | ||
* Fixed: Func6() failed to hit due to comments getting in the way | ||
* Fixed previous position marker not being set, ie after using `[m` or `]m` you should be able to use `''` to go back to previous line | ||
* Also, when searching back, I made it scroll up a little so the function name is visible, even though the cursor still lands on the '{' below | ||
* Added mappings for `[[`, `]]`, `[]` and `][` which stop at class and property definitions in addition to functions. Their standard behaviour in vim is often useless for C# and C++. `[m` and `]m` still only stop at methods and functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.