curline_sv = GvSV(gv_fetchpv(".", TRUE, SVt_PV)); sv_setiv_mg(curline_sv, curwin->w_cursor.lnum);
argv_sv = GvSV(gv_fetchpv("ARGV", TRUE, SVt_PV)); sv_setpv(argv_sv, curbuf->b_fname);
options for implementation:
this can be done in vim-script i think.
"\Program\ Files"is a strange way of representing the filename.
VIM::Msg(char *text[, char *hl]) - display msg with highlight VIM::SetOption(char *line) -> calls do_set see list in C:\local\vim\vim70\doc\options.txt VIM::DoCommand(char *line) -> calls do_cmdline_cmd VIM::Eval(char *str) -> calls eval_to_string scalar VIM::Buffers() -> return number of buffers array VIM::Buffers() -> return list of buffers VIM::Buffers(pattern,..) -> return buffer matching pattern VIM::Buffers(number,...) -> return buffer with number scalar VIM::Windows() -> return number of windows array VIM::Windows() -> return list of windows VIM::Windows(nr,...) -> return window with number VIWIN::DESTROY() VIWIN::Buffer() -> returns buffer from window VIWIN::SetHeight(h) -> resizes window VIWIN::Cursor() -> returns cursor (line,col) VIWIN::Cursor(l,c) -> sets cursor (line,col) VIBUF::DESTROY() VIBUF::Name() -> returns buffer name VIBUF::Number() -> returns buffer number VIBUF::Count() -> returns nr of lines in buffer VIBUF::Get(nr,...) -> returns list of lines VIBUF::Set(nr,str,...)-> sets lines starting at nr VIBUF::Delete(nr) -> delete line VIBUF::Delete(start,end) -> deletes range of lines VIBUF::Append(nr,str,...) -> insert after linenr VIM::bootstrap $main::curwin - returns current window object $main::curbuf - returns current buffer object VIM::perldo - function constructed for ex_perldo VIM::safe - function constructed for ex_perl ex_perl - called by vim ex_perldo - called by vim