Live data from Hacker News

Intermediate Vim tips

kinbiko.com

1–10 of 79 posts

Re: Intermediate Vim tips

#3
I've done a similar thing with my whitespace, but prefer characters that I'm less likely to have typed myself (like a small arrow for tab).

  set listchars=tab:→\ ,nbsp:␣,trail:·

Re: Intermediate Vim tips

#4
I am so glad that I can live without these tips. As I grow older, every year I feel the need to cut down on my essentials. My .vimrc gets shorter every year. Earlier, I was so annoyed by the default parentheses highlighting yet so dislike the solutions of adding more lines to my .vimrc, I was forced to do some research and found out that all I need to do is to delete the plugin from /usr/share/.... I deleted the entire plugins folder there. I felt like Picaaso.

Re: Intermediate Vim tips

#6
> I don't like excessively long lines of code (120+ in most languages)

Quick straw poll on this... How many people like a line length limit?

My personal preference is a fairly strict 80 (barring silly things like URLs), but I've always been met with resistance to ANY line length limit. Is it really that imposing?

Re: Intermediate Vim tips

#7
I’m probably the minority here but I don’t like to customize my Vim too much. 1 - it takes time. 2 - half the reason I like Vim is because I can use it anywhere. If I’m so used to a highly customized setup, then I am going to feel out of place when I log on somewhere else.

Re: Intermediate Vim tips

#8

> I don't like excessively long lines of code (120+ in most languages) Quick straw poll on this... How many people like a line length limit? My personal preference is a fairly strict 80 (barring silly things like URLs), but I've always been met with resistance to ANY line length limit. Is it really that imposing?

I'm also at a fairly strict 80 (errm, 79 inclusive).

At work, I've managed to get a 99 column limit, with 79 columns for comments. But yeah, some people just don't like the limit. I like it because of monitor size/font size/distance from monitor/side-by-side editor windows. Autowrap doesn't cut it.

Re: Intermediate Vim tips

#9

I’m probably the minority here but I don’t like to customize my Vim too much. 1 - it takes time. 2 - half the reason I like Vim is because I can use it anywhere. If I’m so used to a highly customized setup, then I am going to feel out of place when I log on somewhere else.

Same. I spend most of my time in a terminal and SSH into various boxes daily. I do customize my standard Unix toolset, but avoid plugins and non-standard configs that increase cognitive burden. It's very liberating to feel comfortable with shitty defaults. If you feel at home with the defaults, you feel at home anywhere.

Re: Intermediate Vim tips

#10

> I don't like excessively long lines of code (120+ in most languages) Quick straw poll on this... How many people like a line length limit? My personal preference is a fairly strict 80 (barring silly things like URLs), but I've always been met with resistance to ANY line length limit. Is it really that imposing?

I render a column at 80 and rarely exceed it. Given that my font size is quite large, there's not much wasted space. A lot can happen in 80 chars though, especially in Clojure, so allowing 100, 120, or even more is asking for one-liners which are far too complex.
Post reply on HN