Skip to content

Instantly share code, notes, and snippets.

@huytd
Created August 18, 2023 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huytd/361f30fbebea75153e7a252846508baf to your computer and use it in GitHub Desktop.
Save huytd/361f30fbebea75153e7a252846508baf to your computer and use it in GitHub Desktop.
let mapleader=" "
set ideajoin
set clipboard+=unnamed
set clipboard+=ideaput
inoremap jk <ESC>
nnoremap <C-j> 10jzz
nnoremap <C-k> 10kzz
nnoremap H h
nnoremap L l
nnoremap l w
nnoremap h b
nmap gr <Action>(FindUsages)
nmap gi <Action>(GotoImplementation)
nmap gd <Action>(GotoDeclaration)
nmap gy <Action>(GotoTypeDeclaration)
" A touch of Helix
nmap gh 0
nmap gs ^
nmap gl $
nmap ge G
xmap gh 0
xmap gs ^
xmap gl $
xmap ge G
nmap <leader>S <Action>(GotoSymbol)
nmap <leader>s <Action>(FileStructurePopup)
nmap <leader>F <Action>(FindInPath)
nmap <leader>f <Action>(GotoFile)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment