dotfiles/.vimrc.keymap

37 lines
649 B
Text
Raw Normal View History

2019-02-22 15:50:11 +00:00
" key mappings
let mapleader = ","
2019-02-24 12:54:41 +00:00
nmap <Leader>s :update<CR>
2019-02-22 15:50:11 +00:00
nmap <leader>p :set paste!<CR>
nmap <leader>h :set hlsearch!<CR>
nmap <leader>t :NvimTreeToggle<CR>
2019-02-22 15:50:11 +00:00
" navigate buffers by ctrl-b
nmap <C-b> :bprevious<CR>
2019-02-22 16:08:40 +00:00
nmap <C-B> :bnext<CR>
2020-08-16 12:57:07 +01:00
nmap <leader>d :bd<CR>
2019-02-22 15:50:11 +00:00
nnoremap ; :
" no cheating !
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
" for damaged keyboards
map <F1> <Esc>
imap <F1> <Esc>
" special chars
nmap <leader>l :set list!<CR>
2019-02-24 12:54:41 +00:00
" quickfix
nmap <leader>q <Plug>window:quickfix:toggle
2019-02-23 09:15:44 +00:00
2020-09-06 00:21:46 +01:00
" ack
cnoreabbrev Ack Ack!
nnoremap <Leader>/ :Ack!<Space>
nnoremap <silent> [q :cprevious<CR>
nnoremap <silent> ]q :cnext<CR>