dotfiles/.vimrc.keymap

34 lines
568 B
Plaintext
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 :wa <bar> :Make test<CR>
" 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-22 16:08:40 +00:00
" tree
map <leader>n :NERDTreeToggle<CR>
2019-02-23 09:15:44 +00:00
2019-02-24 12:54:41 +00:00
" quickfix
nmap <leader>q <Plug>window:quickfix:toggle
2019-02-23 09:15:44 +00:00