vim filename.txt
//press i to enter insert mode
//press esc to exit insert mode
type :wq then enter to leave vim
C:> notepad somefile.txt
1. nano filepath.extension
2. vim filepath.extesion
2.a press i //for edit mode
2.b Enter Esc
2.c :wq // write this at the end of file to save the edited part
2.d :q! // without save and quite