Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 1.8 KB

1_linux.rst

File metadata and controls

95 lines (63 loc) · 1.8 KB

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>

image

Fig 1

Now both files will show

image

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:

image

Fig 3

image

Fig 4

image

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....

Aspell Installation

brew install aspell
(yum/apt) install aspell

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

image

Fig 6