X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vimslides.vim;h=d5949a0e657f85ab3fecc13c876bd47e2c00dcf8;hb=HEAD;hp=faa4c971a6cc7f647bfc09a41d443cf51078a78e;hpb=bf555ed1caebc61d94786561fb01080a202c53f9;p=vimslides.git diff --git a/vimslides.vim b/vimslides.vim index faa4c97..d5949a0 100644 --- a/vimslides.vim +++ b/vimslides.vim @@ -1,10 +1,9 @@ " vimslides -- presenation helper inside Vim -" Copyright (C) 2015-2018 Sergey Matveev +" Copyright (C) 2015-2024 Sergey Matveev " " This program is free software: you can redistribute it and/or modify " it under the terms of the GNU General Public License as published by -" the Free Software Foundation, either version 3 of the License, or -" any later version. +" the Free Software Foundation, version 3 of the License. " " This program is distributed in the hope that it will be useful, " but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -21,13 +20,6 @@ set viminfo= set t_Co=16 -setlocal nocursorline -setlocal colorcolumn=0 -setlocal norelativenumber -setlocal laststatus=0 -setlocal scrolloff=2 -setlocal conceallevel=2 - setlocal shiftwidth=4 setlocal foldmethod=indent setlocal foldnestmax=5 @@ -36,9 +28,9 @@ setlocal foldcolumn=0 setlocal foldlevel=0 highlight clear ExtraWhitespace -syntax region pEmph matchgroup=Ignore start="|\S"rs=s+1 end="\S|"re=e-1 concealends -syntax region pBold matchgroup=Ignore start=":\S"rs=s+1 end="\S:"re=e-1 concealends -syntax region pUndr matchgroup=Ignore start="\s<\S"rs=s+2 end="\S>"re=e-1 concealends +syntax region pEmph start="|\S" end="\S|" +syntax region pBold start=":\S" end="\S:" +syntax region pUndr start="\s<\S" end="\S>" syntax match pItem "^ *\*" syntax match pLine "^-\+$" highlight link pEmph Statement @@ -49,6 +41,5 @@ highlight link pUndr Type nmap ] zMzjzOz0 nmap [ zMzkzO[zz0 -normal zMggzO -nmap i /IMG:/e+2y$:silent execute "!display " . @":nohlsearch +nmap i /IMG:/e+1y$:silent execute "!display " . @":nohlsearch