Remove add_base and add doc
This commit is contained in:
27
README.md
27
README.md
@@ -1 +1,26 @@
|
||||
# Smart Whole line completion
|
||||
# Line Suffix completion
|
||||
|
||||
Like vim's [whole line completion][0], but works even if the start of the line
|
||||
does not fully match.
|
||||
|
||||
## Example
|
||||
|
||||
```javascript
|
||||
var foo = SomeBigName(arg1, arg2, arg3)
|
||||
|
||||
# now when creating a similar variable, the mapping completes rest of the line.
|
||||
|
||||
var bar = Some<C-X><C-L>
|
||||
var bar = SomeBigName(arg1, arg2, arg3)
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] Convert to proper vim plugin. For now, `source /path/to/lc.vim`
|
||||
- [ ] Use <Plug> and add option to disable mapping by default
|
||||
- [ ] Make the min length of suffix configurable. Now 2
|
||||
- [ ] Add tests for GetLongestSuffix
|
||||
- [ ] Use better algorithm for GetLongestSuffix
|
||||
- [ ] Add doc
|
||||
|
||||
[0]: https://vimhelp.org/insert.txt.html#compl-whole-line
|
||||
|
Reference in New Issue
Block a user