Skip to main content
2 of 7
added 225 characters in body
Visrut
  • 125
  • 6

ok ok i done this first problem with mapping

for javascript

nnoremap <F5> :FloatermNew node %<CR>

for c

nnoremap <F5> :FloatermNew gcc % && ./a.out<CR>

for c++

nnoremap <F5> :FloatermNew g++ % && ./a.out<CR>

for python

nnoremap <F5> :Floaterm python3 %<CR>

Now i want that these all working with one shortcut F5.

i done like this but that not work

if &filetype ==# 'c'
    nnoremap <F5> :FloatermNew gcc % ./a.out <CR>
endif

Now can anybody do further ?

Visrut
  • 125
  • 6