Skip to content

Instantly share code, notes, and snippets.

View wa008's full-sized avatar

wa008 wa008

View GitHub Profile
@wa008
wa008 / .vimrc
Last active May 13, 2025 06:47
[vimrc] Bracket and quote matching and automatic shifting
" How to use: append below code into your ~/.vimrc file
inoremap ( ()<LEFT> " ( -> ()
inoremap [ []<LEFT> " [ -> []
inoremap { {}<LEFT> " { -> {}
" shift right when input ) and current char is )
function! RemoveNextDoubleChar(char)
let next_char = getline(".")[col(".")] " get current char
if a:char == next_char
@wa008
wa008 / .vimrc
Last active May 13, 2025 06:43 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
# 1. check path of pip config
# command: python3 -m pip config debug
# output: /root/.config/pip/pip.conf
# 2. replace below code into your pip config
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
extra-index-url= https://pypi.tuna.tsinghua.edu.cn/simple
https://mirrors.sustech.edu.cn/pypi/web/simple