Comments (5)
nice!
Before adding it, are you sure the "directory" setting does not affect anything else? just the .swp files?
Because the name sounds too generic :)
from fisa-vim-config.
I think that the name is an unlucky choice. I had the same doubts in the past... But as far as I've used it, it seems to work as the documentation says:
List of directory names for the swap file, separated with commas.
from http://vimdoc.sourceforge.net/htmldoc/options.html#%27directory%27
I've made some changes in how I use and set dirs, you may be intrested on that
set directory=~/.vim/dirs/tmp " directory to place swap files in
set backup " make backup files
set backupdir=~/.vim/dirs/backups " where to put backup files
set undofile " persistent undos - undo after you re-open the file
set undodir=~/.vim/dirs/undos
set viminfo+=n~/.vim/dirs/viminfo
" Create needed directories if they don't exist
if !isdirectory(&backupdir)
call mkdir(&backupdir, "p")
endif
if !isdirectory(&directory)
call mkdir(&directory, "p")
endif
if !isdirectory(&undodir)
call mkdir(&undodir, "p")
endif
from https://github.com/ivanalejandro0/vim-configs/blob/master/dot.vimrc#L17 (Lines 17 to 33)
from fisa-vim-config.
Added in the develop branch. If everything goes well, will do a release in a few days. Thanks for the code! :)
from fisa-vim-config.
Glad to help, your work gave a lot of good tips when I was starting, so thanks to you too :).
An extra tip that may be helpful... In order to contain every possible vim-related thing inside my ~/.vim/
dir I've moved the yankring file too.
let g:yankring_history_dir = '~/.vim/dirs/'
from fisa-vim-config.
Oh, and added you on the thanks section :)
from fisa-vim-config.
Related Issues (20)
- pylint problem HOT 1
- WSL Support?
- [vim-hug-neovim-rpc] requires one of `:pythonx import [pynvim|neovim]` HOT 11
- flake8 is not working for VIM
- How do I change the theme? HOT 1
- the installation of the config.vim failed HOT 6
- The "Buffers" command not worked ? HOT 4
- Vim goes unresponsive after installation on macos 10.15.6
- Vim Config File not working in Ubuntu 20
- MatchTagAlways unavailable HOT 3
- Don't work colorscheme in new tab
- how to replace ctrl+p/n with TAB/shift-TAB HOT 1
- Repeat functionality with dot key not working
- E492 Not an editor command for multiline sed substitution
- Error on Mac HOT 1
- [deoplete] function deoplete#enable[9]...es[11]..neovim_rpc#serveraddr, line 18 HOT 3
- Problem with the python auto completation
- How to ignore some pylint warning? HOT 1
- pylint via shortcut not on write
- [deoplete] jedi module is not found You need to install it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fisa-vim-config.