mirror of
https://github.com/gryf/.vim.git
synced 2025-12-18 03:50: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user