Configure gvim swap, undo, and backup files on windows [closed] - powershell

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I installed vim on windows 10 using chocolatey. When I edit a foo file in powershell, vim leaves behind .foo.un~ or .foo~ files. What are these and how do I stop vim from leaving them around?

These files are backup and undo files. vim also creates swap files if it crashes while editing.
From https://coderwall.com/p/sdhfug/vim-swap-backup-and-undo-files
In powershell, create the following directories:
~/.vim
~/.vim/.undo
~/.vim/.backup
~/.vim/.swp
Edit your .vimrc file by opening vim and typing:
:edit $MYVIMRC
Then, add the following lines, and save:
set undodir=~/.vim/.undo//
set backupdir=~/.vim/.backup//
set directory=~/.vim/.swp//
vim will now put your undo, backup, and swap files in the ~/.vim/.undo, ~/.vim/.backup, and ~/.vim/.swp directories, respectively.

Related

gvim 8.2 doesn't paste on windows 10 in powershell [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I installed vim on Windows 10 with chocolatey. Copy and Paste don't work when I invoke vim in powershell. I expect them to work as long as I'm in insert mode. How can I make copy and paste work?
https://n3wjack.net/2014/08/25/setting-up-vim-on-windows/ has the answers.
Open vim and type the following:
:edit $MYVIMRC
This will edit your .vimrc file wherever it might live. (On my system, it was in c:\Users\<my_username>\.vimrc, but you might have weird configuration issues, so just let vim find the file for you.
Then, copy+paste the following into the file:
source $VIMRUNTIME/mswin.vim
behave mswin
Then save the file.

Can't open json files in vscode directly form File Explorer? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Can't even open ps1 files in vscode from File Explorer. With both (json and ps1) I get a tone with no message that I can find. Everything opens fine if I open directly from the "open file" menu item in vscode. I don't think it was like this before installing PowerShell.
It sounds like a permission error or a bad installation of vscode.
I recommend you reinstall vscode & make sure to check all these 4 boxes in this image below, we will see how it goes after.

I have a problem with the cursor in visual studio code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have a problem probably totaly beginners level but anyway it drives me crazy so please help.
I can´t edit any code in the program when i try it looks like i´m in "insert" mode with like a block cursor.
I can´t delete anything or write anything. What could it be? and how do i fix it?
I am on a macbook pro.
I believe the reason is that you installed vim extension in vscode by mistake as it puts you in the insert mode by default until you press (i) to edit text. uninstall vim extension and things should go back to normal. or refer to this vim cheatsheet for more information about using vim as a text editor.

Permanently storing zsh aliases [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I created a new alias by typing:
~ alias gpo='git push origin'
I see my newly created alias when I type alias (which lists all the available aliases) but when I close my terminal and reopen it, they vanish.
How do I ensure that it is permanently available?
How do I keep a backup of all my aliases so I can carry them with me even if I move between computers?
You can keep it inside ~/.zshrc

Viewing Two (or Multiple folders) in MATLAB [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Is it possible to have two "Current Folder" windows open in MATLAB?
I have two folders a long way away from one another in the folder tree and need to keep files in the same place as the are referred to by other software.
I should add that I am in the process of importing specific files from each one and cannot do all of one folder at once.
Short answer: no. You need to use commands like cd to change from one folder to another for importing files, or add both folders to your MATLAB path using addpath. The latter has the advantage of referring to any file in these folders without having to specify in which folder they are located.