pathutil

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2018 License: MIT Imports: 6 Imported by: 12

Documentation

Index

Constants

View Source
const Gvimrc = "gvimrc"
View Source
const ProfileGvimrc = "gvimrc.vim"
View Source
const ProfileVimrc = "vimrc.vim"
View Source
const Vimrc = "vimrc"

Variables

This section is empty.

Functions

func BuildInfoJSON

func BuildInfoJSON() string

(vim dir)/pack/volt/build-info.json

func BundledPlugConf added in v0.1.0

func BundledPlugConf() string

(vim dir)/pack/volt/start/system/plugin/bundled_plugconf.vim

func CloneURL added in v0.3.0

func CloneURL(reposPath ReposPath) string

https://{reposPath}

func ConfigTOML added in v0.2.3

func ConfigTOML() string

$HOME/volt/config.toml

func EncodeReposPath added in v0.3.0

func EncodeReposPath(reposPath ReposPath) string

Encode repos path to directory name. The directory name is: ~/.vim/pack/volt/opt/{name}

func Exists

func Exists(path string) bool

Returns true if path exists, otherwise returns false. Existence is checked by os.Lstat().

func FullReposPath added in v0.3.0

func FullReposPath(reposPath ReposPath) string

func HomeDir

func HomeDir() string

Detect HOME path. If HOME environment variable is not set, use USERPROFILE environment variable instead.

func LockJSON

func LockJSON() string

$HOME/volt/lock.json

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 Plugconf added in v0.3.0

func Plugconf(reposPath ReposPath) string

func RCDir added in v0.2.0

func RCDir(profileName string) string

$HOME/volt/rc/{profileName}

func TempDir added in v0.3.0

func TempDir() string

$HOME/tmp

func TrxLock

func TrxLock() string

$HOME/volt/trx.lock

func VimDir

func VimDir() string

Windows: $HOME/vimfiles Otherwise: $HOME/.vim

func VimExecutable added in v0.2.0

func VimExecutable() (string, error)

Detect vim executable path. If VOLT_VIM environment variable is set, use it. Otherwise look up "vim" binary from PATH.

func VimVoltDir

func VimVoltDir() string

(vim dir)/pack/volt

func VimVoltOptDir added in v0.1.0

func VimVoltOptDir() string

(vim dir)/pack/volt/opt

func VimVoltStartDir

func VimVoltStartDir() string

(vim dir)/pack/volt/start

func VoltPath

func VoltPath() string

$HOME/volt

Types

type ReposPath added in v0.3.0

type ReposPath string

func DecodeReposPath added in v0.3.0

func DecodeReposPath(name string) ReposPath

Decode name to repos path. name is directory name: ~/.vim/pack/volt/opt/{name}

func NormalizeLocalRepos

func NormalizeLocalRepos(name string) (ReposPath, error)

func NormalizeRepos

func NormalizeRepos(rawReposPath string) (ReposPath, error)

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]

func (*ReposPath) String added in v0.3.0

func (path *ReposPath) String() string

type ReposPathList added in v0.3.0

type ReposPathList []ReposPath

func (ReposPathList) Strings added in v0.3.0

func (list ReposPathList) Strings() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL