Skip to content

Commit

Permalink
update mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Marin Usalj committed Aug 15, 2017
1 parent 2658586 commit 38639f3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .config/nvim/init.vim
Expand Up @@ -351,19 +351,19 @@ let g:netrw_browse_split = 4
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Compile and run
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
au Filetype ruby nnoremap <leader>r :w\|:te ruby %<cr>
au Filetype rust nnoremap <leader>r :RustRun<cr>
au Filetype python nnoremap <leader>r :w\|:te python %<cr>
au Filetype java nnoremap <leader>r :w\|:te javac %<cr> :te java %:r<cr>
au Filetype swift nnoremap <leader>r :w\|:te swift %<cr>
au Filetype sh,bash,zsh nnoremap <leader>r :w\|:te $SHELL %<cr>
au Filetype ruby nmap <leader>r :w\|:te ruby %<cr>
au Filetype rust nmap <leader>r :RustRun<cr>
au Filetype python nmap <leader>r :w\|:te python %<cr>
au Filetype java nmap <leader>r :w\|:te javac %<cr> :te java %:r<cr>
au Filetype swift nmap <leader>r :w\|:te swift %<cr>
au Filetype sh,bash,zsh nmap <leader>r :w\|:te $SHELL %<cr>
" Golang... I'm shhhpeshial
au FileType go nnoremap <leader>r <Plug>(go-run)
au FileType go nnoremap <leader>b <Plug>(go-build)
au FileType go nnoremap <leader>t <Plug>(go-test)
au FileType go nnoremap <leader>c <Plug>(go-coverage-toggle)
au FileType go nnoremap <leader>a :GoAlternate<CR>
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <leader>b <Plug>(go-build)
au FileType go nmap <leader>t <Plug>(go-test)
au FileType go nmap <leader>c <Plug>(go-coverage-toggle)
au FileType go nmap <leader>a :GoAlternate<CR>
" Definition in a split / vertical
au FileType go nmap <Leader>ds <Plug>(go-def-split)
Expand Down

0 comments on commit 38639f3

Please sign in to comment.