ttm / prv

prv is python, rdf and vim
5 stars 3 forks source link

Not working with default leader on Mac OS #1

Open rfabbri opened 6 years ago

rfabbri commented 6 years ago

When I try to install AA+PRV, I get these errors. Not sure if these are the latest instructions: https://goo.gl/gDGQvN

line 2: E121: Undefined variable: g:mapleader E15: Invalid expression: [g:mapleader, g:maplocalleader] line 4: E121: Undefined variable: g:prvset E116: Invalid arguments for function has_key(g:prvset.leaders, a:plug) E15: Invalid expression: has_key(g:prvset.leaders, a:plug) Error detected while processing function PRVLeaderHelper[4]..PRVRestoreLeader: line 1: E716: Key not present in Dictionary: aa E15: Invalid expression: g:prv.leaders[a:plug] Error detected while processing function 21_SetKeybindings: line 65: E227: mapping already exists for \c Error detected while processing function PRVLeaderHelper[2]..PRVDeclareLeader: line 2: E121: Undefined variable: g:mapleader E15: Invalid expression: [g:mapleader, g:maplocalleader] line 4: E121: Undefined variable: g:prvset E116: Invalid arguments for function has_key(g:prvset.leaders, a:plug) E15: Invalid expression: has_key(g:prvset.leaders, a:plug) Error detected while processing function PRVLeaderHelper[4]..PRVRestoreLeader: line 1: E716: Key not present in Dictionary: aa E15: Invalid expression: g:prv.leaders[a:plug]

Ao tentar carregar o prv, tambem obtenho algo do tipo:

Error detected while processing function PRVInit[5]..PRVDeclareLeader: line 2: E121: Undefined variable: g:mapleader E15: Invalid expression: [g:mapleader, g:maplocalleader] Error detected while processing function PRVInit[6]..PRVMkMappings: line 281: E121: Undefined variable: g:mapleader E15: Invalid expression: g:mapleader line 282: E716: Key not present in Dictionary: prv[2] E15: Invalid expression: g:prvset.leaders.prv[2] line 312: E121: Undefined variable: l:foo E15: Invalid expression: l:foo Error detected while processing function PRVInit[7]..PRVRestoreLeader: line 1: E716: Key not present in Dictionary: prv E15: Invalid expression: g:prv.leaders[a:plug]

:version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Dec 22 2017 03:30:17)
macOS version
Included patches: 1-1420
Compiled by root@Traviss-Mac-934.local
Huge version with MacVim GUI.  Features included (+) or not (-):
+acl               +cursorshape       +insert_expand     +mouse_sgr         +rightleft         +transparency
+arabic            +dialog_con_gui    +job               -mouse_sysmouse    +ruby/dyn          +user_commands
+autocmd           +diff              +jumplist          +mouse_urxvt       +scrollbind        +vertsplit
-autoservername    +digraphs          +keymap            +mouse_xterm       +signs             +virtualedit
+balloon_eval      +dnd               +lambda            +multi_byte        +smartindent       +visual
+balloon_eval_term -ebcdic            +langmap           +multi_lang        +startuptime       +visualextra
+browse            +emacs_tags        +libcall           -mzscheme          +statusline        +viminfo
++builtin_terms    +eval              +linebreak         +netbeans_intg     -sun_workshop      +vreplace
+byte_offset       +ex_extra          +lispindent        +num64             +syntax            +wildignore
+channel           +extra_search      +listcmds          +odbeditor         +tag_binary        +wildmenu
+cindent           +farsi             +localmap          +packages          +tag_old_static    +windows
+clientserver      +file_in_path      +lua/dyn           +path_extra        -tag_any_white     +writebackup
+clipboard         +find_in_path      +menu              +perl/dyn          -tcl               -X11
+cmdline_compl     +float             +mksession         +persistent_undo   +termguicolors     -xfontset
+cmdline_hist      +folding           +modify_fname      +postscript        +terminal          +xim
+cmdline_info      -footer            +mouse             +printer           +terminfo          -xpm
+comments          +fork()            +mouseshape        +profile           +termresponse      -xsmp
+conceal           +fullscreen        +mouse_dec         +python/dyn        +textobjects       -xterm_clipboard
+cryptv            -gettext           -mouse_gpm         +python3/dyn       +timers            -xterm_save
+cscope            -hangul_input      -mouse_jsbterm     +quickfix          +title
+cursorbind        +iconv             +mouse_netterm     +reltime           +toolbar
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X -DMACOS_
X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr
/local/opt/readline/lib -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib
 -L/usr/local/opt/readline/lib  -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv
-framework AppKit   -fstack-protector  -L/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE
rfabbri commented 6 years ago

I will put my live progress on my webpage. https://rfabbri.github.io/aa/

rfabbri commented 6 years ago

I started hacking and updated the hack log at: https://rfabbri.github.io/aa/

I am fixing aux/ prv dependencies first. Will send a pull request soon. Then maybe also fix PRV itsef.