When you’re in insert mode, typing CTRL-A will type the the text you typed the last time you were in insert mode.
:help i_CTRL-A
(Source: robots.thoughtbot.com)
When you’re in insert mode, typing CTRL-A will type the the text you typed the last time you were in insert mode.
:help i_CTRL-A
(Source: robots.thoughtbot.com)
This method has a magic number:
def wait_time @env[QUEUE_WAIT_HEADER].to_i / 1000 endLet’s extract that to an intention-revealing name. We’ll type:
/1000<Enter> # Find the number we want to extract cwmilliseconds_per_second<Esc> # Replace the number with a variable name O<Ctrl+A> =...
quick-vim is a set of Vim config files and scripts for setting up a quick, portable environment in the shell. Not intended to be fancy, or for GUIs or any of that, just a simple setup.
I’ve evolved my own hacked setup over the years, but quick-vim might be a good starting or starting-over point if you’re looking for a way to organize your configuration and plugins.
https://github.com/brianleroux/quick-vim
(Source: twitter.com)
Here’s a game to help you learn Vim. It’s no NetHack but it’s a fun way for beginners to get accustomed to moving around and learn the basic.
This book from the Pragmatic Programmers is now in beta. I haven’t read it or signed up but it’s published by these guys and written by the guy who does Vimcasts so I’m betting it will be good.
When in NERDTree, press m (for, um, move-and-stuff (ok I guess it’s menu)), to create, move, and delete files and directories.
:help NERDTreeMenu
(Source: stackoverflow.com)
If for some reason you wanted to see a visualization of how different commands transition between different modes in Vim, or if you wanted to make your colleagues think you didn’t flunk out of electrical engineering college, print out this diagram.
http://stevelosh.com/media/extra/vim.svg
(Source: twitter.com)
A while back we talked about :g. :g! does the inverse, so if you want to delete all the lines in the file that don’t match POST /toasties, do :%g!/POST \/toasties/d.
help :g
Vim University is a new site with a collection of screencasts and other educational material for learning Vim. I’m going to check them out and maybe write about what I learn here. You should check it out too.
(Source: twitter.com)
This was announced yesterday. I don’t have an iOS device so I haven’t tried it. I’ve played Nethack in a car on an iPhone over SSH over telnet. That’s the closest I’ve come and it didn’t turn out great.
This might have a better experience. If you’re using it by all means post your thoughts in the comments.
http://applidium.com/en/applications/vim/
(Source: twitter.com)