Linux

Some VIM features I used for this project

Shift + ^            { beginning of line }
Shift + G           { last line }
Shift + $           { end of line }
Shift + V           { block editor }
y                   { yank }
Shift + P           { paste }
dd                  { delete/cut }

To edit files in VIM with tabs use the command :tabedit <filename>

../_images/tabedit1.png

Fig 1

Now both files will show

../_images/tabedit2.png

Fig 2

To navigate between tabs use the keys

  • gt

  • gT

  • {n}gt where {n} is equal to the tab you want to go to (i.e. 2gt will take you to second tab)

Use :tabonly to close all tabs but the currently selected one

Go back in time to earlier versions

:earlier 2m

Examples:

../_images/time1.png

Fig 3

../_images/time2.png

Fig 4

../_images/time3.png

Fig 5

One other cool feature if you are using vim vs an IDE, setting up a .vimrc file to add line numbers

vim .vimrc

:set nu

Now, we have all this content (these modules built on RTD) and so many spelling errors everywhere….

We have some options in either VIM (slow process) or with aspell

How I did it:

for f in *.rst
do
    aspell check $f
done

Or as a one-liner:

for f in *.rst;do aspell check $f;done

Within VIM we add the directive :set spell spelllang=en_us and it will highlight words

../_images/vim_spell.png

Fig 6