Skip to content

vim-compilerun: Compile and run scripts from within Vim

License

Notifications You must be signed in to change notification settings

jacob-thompson/vim-compilerun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-compilerun

Compile and run scripts from within Vim

Install

Vundle.vim:

Plugin 'jacob-thompson/vim-compilerun'

vim-plug:

Plug 'jacob-thompson/vim-compilerun'

vim-pathogen:

git clone https://github.com/jacob-thompson/vim-compilerun.git ~/.vim/bundle/vim-compilerun

Lazy.nvim:

return { "jacob-thompson/vim-compilerun", name = "vim-compilerun" }

Example Vim Configuration

The following vimscript code maps CompileRun to F5 in the Normal, Insert, and Visual modes:

map <F5> <Cmd>CompileRun<CR>
imap <F5> <Esc><Cmd>CompileRun<CR>
vmap <F5> <Esc><Cmd>CompileRun<CR>

Example Neovim Configuration

The following lua code maps CompileRun to F5 in the Normal, Insert, and Visual modes:

vim.keymap.set("n", "<F5>", "<Cmd>CompileRun<CR>")
vim.keymap.set("i", "<F5>", "<Esc><Cmd>CompileRun<CR>")
vim.keymap.set("v", "<F5>", "<Esc><Cmd>CompileRun<CR>")

Usage

:CompileRun

About

vim-compilerun: Compile and run scripts from within Vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published