From 6b5999ede6beb390c948f48abd21b24aa3bd33f8 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 24 Aug 2023 12:28:43 +0200 Subject: [PATCH 1/5] joplin vimrc --- joplin.vimrc | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 joplin.vimrc diff --git a/joplin.vimrc b/joplin.vimrc new file mode 100644 index 0000000..fbe3139 --- /dev/null +++ b/joplin.vimrc @@ -0,0 +1,75 @@ + +" A .vimrc-like file. At present, very little is supported. +" You can use the commands: +" inoremap +" vnoremap +" nnoremap +" imap +" nmap +" vmap +" unmap +" Because commands are passed directly to CodeMirror's ViM API, +" insert-mode mappings seem to be unable to insert text. + +" HOTKEYS ------------------------------------------------------------------------------------------ +" add lines with double o +nnoremap oo o +nnoremap OO O + +" H and L for end and beginning +nmap H ^ +nmap L $ +vmap H ^ +vmap L $ + +" useful functions for arrow keys +" (and force the user to use `hjkl`) + +" right/left to add/remove a tab in the beginning of the line. +nmap << +nmap >> +" same for visual mode (plus reselecting stuff for visual mode) +vmap >gv + +" up and down move lines up and down +nmap :m -2 +nmap :m +1 +" same for visual mode (plus reselecting stuff for visual mode) +vmap :m -2 +vmap :m +1 + +" resize windows +nnoremap :vertical resize -1 +nnoremap :vertical resize +1 +nnoremap :resize -1 +nnoremap :resize +1 + +nnoremap +map h :noh + +" copy to system clipboard when space is used. (note, install gvim for this) +vnoremap y "+y +nnoremap Y "+Y +nnoremap y "+y +nnoremap yy "+yy + +" don't write the pasted upon stuff in visual mode into the register +vnoremap p pgvy + +map " :vsplit + +map % :split + +nnoremap j :join +nnoremap J :move .-2 :join + +nnoremap s i +nnoremap S i V:m -2 + +nmap kzz +nmap jzz + +nmap # ` +vmap # ` + -- 2.40.1 From b50756977e8c304970de66f4cd2b234954f53890 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 24 Aug 2023 12:28:55 +0200 Subject: [PATCH 2/5] no line numbers for vim terminals --- home/.config/nvim/common.vim | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/home/.config/nvim/common.vim b/home/.config/nvim/common.vim index c0134a0..2e0444a 100644 --- a/home/.config/nvim/common.vim +++ b/home/.config/nvim/common.vim @@ -94,6 +94,9 @@ vnoremap p pgvy " open terminal with F12 nnoremap :terminal +" no line numbers for terminals +autocmd TermOpen * setlocal nonumber norelativenumber + " vsplit with , then " map " :vsplit @@ -114,6 +117,11 @@ nnoremap S i V:m -2 nmap kzz nmap jzz +" stuff for marks +" jump to the given mark with <#> instead of `, i have a qwertz keyboard +nmap # ` +vmap # ` + " spell checking ----------------------------------------------------------------------------------- set spell spelllang=en,de @@ -149,8 +157,3 @@ syntax region cBackTickNoSpell start=+`+ end=+`+ syntax region cRusDocCommentNoSpell start=+//!+ end='\z1' contained extend \ contained containedin=cComment,cCommentL transparent \ contains=@NoSpell - -" stuff for marks -" jump to the given mark with <#> instead of `, i have a qwertz keyboard -nmap # ` -vmap # ` -- 2.40.1 From 06351bcd8323c0172800fd19225ab3b96962f9f4 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 31 Aug 2023 09:53:55 +0200 Subject: [PATCH 3/5] set default git branch name to master --- home/.gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/.gitconfig b/home/.gitconfig index 50fcf7a..383b029 100644 --- a/home/.gitconfig +++ b/home/.gitconfig @@ -6,3 +6,5 @@ helper = store --file ~/.git-credentials [commit] gpgsign = true +[init] + defaultBranch = master -- 2.40.1 From 927d7c86ded0d9527793baab2ef3d06aa4987377 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Thu, 31 Aug 2023 15:42:42 +0200 Subject: [PATCH 4/5] add spell files --- home/.config/nvim/spell/de.utf-8.add | 0 home/.config/nvim/spell/en.utf-8.add | 227 +++++++++++++++++++++++++++ 2 files changed, 227 insertions(+) create mode 100644 home/.config/nvim/spell/de.utf-8.add create mode 100644 home/.config/nvim/spell/en.utf-8.add diff --git a/home/.config/nvim/spell/de.utf-8.add b/home/.config/nvim/spell/de.utf-8.add new file mode 100644 index 0000000..e69de29 diff --git a/home/.config/nvim/spell/en.utf-8.add b/home/.config/nvim/spell/en.utf-8.add new file mode 100644 index 0000000..0a8cbd3 --- /dev/null +++ b/home/.config/nvim/spell/en.utf-8.add @@ -0,0 +1,227 @@ +NvimTree +F5 +netrw +init +lua +nvim +api +WSL +config +wsl +cd +termguicolors +NewTec +GmbH +www +newtec +Scherr +well +ServiceWrapper +of +PythonCallback +vvvvvvvvvvvvvvvv +const +u64 +u8 +str +fifos +tmp +bbc +LogLevel +wildcard +mutex +ENUMS +enum +STRUCT +structs +ServiceNotRunningError +pyo3 +CallbackAlreadyRegisteredError +CallbackNotRegisteredError +backend +tx +fifo +rx +fn +json +JsonValue +struct +stdout +stderr +syslog +PyDict +deregister +deregister_callback/! +deregister_callback +PyObject +RustCallback +PyO3 +call1 +py +args +CONFIGS +hjkl +F3 +gvim +F12 +zg +zw +zug +zuw +fzf +zc +qwertz +cword +FzfSpellSink +vsplit +FifoCreationError +AtomicBool +displayByAle +acceptSuggestionOnCommitCharacter +bool +serv +SafeService +PyErr +CallbackAlreadyRegisteredException +CallbackNotRegisteredException +srv +ServiceAlreadyRunningError +ServiceAlreadyRunningException +ServiceNotRunningException +ADDRESSOR +TIMESTAMP +timestamp +MessageMissingKey +MessageMissingKey +T13 +dir +ToString +dirs +traceback +PyString +RFC3339 +rfc +rfc3339 +mylogger +mylog +v2 +LogEntry +logseverity +Hashmap +CallbackTable +HashMap +VecDeque +toml +TBD +msg +FrontEnd +submodule +frontend +init +loop +try +KeyboardInterrupt +#IGINT +SIGINT/! +SIGTERM +SIGINT +Ctrl +try +SignalWatcher +exc +txt +ECDSA +PRIVKEY +DER +secp384r1 +pem +sig +PEM +MessengerError +Kloos +levi +kloos +serde +OldJson +ServiceError +YubiKey +submodules +Kleopatra +Kleopatra +GPG +lazygit +DevOps +rsa +TODO +IDEs +VsCode +JetBrains +NeoVim +#orewarding +forewarding +foreward +hypervisors +BrokerApplication +autostyle +csquotes +ngerman +biber +sortlocale +natbib +url +doi +eprint +biblatex +hyperref +colorlinks +citecolor +filecolor +linkcolor +urlcolor +pdfpages +Ggfs +weitere +ggfs +sec1 +sec2 +arabic +NTSG +lipsum +Qux +Akronymverzeichnis +NTSecureGateway +Nachspann +#orraussetzungen +IEC62443 +SBC +RustBook +Klabnik +lifecycle +compat +configs +#clc +rclc +feb +LTS +OOP +TPM +rustdoc +Yocto +Shield96 +NTSecureCloudSolutions +#TSecureCloud +NTSecureCloud +loesungen +IoT +datensicherer +ATSAMA5D27 +TrustZone +A5 +ARMv7 +eMMC +MT25QU0512BBB +ATECC608 +Keystore +io +acp +subfigure -- 2.40.1 From e26e71bd2e7ad384a38e5a39eb9b3466ce93523f Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Mon, 4 Sep 2023 09:41:11 +0200 Subject: [PATCH 5/5] fix zsh function --- home/.zsh-server/zshrc | 4 ++++ home/.zsh/zshrc | 1 + 2 files changed, 5 insertions(+) diff --git a/home/.zsh-server/zshrc b/home/.zsh-server/zshrc index 3e7b45d..ef9ceed 100644 --- a/home/.zsh-server/zshrc +++ b/home/.zsh-server/zshrc @@ -29,6 +29,10 @@ alias gls=/bin/ls function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" } function smallfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" } +function cachekeys () { exec 2>/dev/null; + eval $(ssh-agent) + ssh-add ~/.ssh/id_rsa +} function newpass() { LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c${1:-$0} } diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index 35cb642..1741d69 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -40,6 +40,7 @@ function smallfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" } function cachekeys () { exec 2>/dev/null; eval $(ssh-agent) ssh-add ~/.ssh/id_rsa +} function newpass() { LC_ALL=C tr -dc '[:alnum:]' < /dev/urandom | head -c${1:-$0} } -- 2.40.1