You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zeus 39be807970 Update 'README.md' 2 years ago
LICENSE Initial commit 2 years ago
README.md Update 'README.md' 2 years ago

README.md

swarmlab-nvim

Fix "x509: certificate signed by unknown authority" issue

On Error:

Get https ://registry.vlabs.uniwa.gr:5080/v2/: x509: certificate

Pulling ...

ERROR: Get https://registry.vlabs.uniwa.gr:5080/v2/: x509: certificate signed by unknown authority

run

sudo su

touch set-ca.sh

copy-paste lines

registry_address=hub.swarmlab.io

registry_port=5443

mkdir -p /etc/docker/certs.d/$registry_address:$registry_port

openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/docker/certs.d/$registry_address:$registry_port/ca.crt

registry_port=5480

mkdir -p /etc/docker/certs.d/$registry_address:$registry_port

openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/docker/certs.d/$registry_address:$registry_port/ca.crt

exec file

sudo bash ./set-ca.sh

Clone repo

mkdir [dir4project]

cd [dir4project]

GIT_SSL_NO_VERIFY=true git clone https://git.swarmlab.io:3000/docs/docs/src/branch/master

docker run

cd [dir4project]

./swl-nvim.sh

Key map features

I try to avoid C- combinations for the things I do frequently, mapping things that make sense to the key.

The leader key provides a facility for creating customized shortcuts that can be further restricted to apply only in certain modes, such as normal, insert, visual, terminal (neovim-specific), etc.

The leader key is normally defined by the mapleader variable as .

Normal mode

Edit Action

  • \ls -> Remove all whitespace at the end of every line in the buffer
  • p -> Paste below
  • P -> Paste above

Select text with: CTRL-V -or- SHIT-V amd Arrows

AND

esc Y to Copy

use: Clipboard/Register Manager to paste

=== View Action

[cols="1,2",grid=none, frame=none] |=== | \n | Toggle line numbers | \w | Toggle wrap |===

=== Copy2System Buffer

    1. Select text:
      ** CTRL + V -OR- SHIFT + V ** and use Arrows to select
    1. CTRL + C Copy
    1. SHIFT + INS Paste

=== Clipboard/Register Manager

[cols="1,2",grid=none, frame=none] |=== | \r | Open Register Menou | Esc | Close Register Menou | p | Paste below | CTRL-p | Paste above |===

=== Menou / File explorer

[cols="1,2",grid=none, frame=none] |=== | Space | Toggle NERD Tree, a file tree explorer. | \h | Toggle distraction free mode (hide/show both nerdtree and tagbar) | \tb | Toggle tagbar |===

=== Open File with explorer

[cols="1,2",grid=none, frame=none] |=== | Space | Toggle NERD Tree, a file tree explorer. | s | open file in new Buffer (vertical split) | i | open file in new Buffer (horizontal split) | ENTER | open file in current Buffer | SHIFT + R | reload explorer view |===

=== Buffers / Split

[cols="1,2",grid=none, frame=none] |=== | | | \bv | Create a new (empty) buffer to the right of a vertical split | \bv | Create a new (empty) buffer to the right of a vertical split | \bh | Create a new (empty) buffer below a horizontal split | \bk | Kill current buffer (don't prompt to save changes) | \bl | List buffers | \bg | List and select buffer by # | ALT - [Left arrow] | Go to buffer to the left | ALT - [Down arrow] | Go to buffer below | ALT - [Up arrow] | Go to buffer above | ALT - [Right arrow] | Go to buffer to the right |===

=== Resize Buffers / Split

Try:

  • CTRL + [LEFT SHIFT] + [Left arrow]
  • CTRL + [LEFT SHIFT] + [Down arrow]
  • CTRL + [LEFT SHIFT] + [Up arrow]
  • CTRL + [LEFT SHIFT] + [Right arrow]

=== Terminal

[cols="1,2",grid=none, frame=none] |=== | \tt | Open a full screen terminal | \tv | Open a terminal in a new split to the right | \th | Open a terminal in a new split below |===

=== Tabs

[cols="1,2",grid=none, frame=none] |=== | create tab | esc :tabnew | SHIFT | Go to Tab to the right | SHIFT - TAB | Go to Tab to the left |===

=== Theme

  • \c Toggle between light and dark backround modes (for supported themes)

== Insert mode

=== Greek/Latin letters

  • Greek characters
  • Latin characters

=== Spell check

  • ctrl-x s