added grep command and mappings for cnext and cprevious