" Source the current file nnoremap so :so ~/.config/nvim/init.vim " Make the current file executable nnoremap x :!chmod +x % " Yank from the current column to the end of the line nnoremap Y yg$ " Move lines up and down inoremap :m .+1==gi inoremap :m .-2==gi vnoremap :m '<-2gv=gv vnoremap :m '>+1gv=gv " Keep things centred nnoremap n nzzzv nnoremap N Nzzzv " Remove arrow keys noremap noremap noremap noremap " Clears hlsearch after doing a search, otherwise just does normal stuff nnoremap {-> v:hlsearch ? ":nohl\" : "\"}() nnoremap :silent !tmux neww tmux-sessioniser