Hacker News new | past | comments | ask | show | jobs | submit login

A HUGE advantage for vim is that you can login to any server, new or legacy, and it will have vim. At least it will have vi.



Guess it would depend a lot on the dev, but it seems like NeoVim would make sense for one's personal computer, and then Vi/m whenever logged on to a remote server.

I'm a vim neophyte, but it's not like your .vimrc follows you along to those remote servers anyways so things would be different anyways working on a server?


> but it's not like your .vimrc follows you along to those remote servers

It could follow you. In the recent discussion of TMUX some people said that they have remote systems configured in such a way that the personal config files are automatically downloaded when they login as their dedicated user. All you need to do is to put your dotfiles put your dotfiles on S3 (IIRC), download happens on first login (again, IIRC).

In other words, "your config doesn't follow you" is more of a philosophical problem rather than a technical one. Personally, I think it's a bit silly.

I mean, you wouldn't normally think of running Nginx, Supervisord, Redis, Postgres, etc. without config files, so why do you (people who are against personal configs on servers) insist that we use Vim, Emacs, Git, Tmux, etc. without one? Using Vim (less so than Emacs, but still) without your .vimrc is like using Nginx with default nginx.conf. You can still serve static files if you can find your htdocs dir after all.

A sane global (system-wide) config for the tools would solve some issues, but that's a first step towards personal customization (which, as mentioned, is unacceptable for some people), so in practice we're mostly stuck with nearly unusable tools when we work on remote servers...

Ok, I feel a bit better now, sorry for ranting :)


> but it's not like your .vimrc follows you along to those remote servers anyways so things would be different anyways working on a server?

That's why I don't really customize vim at all, or make fancy macros, or any of that. I work on a half-dozen different machines and OSes every week, I can't be bothered to customize those environments just to lose them every time I re-format.


You could just make config downloads automatic on all your servers, see my comment below.

Doing this - not using customizations - means you're forfeiting 70%-90% of functionality and power of those tools. I don't think it's smart, but well, it is your choice.


Can you describe what you like to customize? I find I spend far more time thinking about code than writing code.


> Can you describe what you like to customize?

With pleasure, actually! Just today I thought about writing a blog post on this topic and seeing your request made me resolve to do it.

I'll post a comment here once I'm done, thanks for waiting ;-)


Sounds cool :)


You can have a simple fabric script to copy .vimrc (and .alias, .bash_profile, etc) copied to a new server. You don't need sudo for any of this.


Doesn't have to be fabric, just a shell script with scp. If you can ssh to a server you can copy dot-configs to your $home dir.


my vimrc (and all my dotfiles) are kept in my private github so, with a single git command, they travel right to me... :)


This is so nice and so much easier than it seems. And there's no need for a private repo; unless you're ashamed of your dotfiles, you could keep them in a public repo.


They are in a private-ish... its my company's internal... because i do share it with coworkers, but it does setup a lot of environment variables specific to our products, so its not fit for general public consumption :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: