I used to have a .vimrc earlier. However, over time, I lost it and forgot most of my settings. I am building one. Nothing special. But, the stuff that will make me more productive while coding using vim…
Below is my current .vimrc. I will keep adding to it as and when I modify the .vimrc that I use.
se ts=4
se sw=4
au BufNewFile,BufRead *.c se cindent
function Toggle_hls()
:if ( &hlsearch == 1)
: se nohls
:else
: se hls
:endif
endfunction
map <F2> :call Toggle_hls() <CR>