Skip to content

Instantly share code, notes, and snippets.

View thanhdancer's full-sized avatar

Thành Dancer thanhdancer

View GitHub Profile

VIM Encryption - Decryption

Decryption

## ~/.bashrc 
vimdecrypt() { gpg -d "$1" | vim - -n -i "NONE" "+set filetype=$2"; }
alias vd="vimdecrypt"

Encryption

@thanhdancer
thanhdancer / keybindings.json
Created February 6, 2025 12:11
VSCode handy shortcuts
[
{ "key": "ctrl+n", "command": "explorer.newFile", "when": "explorerViewletFocus" },
{ "key": "ctrl+shift+n", "command": "explorer.newFolder", "when": "explorerViewletFocus" },
]
@thanhdancer
thanhdancer / .vimrc
Last active February 6, 2025 04:57
.vimrc
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab