Archive for August, 2008

Getting vim to recognize a new file extension as an existing file type

Friday, August 29th, 2008

For global configuration, add this to /etc/vim/filetype.vim, for just you, add to ~/.vim/filetype.vim :

if exists("did_load_filetypes")
finish
endif
" add .ctp and .thml as recognized php file extensions (good for CakePHP)
augroup filetypedetect
au! BufNewFile,BufRead *.ctp,*.thml setf php
augroup END

In this example, I’m getting vim to recognize .ctp and .thtml […]

Global (all users) vim configuration, i.e. enabling autocomplete and syntax highlighting

Friday, August 29th, 2008

In Linux, the global vim configuration is generally in /etc/vim/. For instance, while you might want to configure some options for yourself in ~/.vimrc, global options that you wish to apply for all users go into /etc/vim/vimrc (no ‘dot’). Your vim installation directory, something like /usr/share/vim/vim70/ has folders autoload/, syntax/, and plugin/, but […]

A great blog: The Daily Vim

Wednesday, August 27th, 2008

Many of my readers (not that there are many) will enjoy The Daily Vim. Author Travis Whitton posts tidbits that most shell-dwellers will enjoy… even emacs users. The topics he covers are topics I’ve touched on: Linux/Ubuntu administration, shell programming, editing with vim, and general hacker tomfoolery. He posts very frequently; it’s […]

screen: no more losing my vim editing sessions when the ssh connection drops

Friday, August 22nd, 2008

screen is a utility that lets interactive shell and application processes persist between login sessions. It also lets you manage multiple sessions within a single login session and between login sessions. There’s a ‘windows’ analogy beggin to be made, but it wouldn’t be quite accurate or useful.
I’m a bit embarrassed, because I’ve known […]

delicious feature request: expiration date on links (submitted to delicious.com)

Friday, August 22nd, 2008

Like many users, I bookmark news articles using delicious. It would be nice if I could set them to expire after a certain period of time. You see, I use delicious for two purposes: to save links, and the share links. In some cases, the links I share don’t really need to […]

ssh and telnet on Windows Mobile 5 for SmartPhone (Motorola Q 9c) with zaTelnet

Thursday, August 7th, 2008

After trying unsuccessfully to install one or two other ssh clients on my Q, zaTelnet came through. It’s distributed on a shareware / evaluation model, but the registration cost of $20 was more than worth it. Kudos to them, too, for letting the unregistered version work very well so I could give it […]