dotfiles/home/.config/nvim/conf.d/03-keybinds.vim
Marko Korhonen ccf314034a
FZF floating window and fix ESC in fzf buffer
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
2020-01-07 17:47:06 +02:00

30 lines
572 B
VimL

" Change leader to space
nnoremap <SPACE> <Nop>
let mapleader = ' '
" Toggle nerdtree
map <silent> <C-t> :NERDTreeToggle<CR>
" Markdown preview
nmap <C-s> <Plug>MarkdownPreview
nmap <M-s> <Plug>MarkdownPreviewStop
nmap <C-p> <Plug>MarkdownPreviewToggle
set splitbelow
set splitright
" Move between buffers
nnoremap <C-N> :bn<CR>
nnoremap <C-B> :bp<CR>
" Move between splits
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" Enable mouse
set mouse=a
" Preview with pandoc
nnoremap <leader>v :PandocPreview<cr>