update plug.vim
This commit is contained in:
		
							parent
							
								
									5270993380
								
							
						
					
					
						commit
						c5c6855470
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -242,6 +242,8 @@ function! plug#begin(...) | ||||||
|     let home = s:path(s:plug_fnamemodify(s:plug_expand(a:1), ':p')) |     let home = s:path(s:plug_fnamemodify(s:plug_expand(a:1), ':p')) | ||||||
|   elseif exists('g:plug_home') |   elseif exists('g:plug_home') | ||||||
|     let home = s:path(g:plug_home) |     let home = s:path(g:plug_home) | ||||||
|  |   elseif has('nvim') | ||||||
|  |     let home = stdpath('data') . '/plugged' | ||||||
|   elseif !empty(&rtp) |   elseif !empty(&rtp) | ||||||
|     let home = s:path(split(&rtp, ',')[0]) . '/plugged' |     let home = s:path(split(&rtp, ',')[0]) . '/plugged' | ||||||
|   else |   else | ||||||
|  | @ -405,7 +407,7 @@ function! plug#end() | ||||||
| 
 | 
 | ||||||
|   for [map, names] in items(lod.map) |   for [map, names] in items(lod.map) | ||||||
|     for [mode, map_prefix, key_prefix] in |     for [mode, map_prefix, key_prefix] in | ||||||
|           \ [['i', '<C-O>', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] |           \ [['i', '<C-\><C-O>', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] | ||||||
|       execute printf( |       execute printf( | ||||||
|       \ '%snoremap <silent> %s %s:<C-U>call <SID>lod_map(%s, %s, %s, "%s")<CR>', |       \ '%snoremap <silent> %s %s:<C-U>call <SID>lod_map(%s, %s, %s, "%s")<CR>', | ||||||
|       \ mode, map, map_prefix, string(map), string(names), mode != 'i', key_prefix) |       \ mode, map, map_prefix, string(map), string(names), mode != 'i', key_prefix) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alexander Gehrke
						Alexander Gehrke