Code Monkey home page Code Monkey logo

Comments (5)

fisadev avatar fisadev commented on June 18, 2024

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.

ivanalejandro0 avatar ivanalejandro0 commented on June 18, 2024

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.

fisadev avatar fisadev commented on June 18, 2024

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.

ivanalejandro0 avatar ivanalejandro0 commented on June 18, 2024

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.

fisadev avatar fisadev commented on June 18, 2024

Oh, and added you on the thanks section :)

from fisa-vim-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.