VIM: Cleanup keybindings, add NERDTreeToggle <F4>

The keybindings file was a mess. Cleaned it up and bound NERDTreeToggle
to <F4> in normal mode for easy access. Buffers are now on <F3> in every
mode. This will probably be changed again, depending on how annoying it
is.

Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
This commit is contained in:
Tobias Manske 2018-09-01 11:12:31 +02:00
parent 24830b03ec
commit b98cc52343
No known key found for this signature in database
GPG Key ID: 978D99F12D4E041F

View File

@ -15,12 +15,27 @@ vno <right> <NOP>
" Misc Keybindings " Misc Keybindings
let mapleader = "," let mapleader = ","
" Buffers
nmap <F3> :Buffers<CR>
imap <F3> <ESC><ESC>:Buffers<CR>
vmap <F3> <ESC><ESC>:Buffers<CR>
" Nerdtree
nmap <silent> <F4> <ESC>:NERDTreeToggle<CR>
" SingleCompile
nmap <F8> :SCChooseCompiler<CR>
nmap <F9> :SCCompile<cr>
nmap <F10> :SCCompileRun<cr>
" Window Movement " Window Movement
nnoremap <silent> <C-H> <C-W><C-H> nnoremap <silent> <C-H> <C-W><C-H>
nnoremap <silent> <C-J> <C-W><C-J> nnoremap <silent> <C-J> <C-W><C-J>
nnoremap <silent> <C-K> <C-W><C-K> nnoremap <silent> <C-K> <C-W><C-K>
nnoremap <silent> <C-L> <C-W><C-L> nnoremap <silent> <C-L> <C-W><C-L>
" Yankstack " Yankstack
nmap <silent> <S-P> <Plug>yankstack_substitute_newer_paste nmap <silent> <S-P> <Plug>yankstack_substitute_newer_paste
nmap <silent> <C-P> <Plug>yankstack_substitute_older_paste nmap <silent> <C-P> <Plug>yankstack_substitute_older_paste
@ -29,13 +44,6 @@ nmap <silent> <C-P> <Plug>yankstack_substitute_older_paste
inoremap <C-space> <C-N> inoremap <C-space> <C-N>
imap <C-@> <C-Space> imap <C-@> <C-Space>
" Syntastic
nnoremap <F2> :SyntasticToggleMode<CR>
" SingleCompile
nmap <F8> :SCChooseCompiler<CR>
nmap <F9> :SCCompile<cr>
nmap <F10> :SCCompileRun<cr>
nmap <C-c> g~iw nmap <C-c> g~iw