vim-airline system information extension.
note: replaces the vim-airline "z" section.
- 64-bit macos
- 64-bit linux
use git or your plugin manager of choice to install vim-airline-system.
note: go v1.15
in the below example, platform_name
would be "darwin" or "linux".
$ cd go
$ go build -o ../autoload/airline/extensions/bin/platform_name --mod=vendor
- gopsutil made this light work indeed.
- vim-airline: hard to extend something that doesn't exist.
- vim-airline-clock is a great example of a vim-airline extension.
- vim-ctrlspace is a great example of using golang to extend vim plugins.
- steve losh's book, learn vimscript the hard way, was a great and useful read.