1
0
mirror of https://github.com/gryf/.vim.git synced 2026-03-15 07:43:36 +01:00

Moja prawie współczesna konfiguracja. Dużo rzeczy :)

This commit is contained in:
2010-04-11 20:41:45 +02:00
parent 74c5c4085f
commit 63717266b9
173 changed files with 61061 additions and 1933 deletions

View File

@@ -0,0 +1,18 @@
" Author: Mikolaj Machowski
" Example of macro for g:vst_html_post file
call cursor(1,1)
while search('^\s*{read\w\{-}:.\{-}}\s*$', 'W')
let data = matchlist(getline('.'), '^\s*{read\(\w\{-}\):\(.\{-}\)}\s*$')
silent s/.*//ge
if data[1] == ''
let output = readfile(data[2])
else
if data[1] == 'bang'
let data[1] = ''
endif
let output = split(system(data[1].' '.data[2]), "\n")
endif
call map(output, "' '.v:val")
let jout = "<pre>\n".join(output, "\n")."\n</pre>"
put =jout
endwhile