I just had the unfortunate experience of using the standard vimrc on ubuntu (which I loathe, but it's the most stable OS on this VPS), and now I sympathize with people who think they can't use Vim. So here's my much less annoying vimrc. You'll want to make a ~/tmp folder if you don't have one. Adjust the augroups for the languages you use; I was forcing some syntax files to load because they had bad defaults like PHP as HTML, no idea if that's improved.
" Mark Damon Hughes vimrc file.
" To use it, copy it to ~/.vimrc
set nocompatible " Use Vim defaults (much better!)
filetype plugin on
set nomore wrapscan noignorecase nohlsearch noshowmatch
"set smarttab expandtab shiftwidth=4
set nosmarttab noexpandtab shiftwidth=8 tabstop=8
set encoding=utf-8 fileencoding=utf-8
set backup backupdir=~/tmp dir=~/tmp
set tw=80 " I use this default, and override it in the autogroups below
" ctrl-] is used by telnet/ssh, so tags are unusable; I use Ctrl-J instead.
map <C-J> <C-]>
" Don't use Ex mode, use Q for formatting
map Q gq
map <Tab> >>
vmap <Tab> >
map <S-Tab> <<
vmap <S-Tab> <
" Always have syntax highlighting on
hi Identifier guifg=blue
hi Statement term=bold guifg=blue
autocmd BufRead,BufNewFile *.c set ai tw=0
autocmd BufRead,BufNewFile *.html set tw=0 ai
autocmd BufRead,BufNewFile *.html source $VIMRUNTIME/syntax/html.vim
autocmd BufRead,BufNewFile *.java set tw=0 ai
autocmd BufRead,BufNewFile *.m,*.h set ai tw=0
autocmd BufRead,BufNewFile *.php,*.inc set tw=0 ai et
autocmd BufRead,BufNewFile *.php,*.inc source $VIMRUNTIME/syntax/php.vim
autocmd BufRead,BufNewFile *.py set ai tw=0
"Finally, it is a pleasure to acknowledge our debt to the Unix operating system, developed at Bell Labs by Ken Thompson and Dennis Ritchie. We wrote the text, tested the programs, and typeset the manuscript, all within Unix. Many of the tools we describe are based on Unix models. Most important, the ideas and philosophy are based on our experience as Unix users. Of all the operating systems we have used, Unix is the only one that has been a positive help in getting a job done instead of an obstacle to be overcome. The world-wide acceptance of Unix indicates that we are not the only ones who feel this way."
— "Software Tools in Pascal", 1981, by Brian W. Kernighan, P.J. Plauger
As every neckbearded n-gate reader will now rush to well-actually at me, BWK's experience writing this book led to Why Pascal Is Not My Favorite Programming Language, but note this rant is about "standard" ANSI Pascal, not the somewhat improved P-Code Pascal of the '70s or the free-wheeling super-powered Turbo Pascal of the early '80s, and nothing like modern FreePascal. Standard Pascal was a deliberately simplified pedagogical language, not a systems programming language, which the later ones are.
Anyway, the book's interesting as a problem-solving exercise, but the Unix part amused me. And no, Linux is Not Unix. Buy a Mac or install BSD if you want UNIX®.
Well, I got nerd-sniped by hacker news: Simple note taking from the command line, since lately I've been dumping text in Apple Notes which isn't really suitable for everything.
Kindly email me bugs, not pull requests.
For those unaware, Oracle laid off ~ all Solaris tech staff yesterday in a classic silent EOL of the product.
Solaris was a better server and development platform than anything else (OK, after HPUX and SunOS reached EOL), but getting management to spend money up front was always a massive battle. SUN did themselves no favors by going back and forth with SPARC and x86, and getting a freebie OpenSolaris running was a challenge.
But now the world runs servers on piece of shit free-as-in-freebase-heroin Linux, paying fedora-wearing dipshits at DeadRat for "support" consisting of "no, you go fuck yourself".
This future has been brought to you by lawyers and the lowest bidder.
I'm too bummed out to make a playlist for today, so here's a couple of Apple's: