Question: Vim shows ^M on every line ending. How do I replace this with a normal line break in a file opened in Vim? Best Answer: Command Where <Ctrl-V><Ctrl-M> means type Ctrl+V then Ctrl+M. Explanation substitute, % = all lines ...

Question: I keep getting the ^M character in my .vimrc and it breaks my configuration. Best Answer: Unix uses 0xA for a newline character. Windows uses a combination of two characters: 0xD 0xA. 0xD is the carriage return character. ^M ...

Question: I’m learning through this tutorial to learn bash scripts to automate a few tasks for me. I’m connecting to a server using putty. The script, located in .../Documents/LOG, is: And I executed the following for read/write/execute permissions Then, when ...

Question: What’s the difference between \n (newline) and \r (carriage return)? In particular, are there any practical differences between \n and \r? Are there places where one should be used instead of the other? Best Answer: In terms of ascii ...