Skip to main content
Attach picture and format as code.
Source Link
filbranden
  • 29.9k
  • 5
  • 28
  • 73

When I try to run a file with Neovim it shows me this: https://i.sstatic.net/a94Nj.png .

screenshot

It doesn't allow me to type any input. How can I type some input using Neovim ?

This is my script for compiling:

g++ -static -DLOCAL -lm -s -x c++ -Wall -Wextra -O2 -std=c++17 -o $1 $1.cpp

g++ -static -DLOCAL -lm -s -x c++ -Wall -Wextra -O2 -std=c++17 -o $1 $1.cpp 

This are my commands in Neovim for compiling and running a cpp file:

autocmd filetype cpp nnoremap :w !build.sh %:r autocmd filetype cpp nnoremap :!./%:r

autocmd filetype cpp nnoremap <F9> :w <bar> !build.sh %:r <CR> 
autocmd filetype cpp nnoremap <F10> :!./%:r<CR>

My init.vim :Here is https://pastebin.com/3LwP9PZ4my init.vim  . I

I have windows 10 with WSL. Thank you!

When I try to run a file with Neovim it shows me this: https://i.sstatic.net/a94Nj.png .

It doesn't allow me to type any input. How can I type some input using Neovim ?

This is my script for compiling:

g++ -static -DLOCAL -lm -s -x c++ -Wall -Wextra -O2 -std=c++17 -o $1 $1.cpp

This are my commands in Neovim for compiling and running a cpp file:

autocmd filetype cpp nnoremap :w !build.sh %:r autocmd filetype cpp nnoremap :!./%:r

My init.vim : https://pastebin.com/3LwP9PZ4  . I have windows 10 with WSL. Thank you!

When I try to run a file with Neovim it shows me this:

screenshot

It doesn't allow me to type any input. How can I type some input using Neovim ?

This is my script for compiling:

g++ -static -DLOCAL -lm -s -x c++ -Wall -Wextra -O2 -std=c++17 -o $1 $1.cpp 

This are my commands in Neovim for compiling and running a cpp file:

autocmd filetype cpp nnoremap <F9> :w <bar> !build.sh %:r <CR> 
autocmd filetype cpp nnoremap <F10> :!./%:r<CR>

Here is my init.vim.

I have windows 10 with WSL. Thank you!

Source Link

Problem with compiling/running a file in neovim

When I try to run a file with Neovim it shows me this: https://i.sstatic.net/a94Nj.png .

It doesn't allow me to type any input. How can I type some input using Neovim ?

This is my script for compiling:

g++ -static -DLOCAL -lm -s -x c++ -Wall -Wextra -O2 -std=c++17 -o $1 $1.cpp

This are my commands in Neovim for compiling and running a cpp file:

autocmd filetype cpp nnoremap :w !build.sh %:r autocmd filetype cpp nnoremap :!./%:r

My init.vim : https://pastebin.com/3LwP9PZ4 . I have windows 10 with WSL. Thank you!