cudatext-addons / cuda_vim_mode Goto Github PK
View Code? Open in Web Editor NEWCudaText plugin: Vim Mode
CudaText plugin: Vim 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
it used to work in the past, but now is broken again.
we should change on_start
to on_start2
?
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
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
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
Simplest is to have a | cursor when in insert mode and have a cursor that covers a character in command mode: like th[i]s but translucent.
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
Hello there,
Pressing 0 (zero key) does not work as expected (it should bring caret to the beginning of the line).
Thanks!
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 documentdgg
should delete lines from cursor to the beginning of the documentVG
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!
#
= jumps to next occurrence of the word the cursor was one when you hit #
or toggles between if only two of them. etc.
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.
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.
I would like to remap the Esc key with a comination of keys like jj or jk.
Is there a way to do that?
Hello there,
Please consider adding the following keybindings:
yy
: Same as Y
zz
: Same as z.
Thanks!
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= cursor to top of file
G = cursor to bottom of file
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!
J = joins current line to next line
Pls test,
/
?
n
N
v = start selecting text for copy/paste/delete etc
V = same but selecting by line
~ = change case of highlighted text; if no text highlighted, change case of text under cursor; if mixed, toggle case.
Keys in insert mode should act in normal ways but for some reason the delete key now works as a backarrow, i.e. moves back but does not delete.
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.
O = creates empty line above current line (and goes into insert mode on new line)
o = creates empty line below current line (and goes into insert mode on new line)
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 ...
I see "[Vim] go to screen top" in status bar but nothing really happens.
done:
number+'|' : goto column number
@mangobait If works, pls close issue
@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
/ – 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.