Commits

Meikel Brandmeyer committed f8fcc6e

Disambiguate <Plug> names (reported by Sung Pae)

Fixes #98

  • Participants
  • Parent commits 0f87447

Comments (0)

Files changed (2)

vim/autoload/vimclojure.vim

 
 " Key mappings and Plugs
 function! vimclojure#MakeProtectedPlug(mode, plug, f, args)
-	execute a:mode . "noremap <Plug>Clojure" . a:plug
+	execute a:mode . "noremap <Plug>Clojure" . a:plug . "."
 				\ . " :<C-U>call vimclojure#ProtectedPlug(function(\""
 				\ . a:f . "\"), [ " . a:args . " ])<CR>"
 endfunction
 
 function! vimclojure#MakeCommandPlug(mode, plug, f, args)
-	execute a:mode . "noremap <Plug>Clojure" . a:plug
+	execute a:mode . "noremap <Plug>Clojure" . a:plug . "."
 				\ . " :<C-U>call vimclojure#ProtectedPlug("
 				\ . " function(\"vimclojure#CommandPlug\"),"
 				\ . " [ function(\"" . a:f . "\"), [ " . a:args . " ]])<CR>"
 
 	if doSetup && !hasmapto("<Plug>Clojure" . a:plug, a:mode)
 		execute a:mode . "map <buffer> <unique> <silent> <LocalLeader>" . a:keys
-					\ . " <Plug>Clojure" . a:plug
+					\ . " <Plug>Clojure" . a:plug . "."
 	endif
 endfunction
 

vim/doc/clojure.txt

 under the |maplocalleader| help topic.
 
 You can redefine any key mapping using some autocommand in your .vimrc file.
-All mappings use so-called Plugs. Simply prepend <Plug>Clojure to the given
-Plug name and your setting will override the default mapping.
+All mappings use so-called Plugs. Simply prepend "<Plug>Clojure" to the given
+Plug name, append a "." and your setting will override the default mapping.
 >
-        aucmd BufRead,BufNewFile *.clj nmap xyz <Plug>ClojureEvalToplevel
+        aucmd BufRead,BufNewFile *.clj nmap xyz <Plug>ClojureEvalToplevel.
 <
 To inhibit all mappings set the global flag to zero:
 >