write and quit shortcuts, trailing spaces and search in files