When transitioning from a Windows-centric life to that of a Mac. There is a lot to get used to, and most of the differences are worth persevering with, when you get used to them, life is good. However, the fact that the HOME and END buttons move the cursor to the beginning and end of a document instead of the beginning and end of a line is WEIRD.
To fix that, navigate to:
Create a text file named DefaultKeyBinding.dict
and copy this into it:
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
Note, if the file already exists then add the relevant lines between the braces.