Exclude overwrite for whitespace when in overwrite mode in Notepad++ - insert

Is there a way to stay in the overwrite mode of Notepad++ but still use the whitespace character (space key) as if it is in the insert mode?

Related

How to insert/copy+paste unicode whitespace into a text file using editors like Textmate?

I am trying to create a test csv file for a file cleaning script that is supposed to normalize all whitespace into "normal"/ "regular" whitespace character. The idea is I will insert a bunch of these oddball whitespace characters into this test file in some various locations.
Here are some sites that show these various and oddball whitespaces
https://en.wikipedia.org/wiki/Whitespace_character
http://jkorpela.fi/chars/spaces.html
I've tried to copy and paste from sources like that website but it seems like they always paste in as a normal space in Textmate. It could be that I am not copying what I think I am copying. In the past I've been able to copy and paste into Textmate special / unicode characters when I can clearly see what I am copying but with whitespace characters, I can't confirm since I can can't see it, so I am not sure if the problem is where I am copying from or that Textmate is converting it to the normal space when I paste it in.
If it is easier to use Textedit (the built in editor) or nano (command line editor) to do this I could use those. Or if there is another way other than copying and pasting that is better to get these into Textmate that would be an option.
I am on a MacbookPro running High Sierra MacOS.
If you have LibreOffice installed you can use the spreadsheet application to create these using their hexidecimal equivalent in 1 cell then doing a conversion using
=unichar(hex2dec(cell_ref_to_1rst_cell)).
Far less confusing and you can save the spreadsheet complete with comments as a handy reference. Then you should just be able to copy paste the cell with the unicode character when required.
If you’re using TextMate, various functions provided by the Unicode bundle could be helpful here (install via Preferences → Bundles → Unicode).
With this bundle installed you can use Insert Unicode Character ⌃⌥⌘I to insert a character by name. Search for “space” to get a list of all space characters, then simply click on the desired character (the full title of a character is shown on hover):
Of course once inserted all the space characters look almost identical. To identify them, use Show Unicode Name(s) ⌃⌥⌘U 6. This will display a tooltip showing the unicode of name of the character directly before the cursor (or the names of all selected characters, if a selection is active).
Also have a look at Show Character Inventory (press ⌃⌥⌘U and then select the command from the popup menu): This provides a convenient overview of all the characters in your document (or in the selected text, if a selection is active).

soft tabs showing up as hard tabs, spaces converted to hard tabs

I have soft tabs enabled, but not only is the editor putting actual tabs in instead of spaces, if I type [space][space], it converts it to a tab. I've read that the editor tries to read existing files to guess your settings (I have Autodetect turned off if that matters), so I tried with a new file. Here is the relevant section of my settings file (which I edited through the GUI):
"ace": {
"#guessTabSize": false,
"#newLineMode": "unix",
"#tabSize": 2,
"#useSoftTabs": true
},
When I turn off soft tabs, it stops converting spaces into tabs, but either way, when I hit enter at the end of a line, autoindent uses a tab instead of spaces.
Cloud9 doesn't have any code that can convert two spaces into a tab.
When soft tabs is enabled it moves cursor as if two spaces is a tab, but that doesn't change characters in the file.
Enter at the end of line copies indentation from that line, and doesn't depend on tab settings.

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

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.

Keep white space when pasting into a .h file in Visual Studio

I am charged with maintaining a .h file. The formatting includes preserving white spaces (spaces, not tabs) between columns of colors.
When I copy and paste a previous line, all the spaces are collapsed, and I have to manually put them back in.
Is there a setting I can flip to keep the white spaces?
You'll probably want to turn off the auto formatting when pasting: Tools->Options->Text Editor->C/C++->Formatting->Automatically format when I paste
There's some other auto formatting settings there you might want to modify also, including customizing how auto formatting is performed.
If you want Tab to insert spaces instead of tabs change Tools->Options->Text Editor->C/C++->Tabs->Insert Spaces

Oh My ZSH & Vim Insert Cursor

Currently using Oh My ZSH, however, when using Vim in INSERT mode, at the end of a line, when using arrows to navigate, the insert mode ends when you hit the end of the line, making it impossible to delete the last character on the line, following is my Theme file, can anybody help me out with this?
https://github.com/andrew8088/oh-my-zsh/blob/master/themes/doubleend.zsh-theme
Thanks!
AFAIK it's not recommended to move around in insert mode at all. if you want to delete the last character on the line, just hit $x in normal mode. To delete the last character on the line and go to insert mode, use $s.
In most cases you should move much faster in normal mode usign w,e,^ and the like, than using the arrows in insert mode. Why use vim if you use it like a notepad application?
Hope this helps

Resources