Skip to content

Instantly share code, notes, and snippets.

View eduardoarakaki's full-sized avatar

Eduardo Arakaki eduardoarakaki

  • Eduardo Arakaki
  • Brazil
View GitHub Profile
" sudo apt update && sudo apt install vim git curl
" Ativa número de linhas
set number
set relativenumber
" Habilita a indentação automática e inteligente
set autoindent
set smartindent

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@eduardoarakaki
eduardoarakaki / .vimrc
Last active April 11, 2025 20:01
My config vimrc
" Configuration file for vim
set modelines=0 " CVE-2007-2438
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=2 " more powerful backspacing
" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup nobackup
@eduardoarakaki
eduardoarakaki / vim_guide.md
Last active April 10, 2025 19:09
Vim Cheatsheet

🧠 Vim Cheatsheet — Atalhos Essenciais

Um guia completo de atalhos para produtividade máxima com Vim/Neovim.


📦 Índice

On Linux, the Keychron K2 doesn't register any of the F1-F12 function keys as actual F keys, instead, treating them as multimedia keys by default. Here's how to fix it!
They keyboard has 2 modes: Windows/Android and MacOS, but neither mode worked properly out of the box.
To fix this:
Set the keyboard to Windows mode via the side switch
Use Fn + X + L (hold for 4 seconds) to set the function key row to "Function" mode. (usually all that's necessary on Windows)
echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
echo 1 | sudo tee /sys/module/hid_apple/parameters/fnmode (Default)
Once complete, my F1-F12 keys work properly, and holding Fn turns them into multimedia keys. You can use the evtest utility to check how keyboard keys are registering until you get the above combination of settings configured properly.
@eduardoarakaki
eduardoarakaki / pgmodeler
Last active July 30, 2022 15:29
pgModeler Build and Install
# Install PostgreSQL
# Create the file repository configuration
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
# Import the repository signing key
wget - quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# Update the package lists and update the system
sudo apt update && sudo apt upgrade -y
@eduardoarakaki
eduardoarakaki / android-resources.md
Created November 17, 2016 18:04
[android] android resources