mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 14:43:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -245,6 +245,9 @@ def write_function_docstring(t, snip): | ||||
| 	snip.rv += '\n' + snip.mkline('', indent='') | ||||
| 	snip += triple_quotes(snip) | ||||
|  | ||||
| def get_dir_and_file_name(snip): | ||||
| 	return os.getcwd().split(os.sep)[-1] + '.' + snip.basename | ||||
|  | ||||
| endglobal | ||||
|  | ||||
| ######################################## | ||||
| @ -687,4 +690,18 @@ ${1:${VISUAL:doc}} | ||||
| `!p snip.rv = triple_quotes(snip)` | ||||
| endsnippet | ||||
|  | ||||
| snippet pmdoc "pocoo style module doc string" b | ||||
| # -*- coding: utf-8 -*- | ||||
| """ | ||||
| 	`!p snip.rv = get_dir_and_file_name(snip)` | ||||
| 	`!p snip.rv = '~' * len(get_dir_and_file_name(snip))` | ||||
|  | ||||
| 	${1:DESCRIPTION} | ||||
|  | ||||
| 	:copyright: (c) `date +%Y` by ${2:YOUR_NAME}. | ||||
| 	:license: ${3:LICENSE_NAME}, see LICENSE for more details. | ||||
| """ | ||||
| $0 | ||||
| endsnippet | ||||
|  | ||||
| # vim:ft=snippets: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix