i just installed the last version of git (2.8.1) for windows7 from the official site, but when i run git-bash and type somme commands in the cmd, the screen doesn't updated correctly when i delete somme chars from the line command. in contrary when i click the (del)'s key a space char is added to the display instead of deleting the chars from the screen.
for example :
cd /d/formationss
if i want delete the two last 's' of 'formationss' with the (del) key of keyboard , what i see is :
cd /d/formationss__
instead of deleting the two 's' space's chars are added.
but things work perfectly on background, the delete command is work the problem concern only the displaying issue .
i tried to reinstall the software but still doesn't work.
i well be grateful for your help, thank you for your time and consideration and so sorry for my bad english
Related
When I'm using git and running any command which intends to open an editor (like git commit or git rebase -i) it opens up vim as expected in powershell but it behaves very strangely.
If i press <Ctrl + Right arrow> it erases a lot of content in the file and turns insert mode on but it should advance the cursor to the end of the next word keeping the current mode
If i open COMMIT_EDITMSG in another terminal with powershell and proceed with E (Forcing it not to use swap) it works just fine. I tried different terminal emulators like cmd and powershell terminal but it works the same (weird) way in all of them
Fixed it using neovim instead of vim
Note that it also act strangely when leaving vim, displaying the commit message poorly:
This is followed by microsoft/terminal issue 9359, and mentioned in the latest Git For Windows release 2.34: check if Git 2.34 would behave better with vim in your case.
I used code ~/zshrc. to go into the file and do some custom styling for my terminal. One of those things I added was echo -e " \e[5m \e[25m" which causes my command line to blink if I haven't initialized git tracking. I did it just for fun and decided after pressing cmd + q in vs code that I wanted to change it. However, this was lost and now when I run code ~/zshrc. it brings me to a blank file with none of the settings I personally added. When I did this I was definitely in my home directory. I'm wondering if there is any way I can undo some changes, go back to the way it was on a previous day, or just reset. Any recommendations? My terminal is not usable with everything flashing. Even running ls all my directories are flashing and I can hardly read it.
Thought I'd post an update. After a break, I came back the next day and noticed that the command I should've been running was code ~/.zshrc and not code ~/zshrc.. That fixed the whole problem so I could edit my zshrc file.
I just fresh installed windows on my machine and added the linux subsystem (ubuntu for now..) but I am experiencing a strange behavior when using it. The letter i is not working. Actually it even produce the sound of the error when pressed ( the classic ding ). The button has absolute no problem as it works just fine when in windows. It works in command line ( windows ) but it also works in linux subsystem when I open nano and start typing. The problem is only in the bash. ( If I type a command in nano
#!/bin/bash
mkdir iiii
and execute the script it will run as expected.
So the only conclusion I can come up with is there is a shortcut on the button i which i cannot find and is not working ( thus creating the error sound ).
Any ideas how can i disable this shortcut so i will be able to type "i" on my console ( which apparently I use more than expected.. and noticed due to the errors! )
Thank you in advance.
Edit
Even pasting a word containing i will skip writting it ( tried to paste history got hstory + beep )
Ok got the solution on my own. Apparently including /etc/inputrc on my profile ( inside my .inputrc ) was creating the problem and its not ubuntu specific. Tested on subsystem and on actual debian installation and it does the same.! So just removed the include and it works
I cannot find an explanation for this phenomenon (same command gives an error and succeeds as well):
The only difference between the two lines is that
the first was pasted from a website but then edited manually to fit my custom path (the part between the "")
the second was typed manually entirely
I reproduced this each time: when running the pasted command I get an error, when I run the manually typed one, it succeeds.
I checked and triple checked for extra characters (empty trailing spaces). I also copied them in notepad++ and checked "show all characters" but nothing appeard. When I copy-pasted them back from notepad++, they both worked.
This thing also happens when trying to run a shortcut (which runs the command) created on the desktop (this is where it all started - the pasted command failed inexplicably).
Any idea?
Note: running on Windows7 x64 and the task scheduled is (as the name suggests) a disable of UAC for Visual Studio 2013 created as described here.
got it!! it's the " " - the pasted ones are not recognized (although in cmd they look the same as the typed ones). Apparently they are a different character (?)
I tryied copying from the website directly into notepad++ and they don't look the same:
In Windows Explorer I can navigate to "\\servername\shared_directory". Is there any way I can navigate to the same directory using VIM and NERDTree?
Example:
:NERDTree \\servername\shared_drirectory
I think you might want to report this behavior to the NERDTree developer. I tried it myself and no, it does not work.
You could try pulling the current NERDTree from https://github.com/scrooloose/nerdtree or writing the developer.
I don't use NERDTree, but both :browse e \\servername\shared_directory and :e \\servername\shared_directory\filename.txt work fine for me in gvim.
Playing with this a bit more, I see that the forward-slash syntax seems to even work with tab-completion (after I get the server and initial directory right, of course).
If NERDTree doesn't want to work with either //servername/directory or \\servername\directory, you might want to try executing a :lcd //servername/directory first, followed by :NERDTree ..
This issue was fixed in this branch : https://github.com/actionshrimp/nerdtree .
Download nerdtree from https://github.com/actionshrimp/nerdtree/downloads