Create additional 'modules' for neovim config

This commit is contained in:
2021-10-04 18:25:33 +03:00
parent 8f62779b01
commit e30a33ba84
5 changed files with 96 additions and 165 deletions

12
nvim/remaps.vim Normal file
View File

@@ -0,0 +1,12 @@
" These allow me to quickly save and quit vim
nnoremap <leader>w :w<CR>
nnoremap <leader>q :q<CR>
" Remaps to move line under the cursor up and down
nnoremap <C-k> :m .-2<CR>==
nnoremap <C-j> :m .+1<CR>==
vnoremap K :m '<-2<CR>gv=gv
vnoremap J :m '>+1<CR>gv=gv
" Remap to toggle markdown preview
nmap <C-m> <Plug>MarkdownPreviewToggle