-- Also check plugins/neo-tree.lua for binds
vim.cmd([[
  tnoremap <C-h> <C-\\><C-o><C-w>h
  tnoremap <C-k> <C-\\><C-o><C-w>k
  tnoremap <C-l> <C-\\><C-o><C-w>l
  tnoremap <C-j> <C-\\><C-o><C-w>j

  " Moving between windows
  nnoremap <C-h> <C-w>h
  nnoremap <C-k> <C-w>k
  nnoremap <C-l> <C-w>l
  nnoremap <C-j> <C-w>j

  " I don't remember
  nnoremap <C-Space> 
  vnoremap <C-Space> 

  " Paste shell command output
  vnoremap <leader>e :!sh<CR>

  " Quick qq macros
  nnoremap ' @q

  " Clear search
  nnoremap @/ <Esc>:noh<CR>

  " Copy relative path to clipboard (from infile)
  nnoremap <F3> :let @+ = expand("%:f")<CR>
  " Copy filename to clipboard (from infile)
  nnoremap <F4> :let @+ = expand("%:t")<CR>

  " Delete trailing spaces
  nnoremap <leader>w :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
]])
