For me the best solution has been google docs, for the following reasons:

1. Cloud based storage is necessary as when I learn about linux as I will accidentally make my system unbootable every once in a while when I'm learning

2. They have a working offline feature.