Atom does not allow me to use Space bar and delete button - macos

In the Atom Editor i am not able to use the Space bar to insert a space and the delete button to delete characters. It works as a pointer and moves forward and backwards

This is probably caused by having vim-mode enabled, which will cause Atom to use the same behavior as Vi(m).
When you're not in Insert Mode in Vi(m), the Space and Backspace keys will simply move the cursor.
Please try one of the following:
Enter Insert Mode by pressing the "i" key, then try the Space bar again.
Or, disable the vim-mode package to use the regular Atom bindings, which will allow you to use Space for entering a space character.

Related

How to delete whitespace backward in Xcode

I would like to use Xcode editor instead of others for swift typing but I am missing basic functionality of deleting whitespace backward.
Normally in the world of code editors, you just press option + backspace or something similar and thats it, it deletes whitespace just until next character starts, eating new line in the way as everyone needs.
But xCode is doing some wired unusable staff and is deleting not just whitespace and new line, but also part of text on previous line, until it considers some character start of word, basically making it unusable.
I don't need to know how to use "Delete subword backward" !
All key bindings can be edited in Xcode -> Preferences -> Key Bindings.
By default the combination you're interested in is assigned to something like Delete Subword Forward. Just remove the combination from the action that you don't need and add it to the action called Delete Forward (or whatever action you're looking for, it's not very clear).
To add a key binding you double click on existing Key value, click +, press Option+Backspace, click somewhere outside the field to save new value.

Are Delete and Backspace keys functioning related to data structures?

Can we say that the delete key works on Stack and backspace works on Queue datastructures ?
Are there any other keyboard functions that work on datastructures that everyone should know ?
Assuming you are just talking about using a keyboard to enter text into a text field, then if you aren't moving your cursor around it is like a stack of characters. Hitting any character-key puts that letter on top of the stack, and hitting the backspace key pops the topmost character off of the stack.

How to insert text at the beginning of a multi-line selection on GVim?

I have a large block of text, and I want to insert comment delimiters // at the beginning of every line. I am using X11 forwarding to run GVim from a remote Linux box on my local windows machine. I can use the Ctrl+Q to enter the block selection mode as suggested in this post. When I try to press Shift+i to insert in the selected block, it deletes what I have selected and instead inserts the letter "I" at the top line of my selection and puts me in insert mode.
Any suggestions on how I can insert comment delimiters at the beginning of every line in a block? I would love to solve the problem with block insert, but a work-around would also be appreciated.
have you tried :s command?
select those lines
then :s#^#//#
Your Vim is set to behave mswin. You can use :behave xterm to make it behave in the default manner, and then the other suggestions should work.
The behavior of replacing the selection is a characteristic of select mode. You need to use visual mode for the column-insert via I.
How you got into select mode depends on your configuration. If <C-Q> gets you there, you likely have the cmd value in the 'selectmode' setting.
This is a comma separated list of words, which specifies when to start
Select mode instead of Visual mode, when a selection is started.
Possible values:
mouse when using the mouse
key when using shifted special keys
cmd when using "v", "V" or CTRL-V
Also check the options listed under :help :behave. You may have turned on :behave mswin, and that causes all such unexpected effects.

Visual Studio 2010 "INS" & "OVR"

What is the meaning of the "INS" and "OVR" messages at the right bottom of the vs 2010 screen?
INSERT or OVERTYPE or something like that.
It does the same as if you press the INSERT touch on your keyboard.
It tells you whether you are in "Insert" or "Overtype" mode.
From wikipedia:
It is primarily used to switch between the two text-entering modes on
a personal computer (PC) or word processor. The first is overtype
mode, in which the cursor, when typing, overwrites any text that is
present on and after its current location. The other is insert mode,
where the cursor inserts a character at its current position, forcing
all characters past it one position further. The insert/overtype mode
toggling is not global for the computer or even for a single
application but rather local to the text input window in which the
Insert key was pressed.
On early text-based computing environments and terminals, when the
cursor was in overtype mode, it was represented as a block that
surrounded the entire letter to be overstruck; when in insert mode,
the cursor consisted of the vertical bar that is highly common among
modern applications, or a blinking underline under the position where
a new character would be inserted.
INS - Insertion
OVR - Overwriting
When the mode is INS it will insert text at insertion point else will overwrite.

how can i move the cursor in insert mode in viemu (w/o using the arrow keys)?

sometimes i just want to move either left or right a couple of characters (or go to the end of the line) but don't really want to leave insert mode just to move a couple chars.
I don't know about viemu and visual studio, but in vim, you can use <Ctrl-o> to enter a single command while in insert mode, so <ctrl-o>2l will move you 2 characters to the left, and <ctrl-o>$ will move you to the end of the line.
There is no way of moving the cursor which is easier than just using the arrow keys, thats what they are there for. Insert mode is for inserting text, not navigating the file. If you would like to be so pedantic about not using the arrow key then there is a solution for you:
press
use 'HJKL' keys until at destination
press 'i'

Resources