vim how to change text from cursor to the end of the line code example Example: vim replace under cursor Just use * and then: :%s//new value/