Comments for Jeet Sukumaran Sun, 12 Apr 2015 12:24:56 +0000 hourly 1 http://wordpress.org/?v=4.3.1 Comment on ‘mayansmoke’ Vim Color Scheme by azyr /mayansmoke/#comment-190656 Sun, 12 Apr 2015 12:24:56 +0000 /?p=358#comment-190656 That looks great! What settings are you using? There are some customization options and the defaults dont look like that at all…

]]>
Comment on From Acolyte to Adept: The Next Step After NOP-ing Arrow Keys in Vim by inside /from-acolyte-to-adept-the-next-step-after-nop-ing-arrow-keys/#comment-175892 Wed, 11 Mar 2015 11:05:44 +0000 /?p=447#comment-175892 This is what I’ve put in my ~/.vimrc based on your autocommands for handling numbering in window splits properly. And also because it’s shorter than the numbers.vim plugin.

By default, numbers and relativenumbers are on. Then, the autocommands only handle window leave and enter. You might want to add an on/off function for both numbers and relativenumbers.


set relativenumber
set number

augroup vimrc_linenumbering
autocmd!
autocmd WinLeave *
\ if &number |
\ set norelativenumber |
\ endif
autocmd WinEnter *
\ if &number |
\ set relativenumber |
\ endif
augroup END

]]>
Comment on From Acolyte to Adept: The Next Step After NOP-ing Arrow Keys in Vim by jeetsukumaran /from-acolyte-to-adept-the-next-step-after-nop-ing-arrow-keys/#comment-175660 Tue, 10 Mar 2015 23:29:01 +0000 /?p=447#comment-175660 Thanks! Fixed.

]]>
Comment on From Acolyte to Adept: The Next Step After NOP-ing Arrow Keys in Vim by sporkbox /from-acolyte-to-adept-the-next-step-after-nop-ing-arrow-keys/#comment-175659 Tue, 10 Mar 2015 23:23:16 +0000 /?p=447#comment-175659 Nice write-up. I wouldn’t use the customization personally, but some people really need to be forced to learn better ways like that.

Anyway, I just wanted to point out that your link to VanLaser should say /u/VanLaser. The URL itself is fine, but /r/ refers to subreddits while /u/ refers to users. :)

]]>
Comment on Vim: Making Those Arrow Keys Work for You (Or Why the Anti-Arrow-Key Propoganda is Wrong) by Vim: Insert Mode is Like the Passing Lane | Jeet Sukumaran /vim-making-those-arrow-keys-work-for-you-or-why-the-anti-arrow-key-propoganda-is-wrong/#comment-172438 Tue, 03 Mar 2015 23:08:14 +0000 /?p=30#comment-172438 […] snapshots from my own learning experiences here and […]

]]>
Comment on Vim: Making Those Arrow Keys Work for You (Or Why the Anti-Arrow-Key Propoganda is Wrong) by From Acolyte to Adept: The Next Step After NOP-ing Arrow Keys | Jeet Sukumaran /vim-making-those-arrow-keys-work-for-you-or-why-the-anti-arrow-key-propoganda-is-wrong/#comment-172100 Mon, 02 Mar 2015 18:08:14 +0000 /?p=30#comment-172100 […] We all know about no-op'ing arrow keys. […]

]]>
Comment on Using Python’s “timeit” Module to Benchmark Functions Directly (Instead of Passing in a String to be Executed) by Tommy Carstensen /using-pythons-timeit-module-to-benchmark-functions-directly-instead-of-passing-in-a-string-to-be-executed/#comment-166028 Sun, 01 Feb 2015 01:06:41 +0000 /?p=251#comment-166028 You forgot to show how to pass arguments…

]]>
Comment on Vim Regular Expression Special Characters: To Escape or Not To Escape by xfra35 /vim-regular-expression-special-characters-to-escape-or-not-to-escape/#comment-126842 Mon, 01 Dec 2014 17:46:40 +0000 /?p=215#comment-126842 Very useful! Especially the “very magic” mode ;)
Thanks you.

]]>
Comment on Vim: Making Those Arrow Keys Work for You (Or Why the Anti-Arrow-Key Propoganda is Wrong) by Alpheus /vim-making-those-arrow-keys-work-for-you-or-why-the-anti-arrow-key-propoganda-is-wrong/#comment-96233 Sat, 08 Nov 2014 22:11:26 +0000 /?p=30#comment-96233 I am coming back to Vim, after having used Kate (under KDE) for a while, and after working with Emacs after that, with a couple of stints in NetBeans and Eclipse. I was never what I would consider a Vim power user, but between the interesting things I’ve seen with Vim from a couple of presentations, and the fact that Vim hasn’t had a period of development stagnation like Emacs seems to have (I could be wrong about that, though), I’ve found myself drawn back to Vim.

All that is to provide background for myself. As a Dvorak keyboard layout user, the claim that HJKL is on home-row doesn’t resonate at all–indeed, H is the only key of those on home row! This post, however, has helped me understand that I need to come to terms with other ways to move.

Perhaps the best part of this journey, so far, is discovering that, with a couple of plugins, Vim can do what NetBeans can do, only better! And installing plugins isn’t so bad, either, when I consider that when I was somewhat required to use NetBeans at work, I had to install a handful of plugins for that, too, to get it up to speed. I’ve been in the process of creating a “dotfiles” repository; as I work on this, I can see that I’ll be able to do with Vim, what I was unable to do with NetBeans: set up an environment I like, then have it cloned an installed on another machine almost instantly…

]]>
Comment on Grokking the Zen of the Vim Wu-Wei by jeetsukumaran /grokking-the-zen-of-the-vim-wu-wei/#comment-51132 Fri, 19 Sep 2014 15:01:14 +0000 /?p=20#comment-51132 I *have* been considering going (back) to Emacs with Evil … I like the power of the ecosystem, and yes, it is a *great* ecosystem except for the text editor! :). But I have collected a lot of plugins and tweaks for Vim over time (many of them my own), so it will be a while before I find equivalents I like.

]]>
Comment on Grokking the Zen of the Vim Wu-Wei by Andi Hafner /grokking-the-zen-of-the-vim-wu-wei/#comment-51036 Fri, 19 Sep 2014 08:08:43 +0000 /?p=20#comment-51036 Hi Jeet.

Thanks for your interesting article which I found while googling for “zen of vim”. Editing with vim, I’m pleased again and again about the elgance and efficiency of “the vim language”.

But where vim is great in editing and navigation capabilities, emacs is great for its versatility. (“Emacs is a great operating system, if only it had a good text editor.” ;-) So why not combine the best of both of them by running emacs by an appropriate vim mode extension, perhaps like extensible vi layer for Emacs. This vim extension comes prebuilt in emacs24, so you probably already now of it. Nevertheless I think, a look at Emacs as My Leader – Vim Survival Guide, where this concept is discussed, is worth the effort.

Personally, I’m not familiar enough yet with the vim language to apply it to emacs as I don’t have sufficient experience with emacs too, but I thought the blog mentioned above could be interesting for you too, as you obviously are working with text editors a lot. So, I wish you happy hacking with which editor and mode ever…
Best regards, Andi
(You would be sorry about my “English”, as I’m a Swiss Citizen ;-)

]]>
Comment on Most Pythonique, Efficient, Compact, and Elegant Way to Do This by Veky /most-pythonique-efficient-compact-and-elegant-way-to-do-this/#comment-1473 Sat, 15 Mar 2014 23:19:49 +0000 /?p=195#comment-1473 List comprehensions are really poorly understood and undervalued. ;-P

[x for i in k for x in (‘-c’, i)]

]]>
Comment on YonderGit: Simplified Git Remote Repository Management by Stephen Benner /yondergit-simplified-git-remote-repository-management/#comment-1452 Sun, 02 Mar 2014 22:26:18 +0000 /?p=229#comment-1452 This is a neat script, and I like your blog! I thought I would share my personal technique for setting up a new git repo. I have become exceedingly fond of this mac utility ‘Dash’ by Kapeli, it’s an amazing documentation manager and does snippets as well, in the form of text-expansion.

I use the following ‘snippet’ in my shell each time I start a git repo (underscore-delineated identifiers are variables that Dash presents via overlay to be filled-in):

git init
git remote add origin git@github-personal:SteveBenner/__repository-name__.git
echo "# Repo and README created using an automated script, b*tch\!" >> README.md
cp -n ~/.gitignore_global .gitignore
git add -A
git commit -m "Initial commit for git repo stored on Github.com."
git push -u origin master

The ‘@github-personal’ in the git URL refers to an alias in my SSH config file, where I use custom host settings to remove the worry of managing SSH keys, URL protocols, SSH/git settings, all that jazz.

]]>
Comment on OS X Terminal Taking a Very Long Time to Start by jeetsukumaran /os-x-terminal-taking-a-very-long-time-to-start/#comment-1435 Fri, 17 Jan 2014 23:57:15 +0000 /?p=189#comment-1435 Yep! Fixed it now. Thanks for pointing it out.

]]>
Comment on OS X Terminal Taking a Very Long Time to Start by Jordan Eldredge /os-x-terminal-taking-a-very-long-time-to-start/#comment-1434 Fri, 17 Jan 2014 23:07:08 +0000 /?p=189#comment-1434 I’m guessing you mean “sudo rm -r /var/log/asl/*” in the last code example?

]]>
Comment on Dealing with ‘Argument list too long’ Problems by barry41 /dealing-with-argument-list-too-long-problems/#comment-1433 Mon, 13 Jan 2014 09:45:58 +0000 /?p=141#comment-1433 You can use Long Path Tool as well, it works good for such problems…

]]>
Comment on Neat Bash Trick: Open Last Command for Editing in the Default Editor and then Execute on Saving/Exiting by Steve Kalkwarf /neat-bash-trick-open-last-command-for-editing-in-the-default-editor-and-then-execute-on-savingexiting/#comment-395 Fri, 20 Dec 2013 17:21:25 +0000 /?p=197#comment-395 Set your $EDITOR to point at a shell script containing:


if [ -f "`which bbedit`" ]; then
bbedit --wait --resume "$@"
else
echo "ERROR: Can't find bbedit. Did you install the command line tools?"
fi

]]>