Documentation ¶
Index ¶
- Constants
- func BuildInfoJSON() string
- func BundledPlugConf() string
- func ConfigTOML() string
- func Exists(path string) bool
- func HomeDir() string
- func LockJSON() string
- func LookUpGvimrc() []string
- func LookUpVimrc() []string
- func RCDir(profileName string) string
- func TempDir() string
- func TrxDir() string
- func VimDir() string
- func VimExecutable() (string, error)
- func VimVoltDir() string
- func VimVoltOptDir() string
- func VimVoltStartDir() string
- func VoltPath() string
- type ReposPath
- type ReposPathList
Constants ¶
const Gvimrc = "gvimrc"
Gvimrc is the basename of gvimrc in ~/.vim
const ProfileGvimrc = "gvimrc.vim"
ProfileGvimrc is the basename of profile gvimrc.
const ProfileVimrc = "vimrc.vim"
ProfileVimrc is the basename of profile vimrc.
const Vimrc = "vimrc"
Vimrc is the basename of vimrc in ~/.vim
Variables ¶
This section is empty.
Functions ¶
func BuildInfoJSON ¶
func BuildInfoJSON() string
BuildInfoJSON returns "(vim dir)/pack/volt/build-info.json".
func BundledPlugConf ¶ added in v0.1.0
func BundledPlugConf() string
BundledPlugConf returns "(vim dir)/pack/volt/start/system/plugin/bundled_plugconf.vim".
func ConfigTOML ¶ added in v0.2.3
func ConfigTOML() string
ConfigTOML returns fullpath of "$HOME/volt/config.toml".
func Exists ¶
Exists returns true if path exists, otherwise returns false. Existence is checked by os.Lstat().
func HomeDir ¶
func HomeDir() string
HomeDir detects HOME path. If HOME environment variable is not set, use USERPROFILE environment variable instead.
func LookUpGvimrc ¶
func LookUpGvimrc() []string
LookUpGvimrc looks up gvimrc path from the following candidates:
Windows : $HOME/_gvimrc (vim dir)/gvimrc Otherwise: $HOME/.gvimrc (vim dir)/gvimrc
func LookUpVimrc ¶
func LookUpVimrc() []string
LookUpVimrc looks up vimrc path from the following candidates:
Windows : $HOME/_vimrc (vim dir)/vimrc Otherwise: $HOME/.vimrc (vim dir)/vimrc
func VimDir ¶
func VimDir() string
VimDir returns the following fullpath:
Windows: $HOME/vimfiles Other: $HOME/.vim
func VimExecutable ¶ added in v0.2.0
VimExecutable detects vim executable path. If VOLT_VIM environment variable is set, use it. Otherwise look up "vim" binary from PATH.
func VimVoltOptDir ¶ added in v0.1.0
func VimVoltOptDir() string
VimVoltOptDir returns "(vim dir)/pack/volt/opt".
func VimVoltStartDir ¶
func VimVoltStartDir() string
VimVoltStartDir returns "(vim dir)/pack/volt/start".
Types ¶
type ReposPath ¶ added in v0.3.0
type ReposPath string
ReposPath is string of "{site}/{user}/{repos}"
func DecodeReposPath ¶ added in v0.3.0
DecodeReposPath decodes name to repos path. name is directory name: ~/.vim/pack/volt/opt/{name}
func NormalizeRepos ¶
NormalizeRepos normalizes name into the following forms into ReposPath: 1. user/name[.git] 2. github.com/user/name[.git] 3. [git|http|https]://github.com/user/name[.git][/]
func (ReposPath) EncodeToPlugDirName ¶ added in v0.3.3
EncodeToPlugDirName encodes path to directory name. The directory name is: ~/.vim/pack/volt/opt/{name}
type ReposPathList ¶ added in v0.3.0
type ReposPathList []ReposPath
ReposPathList is []ReposPath
func (ReposPathList) Contains ¶ added in v0.4.1
func (list ReposPathList) Contains(reposPath ReposPath) bool
Contains returns true if list contains reposPath.
func (ReposPathList) Find ¶ added in v0.4.1
func (list ReposPathList) Find(reposPath ReposPath) ReposPath
Find returns an non-empty element (path.String() != "") if list contains reposPath.
func (ReposPathList) Strings ¶ added in v0.3.0
func (list ReposPathList) Strings() []string
Strings returns []string values.