Friday, June 24, 2011

display all lines starting without a character

grep -vE ^' ' temp ==> display all lines in temp starting without a space.
grep -vE ^x temp ==> display all lines in temp, not starting with space

Friday, January 14, 2011

highlight chars more than 80 chars in vim

it would be useful sometime while formatting code, you might want to see the characters more than 80 chars wide in vim.

:match ErrorMsg '\%>80v.\+'


this will highlight the chars from 81st character in a line.