2018-04-05 13:06:54 +02:00
|
|
|
" No Arrowkeys
|
|
|
|
no <up> <NOP>
|
|
|
|
no <down> <NOP>
|
|
|
|
no <left> <NOP>
|
|
|
|
no <right> <NOP>
|
|
|
|
ino <up> <NOP>
|
|
|
|
ino <down> <NOP>
|
|
|
|
ino <left> <NOP>
|
|
|
|
ino <right> <NOP>
|
|
|
|
vno <up> <NOP>
|
|
|
|
vno <down> <NOP>
|
|
|
|
vno <left> <NOP>
|
|
|
|
vno <right> <NOP>
|
|
|
|
|
|
|
|
" Misc Keybindings
|
|
|
|
let mapleader = ","
|
|
|
|
|
2018-09-01 11:12:31 +02:00
|
|
|
" Buffers
|
|
|
|
nmap <F3> :Buffers<CR>
|
|
|
|
imap <F3> <ESC><ESC>:Buffers<CR>
|
|
|
|
vmap <F3> <ESC><ESC>:Buffers<CR>
|
|
|
|
|
|
|
|
" Nerdtree
|
2021-12-03 05:57:55 +01:00
|
|
|
nmap <silent> <F2> <ESC>:NERDTreeToggle<CR>
|
2018-09-01 11:12:31 +02:00
|
|
|
|
2021-12-03 05:57:55 +01:00
|
|
|
" Tagbar
|
|
|
|
nmap <F4> :TagbarToggle<CR>
|
2018-09-02 07:12:07 +02:00
|
|
|
|
2018-09-01 11:12:31 +02:00
|
|
|
" SingleCompile
|
|
|
|
nmap <F8> :SCChooseCompiler<CR>
|
|
|
|
nmap <F9> :SCCompile<cr>
|
|
|
|
nmap <F10> :SCCompileRun<cr>
|
|
|
|
|
2018-04-05 13:06:54 +02:00
|
|
|
" Window Movement
|
|
|
|
nnoremap <silent> <C-H> <C-W><C-H>
|
|
|
|
nnoremap <silent> <C-J> <C-W><C-J>
|
|
|
|
nnoremap <silent> <C-K> <C-W><C-K>
|
|
|
|
nnoremap <silent> <C-L> <C-W><C-L>
|
|
|
|
|
|
|
|
" Yankstack
|
|
|
|
nmap <silent> <S-P> <Plug>yankstack_substitute_newer_paste
|
|
|
|
nmap <silent> <C-P> <Plug>yankstack_substitute_older_paste
|
|
|
|
|
|
|
|
" CTRL + Space = Autocomplete
|
|
|
|
inoremap <C-space> <C-N>
|
|
|
|
imap <C-@> <C-Space>
|
|
|
|
|
2021-04-05 01:48:48 +02:00
|
|
|
cmap w!! w !sudo tee > /dev/null %
|
|
|
|
|
2018-09-02 07:12:07 +02:00
|
|
|
" Toggle Case
|
2018-04-05 13:06:54 +02:00
|
|
|
nmap <C-c> g~iw
|
2018-05-04 16:53:50 +02:00
|
|
|
|
2021-04-05 03:54:46 +02:00
|
|
|
|
2018-05-04 16:53:50 +02:00
|
|
|
" Rmarkdown
|
2018-05-04 17:18:36 +02:00
|
|
|
autocmd Filetype rmd nmap <F5> :w\|:!echo<space>"require(rmarkdown);<space>render('<c-r>%')"<space>\|<space>R<space>--vanilla<enter>
|
|
|
|
autocmd Filetype rmd imap <F5> <ESC><ESC>:w\|:!echo<space>"require(rmarkdown);<space>render('<c-r>%')"<space>\|<space>R<space>--vanilla<enter>
|
2021-04-05 13:46:01 +02:00
|
|
|
|
|
|
|
map <F1> <Esc>
|
|
|
|
imap <F1> <Esc>
|