Thursday Feb 05, 2009

Highlighting CDA comments in VIM

I spend the larger part of my day collating outputs from customer systems (be they crash dumps, LDOM outputs, messages, etc.) and adding notes where appropriate. For example I might dump a vnode structure in mdb and want to draw particular attention to a specific member of that structure

Most CDAs I've read through use !! or <-- to draw attention to notes, or distinguish notes from output. I've followed this pattern and find it very useful day to day... but this can be improved

As a (g)vim user I added the following to my .vimrc file:

highlight CDANote ctermbg=red
match CDANote /<--.\*$/
highlight CDANote2 ctermbg=red
2match CDANote2 /!!.\*$/

And an obligatory screenshot:

Almost certainly there are better ways to achieve the same, but for day-to-day use, this makes reading notes and comments a great deal easier

Wednesday Jul 04, 2007

Hello blogs.sun.com!

A little background information first...

I joined Sun in July 2006 as a student lab intern working for Paul Humphreys where I worked with four other students to provide hardware (and sometimes software) setups for Sun support engineers.

During this time I moved towards high-end hardware such as the E15/25k, Serengeti and Niagara-based systems. All the while I was doing my best to beef my knowledge of the Solaris kernel and userland and other assorted goodies (including the incredible Sun Ray). Solaris as a whole is the way I'd like to take things in the future, at least until I figure out what specifically interests me the most.

Two days ago I started as a full-time employee within the solutions centre where I will be working within the BT group as a support engineer.

And now...

Here I am, I have finally have the coveted blogs.sun.com blog and I plan to use this space to cover technical issues in some way related to Sun. Most entries will be basic, the odd one might be a little more advanced but overall I hope to provide some useful tips, tricks and info that might help somebody out when they're in a fix...

About

stuff I get up to :)

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today