config/nvim/plugin/maps.vim (view raw)
1" keybindings
2let mapleader=' '
3nnoremap <leader><esc> :nohlsearch<cr>
4nnoremap <leader>o :only<cr>
5nnoremap H H:exec 'norm! '. &scrolloff . 'k'<cr>
6nnoremap L L:exec 'norm! '. &scrolloff . 'j'<cr>
7nnoremap <C-t> :tabedit
8nnoremap <leader>n :bnext<cr>
9nnoremap <leader>p :bprev<cr>
10
11" Not an editor command: Wqa
12:command! WQ wq
13:command! Wq wq
14:command! Wqa wqa
15:command! W w
16:command! Q q
17
18" check if fzy is loaded and in PATH
19if executable('fzy') && fzy_loaded
20 nnoremap <leader>e :call FzyCommand("find . -type f", ":e")<cr>
21 nnoremap <leader>v :call FzyCommand("find . -type f", ":vs")<cr>
22 nnoremap <leader>s :call FzyCommand("find . -type f", ":sp")<cr>
23endif