Git Product home page Git Product logo

Comments (5)

ajeeb-kp-keleno avatar ajeeb-kp-keleno commented on July 27, 2024 2

I was thinking about having multiple vimrcs before. I was thinking about creating symlinks and keeping folders like you have done with swim project. But, I hadn't enough time to keep and build it as a good script. But, suddenly, I remembered about your project, and tried it. It just worked.

  1. ~/.vim (ie. .vim folder in your user-home-folder) is the folder where files are written related to ~/.vimrc. ie. Pluggins, syntax highlighting etc. goes to this folder as far I can tell. I have used it vim in both Windows and Linux. Both follow this pattern. Perhaps, you just use plain vim (with out pluggins) !!? [I don't know, I'm taking a wild guess]

  2. a) I have suggested few commands to make the installation working. It's just after that statement. It starts with this statement Below steps, are what I followed.
    b) Anyway, the problem was, it was not detecting swim binary, during installation and after installation. By the way, I was able to figure out the path issue with your Readme alone. That's good thing. I really happy about it. Congrats. I managed to fix the path via some methods I mentioned in the blog.

I use Debian Linux. Debian 11 (ie.Testing Release, it's very recent one with almost all latest piece of software, I ever wanted).

from swim.

dawsbot avatar dawsbot commented on July 27, 2024 1

βœ…Yes, this does! I've had my personal computer running with neovim and swim for years πŸ™Œ

Neovim supports the .vimrc format, but nvim keeps the configuration file in a different place.

The Nvim config file is named "init.vim", located at:
Unix ~/.config/nvim/init.vim
Windows ~/AppData/Local/nvim/init.vim


What works with swim is to have your ~/.vimrc file and symlink ~/.config/nvim/init.vim to point to ~/.vimrc. I've done this on my personal computer with the following:

⚠️ Backup what's in $HOME/.config/nvim/init.vim before running this ⚠️

 # WARNING: make sure you back this up first
rm -rf "$HOME/.config/nvim/init.vim"
ln -s "$DIR/vimrc" "$HOME/.config/nvim/init.vim"

from swim.

ajeeb-kp-keleno avatar ajeeb-kp-keleno commented on July 27, 2024

I have a small question. Only symlink-ing ~/.config/nvim/init.vim needed ? What about ~/.vim directory ?

By the way, I appreciate your work. I really likes it.
Also, I have written a blog post about swim here.
https://dev.to/ajeebkp23/swim-switch-between-multiple-vimrcs-2g69
Your feedback about my blog is also welcome πŸ‘

from swim.

dawsbot avatar dawsbot commented on July 27, 2024

Wow, incredible! Nobody has done a blog post on this before, I really appreciate that. Here's my questions along with feedback:

  1. I'm not sure what ~/.vim does. I don't have one in my computer and a quick google search didn't help me learn this. What's that directory used for?

  2. In the blog post you say "Unfortunately, it didn't work well for me." can you inform me what went wrong here? Showing people how quick a good installation is will be important for your blog post to be popular

from swim.

dawsbot avatar dawsbot commented on July 27, 2024

I don't understand if there are any questions remaining here @ajeeb-kp-keleno . Thank you for the blog post again πŸ™Œ

from swim.

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.