spyder-vim icon indicating copy to clipboard operation
spyder-vim copied to clipboard

Commands to add

Open Nodd opened this issue 9 years ago • 9 comments

(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)

Nodd avatar Jun 08 '16 13:06 Nodd

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...)

Nodd avatar Jul 07 '16 13:07 Nodd

  • [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]

mannyglover avatar Dec 01 '16 19:12 mannyglover

  • [ ] d$ [delete till end]
  • [x] ^ [go to the beginning of the blank line]

piotr-kowenzowski-asi avatar Dec 08 '16 13:12 piotr-kowenzowski-asi

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)

mvds314 avatar Apr 28 '23 10:04 mvds314

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 avatar Jun 30 '23 15:06 mvds314

@mvds314, yes, please do! @ok97465 helps us to maintain it but we can also review any PR you want to contribute.

ccordoba12 avatar Jul 10 '23 16:07 ccordoba12

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.

ok97465 avatar Jul 10 '23 23:07 ok97465

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.

luis-j avatar Aug 25 '23 23:08 luis-j

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?

Masterhigure avatar Sep 29 '23 21:09 Masterhigure