Skip to content

Commit

Permalink
Upgrade vim Plug
Browse files Browse the repository at this point in the history
  • Loading branch information
wunki committed Jan 27, 2016
1 parent bb55539 commit 864b917
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,6 +6,7 @@
/bin/python
/bin/nvim
nvim/shada
nvim/autoload/plug.vim.old
emacs/bookmarks
emacs/var
emacs/.org-id-locations
Expand Down
18 changes: 15 additions & 3 deletions ghc/ghci
@@ -1,14 +1,26 @@
:set prompt "λ> "
-- Prompt
:set prompt "\ESC[34;1mλ> \ESC[m"
:set prompt2 "\ESC[34;1m | \ESC[m"

-- Print the type after every statement
:set +t
:set +c

-- Collect information after modules have been
-- loaded.
:set +c

-- Hoogle
:def hoogle \s -> return $ ":! hoogle --count=15 \"" ++ s ++ "\""
:def doc \x -> return $ ":!hoogle --info \"" ++ x ++ "\""

-- Use incremental compilation
-- If you are missing information on a module, run `-fbyte-code`
-- and :load the module again.
:set -fobject-code

-- Warn me about these things
:set -Wall
:set -fno-warn-missing-signatures
:set -fno-warn-type-defaults
:set -fno-warn-name-shadowing
:set -fno-warn-unused-do-bind
:set -fno-warn-unused-do-bind
6 changes: 3 additions & 3 deletions nvim/autoload/plug.vim
Expand Up @@ -450,9 +450,9 @@ function! s:add(repo, ...)

try
let repo = s:trim(a:repo)
let name = fnamemodify(repo, ':t:s?\.git$??')
let spec = extend(s:infer_properties(name, repo),
\ a:0 == 1 ? s:parse_options(a:1) : s:base_spec)
let opts = a:0 == 1 ? s:parse_options(a:1) : s:base_spec
let name = get(opts, 'as', fnamemodify(repo, ':t:s?\.git$??'))
let spec = extend(s:infer_properties(name, repo), opts)
if !has_key(g:plugs, name)
call add(g:plugs_order, name)
endif
Expand Down

0 comments on commit 864b917

Please sign in to comment.