Giter Site home page Giter Site logo

cuda_vim_mode's People

Contributors

alexey-t avatar cudatext-addons avatar nochiel avatar veksha avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

nochiel veksha

cuda_vim_mode's Issues

Replace mode

r = replaces current character by next letter typed; then return to normal command mode

R = stays like this until you hit escape (sometimes called Replace mode) so you type over whatever else is on the line, like old computers when you weren't in insert mode

Insert/append at front/back of line

I = enter Insertion mode at front of line
A = enter Insertion mode (aka append) at end of line
0 (zero) = moves cursor to front of line
$ = moves cursor to end of line

Movement on screen

These should work when in word-wrap mode (or when it's off)

H home cursor - goto first line on screen
L goto last line on screen
M goto middle line on screen

support [count]

Copied from Alexey-T/CudaText#1706
Support the optional [count] for all commands that support this
Examples (in command mode):

4V -> Switch to select full line mode and select 4 lines
4dd -> Delete 4 lines
3w -> Jump to the 3rd word

Ctrl+[, Ctrl+H, Ctrl+I, Ctrl+M

Is there any way to setup Ctrl+[ for "Escape behaviuor"?
I know that setup 'jj' or 'jk' is possible, but Ctrl+[ is standard vim shortcut and its more usable

0 key issue

Hello there,

Pressing 0 (zero key) does not work as expected (it should bring caret to the beginning of the line).

Thanks!

support `dgg` and `dG` hotkeys

Hello there,

It seems that G and gg motions don't work correctly for delete operations and visual mode (and maybe other scenarios but I didn't test).

  • dG should delete lines from cursor to the end of the document
  • dgg should delete lines from cursor to the beginning of the document
  • VG should select from cursor to the end of the document (also take note of v variant)
  • Vgg should select from the cursor to the beginning of the document (also take note of v variant)

Instead of doing this, currently only the motions is done, ignoring text deletion or selection.

Thanks!

Next instance of word

# = jumps to next occurrence of the word the cursor was one when you hit # or toggles between if only two of them. etc.

Repeat & Undo

Vi’s repeat command is very powerful, as it can repeat complex, combined commands.

u – Undo.
. – The . repeats the last full command. The insert command also functions as a command here. For example, type iunicorn and press Escape. You can then use the . key to insert the word unicorn at the cursor.

Copying & Pasting

Vi refers to the act of copying as “yanking.”

v – Press v and move the cursor to select a section of text.
y – Copy (yank) the selected text.
p – Paste at cursor.
x – Cuts the selected text. Cuts the character under the cursor if no text is selected
r – Type r and then type another character to replace the character under the cursor.

remap Esc key ?

I would like to remap the Esc key with a comination of keys like jj or jk.
Is there a way to do that?

Add alias keybindings

Hello there,

Please consider adding the following keybindings:

yy: Same as Y
zz: Same as z.

Thanks!

Power deletion

D - Deletes from cursor to end of line
dw – Deletes the next word.
db – Deletes the previous word
de – Deletes to the end of the current word.
dL – Deletes all text below the cursor in the file.
d/unicorn – After pressing Enter, deletes all text between the cursor and the word “unicorn” in the current file.
dd – Deletes an entire line.

gg/G

gg= cursor to top of file
G = cursor to bottom of file

Caret on startup in command mode is like edit mode

Hello there,

This is just a visual thing.

I have set the plugin to start with CudaText in command mode. It does, but the caret doesn't reflect it (it is the classic edit caret). When you enter insert mode and then exit, then it works correctly.

Thanks!

Visual mode

v = start selecting text for copy/paste/delete etc
V = same but selecting by line

Change case

~ = change case of highlighted text; if no text highlighted, change case of text under cursor; if mixed, toggle case.

Vim mode toggle (hotkeys) and sticky

Ideally vim mode should come default with Cuda (like it does with ST, Atom etc.--more important than minimap for example) but at the very least we need it to be sticky so we don't have to reactivate it every time we restart Cuda. And have hotkeys to do so. A Vimkeybinding user tends to want it to always be in Vim mode.

The only real choice is that you can have it start in Command Mode or start in Insert Mode. Most editors have it default to start in Insert Mode (so you don't notice till you hit escape) but this could be an option.

Change

c = change = like "delete" except it also switches into insert mode after the change.

e.g.

cw = delete word (as dw) and leave cursor in insert mode
ce = as de ...
cb = as db ...

Bug of visual mode

@vakosel wrote
I tested your visual mode and it is not working fineWhen you press v ( for visual single characters) and then press the navigation keys ie h,l to select characterseither left or right, selects the first character and remains stuck. Check it out

Search

/ – Type a / followed by some text you want to find and press Enter to quickly move your cursor to the location of the text in the file. For example, if you have the word iguana in your file, type /iguana and press Enter to quickly move the cursor there.

? – Like /, but searches backwards.

f – Type an f followed by any character to quickly move the cursor to the next occurrence of the character on the current line. For example, if you have the line “Hello world” on a line and your cursor is at the beginning of the line, type fo to move to the o in Hello. Type fo again to move to the o in world.

F – Like f, but searches backwards.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.