]> Sergey Matveev's repositories - vimslides.git/blobdiff - vimslides.vim
Raise copyright years
[vimslides.git] / vimslides.vim
index ca854e1d5da84e3f877fa33394953361936f9533..d5949a0e657f85ab3fecc13c876bd47e2c00dcf8 100644 (file)
@@ -1,10 +1,9 @@
 " vimslides -- presenation helper inside Vim
-" Copyright (C) 2015 Sergey Matveev <stargrave@stargrave.org>
+" Copyright (C) 2015-2024 Sergey Matveev <stargrave@stargrave.org>
 "
 " 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
 " You should have received a copy of the GNU General Public License
 " along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-setlocal textwidth=72
-setlocal nocursorline
+syntax on
+set encoding=utf-8
+set nocompatible
+set viminfo=
+
+set t_Co=16
+
+setlocal shiftwidth=4
 setlocal foldmethod=indent
+setlocal foldnestmax=5
+setlocal foldenable
 setlocal foldcolumn=0
-setlocal colorcolumn=0
-setlocal conceallevel=0
-setlocal norelativenumber
-setlocal laststatus=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
@@ -37,6 +41,5 @@ highlight link pUndr Type
 
 nmap <leader>] zMzjzOz<CR>0
 nmap <leader>[ zMzkzO[zz<CR>0
-normal zMggzO
 
-nmap <leader>i /IMG:/e+2<CR>y$:silent execute "!display " . @"<CR>:nohlsearch<CR>
+nmap <leader>i /IMG:/e+1<CR>y$:silent execute "!display " . @"<CR>:nohlsearch<CR>