Skip to content

Instantly share code, notes, and snippets.


Zhengbo Li zhengbli

  • Atlanta, GA
View GitHub Profile
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 = ""
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
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$