Comments on: How to train your dragon. And by dragon I mean vim. And by train I mean configure. http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/ I will not fix your computer. Tue, 04 Aug 2020 22:34:33 +0000 hourly 1 https://wordpress.org/?v=4.7.26 By: Nikita Moshensky http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-23311 Thu, 27 Sep 2012 20:53:27 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-23311

Thank you for this post :)

Reply  |  Quote
]]>
By: k00pa http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21875 Fri, 30 Mar 2012 17:11:16 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21875

Nice post!

Cursorline/cursorcolumn are now in my .vimrc with couple of remaps, example jj to escape.

Reply  |  Quote
]]>
By: astine http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21863 Tue, 27 Mar 2012 18:23:57 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21863

I like the symlink trick with config files. Unbelievably, I had not thought to do that until now.

I don’t like remapping commonly used keys through because then I build a muscle memory which isn’t transferable to other machines which don’t have my settings.

Reply  |  Quote
]]>
By: Luke Maciak http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21862 Tue, 27 Mar 2012 15:51:29 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21862

@ Alex Reinisch:

Ok, try the following:

which ctags

For me, it lists two locations:

/usr/bin/ctags is the Mac version
/usr/local/bin/ctags is the Homewbrew version

Try running it from the second location:

/usr/local/bin/ctags -R

If that works, then alias that to ctags. :)

Reply  |  Quote
]]>
By: Alex Reinisch http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21861 Tue, 27 Mar 2012 15:21:13 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21861

@ Luke Maciak: Sorry, but the princess is in another castle. Is it possible you have an old ctags? Is it possible the alias isn’t right? Should I just try harder? Knowing that I’m at least 67% less awesome than I could be is a real strain on my life.

Reply  |  Quote
]]>
By: Ben Chapman http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21860 Tue, 27 Mar 2012 13:52:42 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21860

Great tips! Thanks for sharing. I’ve been using vim (poorly) for a long time – lots of good information here, as well as the tips to install the Solarized color scheme; it’s a nice change from my old favorite ir_black.

Reply  |  Quote
]]>
By: Arhuman http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21858 Tue, 27 Mar 2012 12:51:32 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21858

Thank you so much.

I only realize now (and I’ve been using vi(m) since 1995) how much I missed your fantastic ‘jj tip‘.

Now I can’ throw away my capslock reconfiguration, you gave me THE solution.

Reply  |  Quote
]]>
By: StDoodle http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21856 Tue, 27 Mar 2012 03:32:07 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21856

First I was all, pshaaaw, I do mostly AutoCAD so I wouldn’t be able to give up a mouse most of the time anyway, so why bother learning a new text editor… then you showed the auto-close feature… damnit. :P

I guess I have something to do next time I’m bored.

Reply  |  Quote
]]>
By: Luke Maciak http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21855 Tue, 27 Mar 2012 03:10:12 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21855

@ Alex Reinisch:

You need to either completely close and reopen Terminal app (like Command+Q close) or run this to reload your profile:

source ~/.profile

Bash won’t know about the stuff you just added to .profile unless one of these things happens. :)

Reply  |  Quote
]]>
By: Alex Reinisch http://www.terminally-incoherent.com/blog/2012/03/26/how-to-configure-vim/#comment-21854 Tue, 27 Mar 2012 00:50:04 +0000 http://www.terminally-incoherent.com/blog/?p=11612#comment-21854

Thanks! Makes sense and it worked—double win. Time to clone ALL THE REPOS!!!
// ctags isn’t working for me.. in a weird way. I’m on mac, so I downloaded through homebrew, and added your offered alias in my ~/.profile. When I run the command in vim, it cries “illegal option!”:
:!ctags -R
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...

Did you post a typo? Or did I somehow get a bad ctags or what? Thoughts?

Reply  |  Quote
]]>