Skip to content

Instantly share code, notes, and snippets.

Avatar

Zhengbo Li zhengbli

  • Atlanta, GA
View GitHub Profile
View gist:bafb7d189996da97d017c8497d4007bc
nmap <leader><leader>s :action KJumpAction<cr>
nmap <leader><leader>w :action KJumpAction.Word0<cr>
nmap <leader><leader>l :action KJumpAction.Line<cr>
set hlsearch
set ignorecase
set smartcase
" Yank from cursor to end of line, to be consistent with C and D.
nnoremap Y y$
@zhengbli
zhengbli / profile.ps1
Last active Apr 14, 2021
Powershell Profile
View profile.ps1
#Requires -Version 7
#Requires -Module Terminal-Icons
# Version 1.0.4
# check if newer version
$gistUrl = "https://api.github.com/gists/7fce33eb4a0e8104d2cb814a40a0a70c"
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"