Repository navigation
Closed
Description
Test for #8997:
- Any OS (Linux) - Daniel Imms (@Tyriar)
Set up
- Clone the repository VS Code Extension Samples
- Go to the folder vim-sample and do npm install
- Open VS Code on vim-sample
- Run the extension using Launch Extension.
This will run Vim sample extension and is referred as Vim editor from here after. Verify following scenarios on this.
Good to know
- Vim editor has basically 3 modes:
Normal,Visual,Edit.
Mode change
- Press
ifor edit mode when in normal or visual mode. - Press
escfor normal node when in edit mode. - Press
vfor visual mode when in normal mode.
Line vs wrapped line
A line is a complete line that can consists of one or more wrapped lines in the screen.
Note: All of these scenarios have to be tested in non-edit mode
Test Cursor movements
When cursor is in wrapped line then typing...
Test left - right motions
g0: Moves to beginningvg0: Selects till beginning- `g^: Moves to first non white space character
vg^: Selects till first non white space characterg$: Moves to endvg$: Selects till endg_: Moves to last non white space charactervg_: Selects till last non white space charactergm: Moves to centervgm: Selects till center
Test up - down motions (Where n is a number variable and default is 1)
ngkMove up n wrapped linesnvgkSelect till n wrapped lines upngjMove down n wrapped linesnvgjSelect till n wrapped lines downnHMove to first non white space character of nth line from the top of the viewnvHSelect till first non white space character of nth line from the top of the viewnLMove to first non white space character of nth line from the bottom of the viewnvLSelect till first non white space character of nth line from the bottom of the viewnMMove to first non white space character of center line of the viewnvMSelect till first non white space character of center line of the view
Test Tab motions
In Normal / Visual mode, typing : will open an Input box. In the input box, type and test following for current active editor
Note: For convenience, input box is pre-filled with value tabm.
When tabs are enabled
tabmMoves to last position in its grouptabm{n}Moves to positionnin its group. Default is 0.tabm>{n}Moves to right bynpositions in its group. Default is 1.tabm<{n}Moves to left bynpositions in its group. Default is 1.tabm>>Moves to last position in its group.tabm<<Moves to last position in its group.tabm.Moves to center of its group. Default is 1.
When tabs are disabled
Note: 0: Left, 1:Center, 2:Right
tabm,tabm>,tabm>>Moves toRightgrouptabm<,tabm<<Moves toLeftgrouptabm.Moves toCentergrouptabm{n}Moves to groupn. Default isRight.
Activity