This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! WriteParams() | |
python << endpython | |
import re | |
import vim | |
# get the function definition line | |
line = vim.eval("getline(line('.'))") | |
# get the number of spaces to add to the start of the line | |
num_spaces = 4 + len(line) - len(line.lstrip()) | |
# get the line number wher to do the insertion |