Target Display:

My Latex Code:
% xxxxxxxxxxxxxxxxxxxxxxxxx Code Snippet STARTS xxxxxxxxxxxxxxxxxxxxxx
\lstset{
language=C, % choose the language of the code
stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
% numbersep=5pt, % how far the line-numbers are from the code
% backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
showspaces=false, % show spaces adding particular underscores
showstringspaces=false, % underline spaces within strings
showtabs=false, % show tabs within strings adding particular underscores
tabsize=4, % sets default tabsize to 2 spaces
captionpos=t, % sets the caption-position to top
breaklines=true, % sets automatic line breaking
breakatwhitespace=true, % sets if automatic breaks should only happen at whitespace
% title=\lstname, % show the filename of files included with \lstinputlisting;
identifierstyle=\color{black},
caption={Array of Pointers to Strings},
frame=lrtb,
%keywordstyle=\bfseries\color{OliveGreen}, % keyword style
keywordstyle=[1]\bfseries\color{OliveGreen},
% Define TYPE-1 Keywords
keywords=[1]{
int, char,float, double, unsigned, signed,
goto},
% Define TYPE-2 Keywords
keywordstyle=[2]\bfseries\color{Violet},
keywords=[2]{
%s, %d,
include, define},
% Define TYPE-3 Keywords
keywordstyle=[3]\bfseries\color{Sepia},
keywords=[3]{
return},
commentstyle=\bfseries\color{blue}, % comment style
stringstyle= \color{Magenta!80}, % string literal style
belowcaptionskip = 0.2in, % Space below caption
abovecaptionskip = 0.2in % Space above caption
}
\begin{lstlisting}
#include <stdio.h>
#define SIZE 4
int main()
{
char *strings[SIZE] =
{
"String1",
"String2",
"String3",
"String4"
};
char *ptr_swap; /* A temporary pointer to swap strings */
/* Swap "String2" with "String3" */
ptr_swap = strings [1];
strings [1] = strings [2];
strings [2] = ptr_swap;
printf ("%s %s %s %s", strings[0], strings[1], strings[2], strings[3]);
return 0;
}
\end{lstlisting}
% xxxxxxxxxxxxxxxxxxxxxxxxx Code Snippet ENDS xxxxxxxxxxxxxxxxxxxxxxxx
My Output is as follows:
The fields marked under Red Line have Different Formatting from the Target.

Please help me correct these settings so that I can get the desired 'gvim' like output.
How can I specify keywordstyle for Format Specifiers since, putting: %s, %d -> make the statement commented?
Thanks.

