spyder-vim
spyder-vim copied to clipboard
Commands to add
(See also https://github.com/spyder-ide/spyder-vim/wiki/Commands) List from https://github.com/spyder-ide/spyder/issues/669#issuecomment-222555709:
- [x] %
- [ ] {
- [ ] }
- [x] gg
- [x] G
- [x] $
- [x] 0
- [ ] :$
- [ ] :^
- [ ] :r [!]
- [x] yy
- [x] p
- [ ] m
- [ ] "
- [ ] Shift+V
- [ ] Ctrl+V
- [x] A (capital) and I (capital)
- [ ] A (capital) and I (capital) in *+V modes
- [ ] :s
- [ ] &
- [ ] q / "macro" bindings
- [ ] gU
- [ ] gu
- [ ] ga
- [x]
dd - [x] f
- [x] F
- [ ] *
- [x] /
- [x] I
- [ ] :hls
- [ ] "folding" bindings (Note: folding is not possible in spyder right now)
I added a few more. This is going to be a looong process... And I'm sure I didn't get all the details and corner cases right (exact cursor position after the action, word definition, before or after whitespace...)
- [x] w [go to next word]
- [x] b [go to beginning of previous word]
- [x] e [go to end of current word (or next word if cursor is currently on whitespace)]
- [ ] B [go to beginning of previous "word," where word is defined as, I believe, any string of consecutive non-whitespace characters.]
- [ ] E [E:e::B:b <- standardized test analogy explanation]
- [ ] d$ [delete till end]
- [x] ^ [go to the beginning of the blank line]
Combinations of commands and motions would be very convenient:
- [ ] ciw
- [ ] caw
- [ ] same for d(elete) instead of c(hange)
- [ ] same for v(isually select) instead of c(hange)
- [ ] same for " instead of w(word)
- [ ] same for ' instead of w(word)
- [ ] same for [ instead of w(word)
- [ ] same for { instead of w(word)
- [ ] same for ( instead of w(word)
- [ ] same for W(ord) instead of w(word)
If I can make the time, I can try to implement a few of those commands. Not sure who's in charge of this project. Can I just make a PR?
@mvds314, yes, please do! @ok97465 helps us to maintain it but we can also review any PR you want to contribute.
If I can make the time, I can try to implement a few of those commands. Not sure who's in charge of this project. Can I just make a PR?
Sorry for the late response. Notification for this repository was turned off. Please submit a PR at your convenience.
One of the first (if not the first) command I would wish is the dot command to repeat the last action. I'm afraid my knowledge of Python is extremely limited, and I wouldn't be able to contribute code.
Several replies here with sensible suggestions. Maybe it would be an idea to edit the original / top comment to contain those as well? So that all the desired commands are gathered in one post rather than spread out over a thread?