Hi, WARNING ! VAST DANGER ! NEWBIE QUESTION AHEAD ! :)
I got stuck! I read several times user_40.txt and user_41.txt but can't figure out, why my very very basic script simply does nothing. It is a very very verbose implemention of the NOOP-command, I fear. It even does not display an error... It consists of foru lines: :normal gg :normal %s/^[ ]*//g :normal gg :normal %s/[ ]*$//g Other versions I tried were: :normal gg :normal %s/^[ ]*//g<CR> :normal gg :normal %s/[ ]*$//g<CR> and :normal gg :normal :%s/^[ ]*//g<CR> :normal gg :normal :%s/[ ]*$//g<CR> (Intention is to strip off all leading and trailing white space from a file. It is an experiment, so I choose this basic task. May be there is one command to achieve this, but as said...I used this as an exercise. I put that into a file, change to a buffer with an text, which has superflous space in it and did a :so <file.vim>. The screen flickers -- no result other than this. I did a :so! <file.vim> with the same result. I yanked the script and did a :@" -- same result. What did I so badly wrong here ? THANK YOU very much for any helpful reply in advance! mcc