Some handy Unix utilities I just learned about. With ts you can timestamp output. parallel lets you run multiple jobs. pee lets you have a command named “pee.”
apt-get install moreutils or brew install moreutils
Some handy Unix utilities I just learned about. With ts you can timestamp output. parallel lets you run multiple jobs. pee lets you have a command named “pee.”
apt-get install moreutils or brew install moreutils
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.
The basics
Create a vertical split using
...
Thanks for sharing! That’s really cool.
Hey everybody check it out:
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
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)
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)
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)
You have an existing block of text or code in vim. You want to re-format it to wrap to 80-characters.
:set textwidth=80You might want this setting to apply automatically within certain file types like Markdown:
au BufRead,BufNewFile *.md setlocal textwidth=80We have that setting in thoughtbot/dotfiles.
Select the lines of text you want to re-format:
vReformat it:
gqLearn more:
:h gq