dotfiles/nvim/keybindings

26 lines
526 B
Plaintext

let mapleader = " "
" Auto-toggle paste mode
let &t_SI .= "\<Esc>[?2004h"
let &t_EI .= "\<Esc>[?2004l"
function! XTermPasteBegin()
set pastetoggle=<Esc>[201~
set paste
return ""
endfunction
inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
" Clear search highlighting
noremap <Leader><Esc> :let @/ = ""<CR>
" Spellcheck
nnoremap <Leader>S :setlocal spell! spelllang=en_us<CR>
noremap H ^
noremap L $
noremap <Leader>c :set cursorline!<CR>
noremap <Leader>n :set relativenumber!<CR>
noremap <Leader>; $a;<Esc>