E:348 no string under cursor error comes in vi editor in cygwin

when i open a file to edit and type i to insert and the type # for #!/bin/bash
in vi and vim editor the message come that no string under cursor plz somebody help