Daily Vim Devotional

Apr 22

Bash $PS1 Generator -

Use this to generate custom Bash prompts.

Apr 19

"put a burger in your shell", or any emoji, for that matter

Apr 18

giant robots smashing into other giant robots: Vim Splits - Move Faster and More Naturally -

thoughtbot:

Most of us are Vim users and have tweaked our favorite editor for speed and convenience. See thoughtbot’s dotfiles.

One of my favorite tools is the window split. Here is a quick splits overview and configurations to use them more effectively.

7_10_split

The basics

Create a vertical split using ...

Apr 17

evyna asked: Neat wittle plugin I made --> github -> jaxbot -> brolink

Thanks for sharing! That’s really cool.

Hey everybody check it out:

https://github.com/jaxbot/brolink.vim

Apr 16

Window Resizing

On a few recent articles people have commented about window resizing (unfortunately all my comments got lost because I moved some disqus things around, and, just don’t worry about it, OK?)

Ones like CTRL-W = (to set windows to all equal height), zN<CR> (press z in normal mode, a number, then enter to set the window to that height), and many more. Take control of your windows today!

:help window-resize

Apr 12

vim-tbone

Again from Tim Pope (I did say he was indefatigable), vim-tbone lets you interact with tmux from vim, with handy commands like :Twrite.

https://github.com/tpope/vim-tbone

(Source: twitter.com)

Apr 11

vim-dispatch

Another one from the indefatigable Tim Pope, vim-dispatch lets you run tests or compile asynchronously. Looks like it might take a little configuration to work for your own particular application, but once you do it looks like it could be super useful.

The video by itself makes is all worth it:

Introducing dispatch.vim from Tim Pope on Vimeo.

https://github.com/tpope/vim-dispatch

(Source: twitter.com)

Apr 09

gqgq

Yesterday’s reblog talked about using gq in visual mode to wrap a line to less than 80 characters. gqgq in normal mode will do this to a single line (or multiple lines with a count.)

:help gqgq

(Source: twitter.com)

Apr 08

Wrap existing text at 80 characters in vim

thoughtbot:

You have an existing block of text or code in vim. You want to re-format it to wrap to 80-characters.

:set textwidth=80

You might want this setting to apply automatically within certain file types like Markdown:

au BufRead,BufNewFile *.md setlocal textwidth=80

We have that setting in thoughtbot/dotfiles.

Select the lines of text you want to re-format:

v

Reformat it:

gq

Learn more:

:h gq

Apr 04

eighties.vim

This plugin will automatically resize your window to 80 (or however many you specify) columns when it’s active.

https://github.com/justincampbell/vim-eighties

(Source: twitter.com)