Remember Remember

lunes, 11 de mayo de 2009

vim integration with MoinMoin

This allows gf to follow a link,
NOTE: I just realized that blogger doesnt like the greater than and lower than, (makes sense), I am gonna correct this later.

if !exists("loaded_moin")
set autowrite
let loaded_moin = 1
set isk=a-z,A-Z,/,-,_

autocmd BufWritePost * !editmoin -c ""

function! Moin_EditPage()
let url = "http://localhost:8000/".expand("")
"let url = strpart(getline(1),8).expand("")
new
execute "read !editmoin -f ".url
let filename = getline(".")
quit!
execute "edit ".filename
endfunction

map gf :call Moin_EditPage()

endif

ToDo: maybe a stack to navigate forward and backward

2 comentarios:

Publicar un comentario

Suscribirse a Enviar comentarios [Atom]



<< Inicio