NOTE: use make command instead with makeprg
Run current opened file
Packer
use 'fagci/runfile.nvim'
As command
:RunFile
As lua code
:lua require('runfile').run()
As command
:RunFile -f value
As lua code
:lua require('runfile').run({'-f', 'value'})
Applied over default mappings
use {
'fagci/runfile.nvim',
config = function()
require('runfile').setup({
mappings = {
['zsh'] = 'zsh {f} {a}'
}
})
end
}
File path parts (expanded '%')
- {f} file path
- {p} full path
- {h} head (last path component removed)
- {t} tail (last path component only)
- {r} root (one extension removed)
- {e} extension only
Arguments
- {a} arguments
- applescript
- elixir
- erlang
- ghci
- go
- idris
- java
- javascript
- lua
- moon
- perl
- php
- python
- ruby
- sh