Live data from Hacker News

A Good Vimrc (2014)

dougblack.io

1–10 of 56 posts

Re: A Good Vimrc (2014)

#3

Now just add the section about uploading it to your GitHub so all new servers get setup with a simple git clone, and any new changes can be propogated around with push/pull.

For anyone interested in this topic, [0] contains the best setup I've found for storing dotfiles in a git repo, then linking them with GNU Stow. Steps are just:

  git clone https://github.com/me/my-dotfile-repo
  cd my-dotfile-repo
  stow --target=$HOME zsh
  stow --target=$HOME vim
  ...
Elegant, cross-platform, easy to remember.

[0]: http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to...

Re: A Good Vimrc (2014)

#6

> Don't put any lines in your vimrc that you don't understand. Actually true for most human-configurable setting files.

I sort of disagree with this and think one should extend in the opposite direction- to keep sharp, have an RNN generate some plausible config options / shell commands, and append them to the bottom of your vimrc / bashrc on startup. This results in sort of like a 'chaos monkey' of coding, to prepare you for when real emergencies pop up.

Re: A Good Vimrc (2014)

#7
Good write up. Ive been looking into Now this might sound like heresy but I've been considering moving to emacs lately and using evil mode.

The thing that gets me is vim's lack for auto completion for stuff like scala. Has anyone managed to set that up?

Re: A Good Vimrc (2014)

#8

Now just add the section about uploading it to your GitHub so all new servers get setup with a simple git clone, and any new changes can be propogated around with push/pull.

I use the approach from https://news.ycombinator.com/item?id=11071754

I keep my dotfiles repo on a vps where I manage the repos with gitosis.

Re: A Good Vimrc (2014)

#9
post #3

Now just add the section about uploading it to your GitHub so all new servers get setup with a simple git clone, and any new changes can be propogated around with push/pull.

For anyone interested in this topic, [0] contains the best setup I've found for storing dotfiles in a git repo, then linking them with GNU Stow. Steps are just: git clone https://github.com/me/my-dotfile-repo cd my-dotfile-repo stow --target=$HOME zsh stow --target=$HOME vim ... Elegant, cross-platform, easy to remember. [0]: http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to...

I second this and highly recommend using stow for this. It takes all of 30 seconds to learn, took me maybe 10 minutes to round up my various dotfiles and move them into a central folder, and, combined with putting them in a VCS, has made life sooooo much easier.

Re: A Good Vimrc (2014)

#10
post #7

Good write up. Ive been looking into Now this might sound like heresy but I've been considering moving to emacs lately and using evil mode. The thing that gets me is vim's lack for auto completion for stuff like scala. Has anyone managed to set that up?

Have you checked out [ensime](http://ensime.org/)? Should solve the problem for you.
Post reply on HN