1
anonymous No title
Shell
vnoremap J :call V_mv_line("j")<cr>
vnoremap K :call V_mv_line("k")<cr>

func! V_mv_line(ud) range abort

  let l:line_num = a:lastline - a:firstline + 1

  execute 'normal! ' . a:firstline . 'G'
  execute 'normal! ' . l:line_num . '"add'
  execute 'normal! ' . a:ud
  execute 'normal! "aP'
  execute 'normal! V'

  let l:mv_num = l:line_num - 1
  if l:mv_num >= 1
    execute 'normal! ' . l:mv_num . 'j'
  endif
endfunc
anonymous No title
Shell
Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineKeyHandler -Key Ctrl+j -Function AcceptLine
Set-PSReadLineKeyHandler -Key Ctrl+o -Function BackwardWord
Set-PSReadLineKeyHandler -Key Ctrl+f -Function ForwardWord
Set-PSReadLineKeyHandler -Key Ctrl+l -Function ForwardChar
Set-PSReadLineKeyHandler -Key Ctrl+w -Function BackwardDeleteWord
Set-PSReadLineKeyHandler -Key Ctrl+s -Function BackwardChar
Set-PSReadLineKeyHandler -Key Ctrl+k -Function DeleteEndOfWord

Set-PSReadLineKeyHandler -Key Ctrl+i -Function MenuComplete
# Set-PSReadLineKeyHandler -Key Ctrl+i -Function Complete
# Set-PSReadLineKeyHandler -Key Ctrl+i -Function TabCompleteNext

Set-PsFzfOption -PSReadlineChordProvider       'Ctrl+t'
Set-PsFzfOption -PSReadlineChordReverseHistory 'Ctrl+r'

function prompt() {
  (Split-Path (Get-Location) -Leaf) + "> "
}
# Set-PSReadlineOption -TokenKind Parameter -ForegroundColor Red
# Set-PSReadlineOption -TokenKind Command -ForegroundColor Red


Set-Alias vim nvim
Set-Alias vi  nvim

Set-Alias ll  ls

function l(){
  Get-ChildItem -Name
}

Set-Alias open explorer

function sh(){
  powershell -F
}

# Expand-Archive -Path $zip -DestinationPath $dir1 -Force


cd ~/Downloads
anonymous No title
Shell
#!/bin/bash

cat /etc/shadow
Don't you submit code?
Submit
1