Quantcast
Channel: Disabling swap file creation in Vim - Stack Overflow
Browsing all 11 articles
Browse latest View live

Answer by Evan Hu for Disabling swap file creation in Vim

If you are using git, you can add *.swp to .gitignore.

View Article



Answer by zzapper for Disabling swap file creation in Vim

create no vim swap file just for a particular fileautocmd bufenter c:/aaa/Dropbox/TapNote/Todo.txt :set noswapfile

View Article

Answer by valk for Disabling swap file creation in Vim

For anyone trying to set this for Rails projects, addset directory=tmp,/tmpinto your~/.vimrcSo the .swp files will be in their natural location - the tmp directory (per project).

View Article

Answer by trusktr for Disabling swap file creation in Vim

Set the following variables in .vimrc or /etc/vimrc to make vim put swap, backup and undo files in a special location instead of the working directory of the file being edited:set...

View Article

Answer by Jez for Disabling swap file creation in Vim

I agree with those who question why vim needs all this 'disaster recovery' stuff when no other text editors bother with it. I don't want vim creating ANY extra files in the edited file's directory when...

View Article


Answer by monokrome for Disabling swap file creation in Vim

You can set backupdir and directory to null in order to completely disable your swap files, but it is generally recommended to simply put them in a centralized directory. Vim takes care of making sure...

View Article

Answer by markus_b for Disabling swap file creation in Vim

I found the answer here:vim -n <file>opens file without swapfile.In addition:set dir=/tmpin .vimrc creates the swapfiles in /tmp.

View Article

Answer by dwc for Disabling swap file creation in Vim

To disable swap files from within vim, type:set noswapfileTo disable swap files permanently, add the below to your ~/.vimrc fileset noswapfileFor more details see the Vim docs on swapfile

View Article


Answer by cpjolicoeur for Disabling swap file creation in Vim

here are my personal ~/.vimrc backup settings" backup to ~/.tmp set backup set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp set backupskip=/tmp/*,/private/tmp/* set...

View Article


Answer by Brian Rasmussen for Disabling swap file creation in Vim

If you put set directory="" in your exrc file, you will turn off the swap file. However, doing so will disable recovery.More info here.

View Article

Disabling swap file creation in Vim

Is there a way to disable the creation of .swp files in Vim? Or, at least create them in one place so that I can find and delete them easily?I find swap files especially annoying when I copy the parent...

View Article
Browsing all 11 articles
Browse latest View live


Latest Images