1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-18 12:00:30 +01:00

Changed default taglist plugin mapping, added shortcut and command for open html generated files for reStructuredText filetypes

This commit is contained in:
2015-05-25 17:55:33 +02:00
parent 0ad2727e21
commit 17463ca807
2 changed files with 22 additions and 4 deletions

View File

@@ -4,4 +4,19 @@ setlocal makeprg=rst2html.py\ \"%\"\ \"%:p:r.html\"
setlocal spell
setlocal smartindent
setlocal autoindent
setlocal formatoptions=tcq "set VIms default
setlocal formatoptions=tcq "set VIms default
function <SID>ShowInBrowser()
let l:uri = expand("%:p:r") . ".html"
silent make
call system(g:browser . " " . l:uri)
echohl Statement
echo "Opened '" . l:uri ."' in " . g:browser
echohl None
endfunction
if !exists(":ShowInBrowser")
command ShowInBrowser call s:ShowInBrowser()
map <S-F5> :ShowInBrowser<CR>
endif