Here's a patch for :pwd that echoes the pwd with the attributes specified by the Directory highlighting group.
What do you people think about this? Is it necessary, nice, silly, stupid, unnecessary? I think that it makes sense, seeing as how it prints a /directory/. Bram thinks it is a bit overkill, as :pwd is usually used by itself so that you don't need the highlighting. He also thought some people may find it undesirable. So please, send in your coments about this one. (I guess to go a bit overboard, but make it work for everyone, we could add another highlighting group :-) Thanks. nikolai Index: ex_docmd.c =================================================================== --- ex_docmd.c (revision 51) +++ ex_docmd.c (working copy) @@ -7825,12 +7825,15 @@ ex_pwd(eap) exarg_T *eap; { + int dir_id; + if (mch_dirname(NameBuff, MAXPATHL) == OK) { #ifdef BACKSLASH_IN_FILENAME slash_adjust(NameBuff); #endif - msg(NameBuff); + dir_id = syn_name2id("Directory"); + msg_attr(NameBuff, (dir_id == 0) ? 0 : syn_id2attr(dir_id)); } else EMSG(_("E187: Unknown"));