Documentation ¶
Index ¶
- Constants
- func BuildInfoJSON() string
- func BundledPlugConf() string
- func CloneURL(reposPath ReposPath) string
- func ConfigTOML() string
- func EncodeReposPath(reposPath ReposPath) string
- func Exists(path string) bool
- func FullReposPath(reposPath ReposPath) string
- func HomeDir() string
- func LockJSON() string
- func LookUpGvimrc() []string
- func LookUpVimrc() []string
- func Plugconf(reposPath ReposPath) string
- func RCDir(profileName string) string
- func TempDir() string
- func TrxLock() 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"
const ProfileGvimrc = "gvimrc.vim"
const ProfileVimrc = "vimrc.vim"
const Vimrc = "vimrc"
Variables ¶
This section is empty.
Functions ¶
func BundledPlugConf ¶ added in v0.1.0
func BundledPlugConf() string
(vim dir)/pack/volt/start/system/plugin/bundled_plugconf.vim
func EncodeReposPath ¶ added in v0.3.0
Encode repos path to directory name. The directory name is: ~/.vim/pack/volt/opt/{name}
func Exists ¶
Returns true if path exists, otherwise returns false. Existence is checked by os.Lstat().
func FullReposPath ¶ added in v0.3.0
func HomeDir ¶
func HomeDir() string
Detect HOME path. If HOME environment variable is not set, use USERPROFILE environment variable instead.
func LookUpGvimrc ¶
func LookUpGvimrc() []string
Look up gvimrc path from the following candidates:
Windows : $HOME/_gvimrc (vim dir)/gvimrc Otherwise: $HOME/.gvimrc (vim dir)/gvimrc
func LookUpVimrc ¶
func LookUpVimrc() []string
Look up vimrc path from the following candidates:
Windows : $HOME/_vimrc (vim dir)/vimrc Otherwise: $HOME/.vimrc (vim dir)/vimrc
func VimExecutable ¶ added in v0.2.0
Detect vim executable path. If VOLT_VIM environment variable is set, use it. Otherwise look up "vim" binary from PATH.
Types ¶
type ReposPath ¶ added in v0.3.0
type ReposPath string
func DecodeReposPath ¶ added in v0.3.0
Decode name to repos path. name is directory name: ~/.vim/pack/volt/opt/{name}
func NormalizeLocalRepos ¶
func NormalizeRepos ¶
Normalize the following forms into "github.com/user/name": 1. user/name[.git] 2. github.com/user/name[.git] 3. [git|http|https]://github.com/user/name[.git]
type ReposPathList ¶ added in v0.3.0
type ReposPathList []ReposPath
func (ReposPathList) Strings ¶ added in v0.3.0
func (list ReposPathList) Strings() []string