dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0e4cb2282f69b80b577a754dc2ac6e4ae11578da
parent 0ff3f2fbd98e0fef0aadf55b91e572fcacc24de7
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sun, 22 Sep 2019 13:41:35 -0400

vim: updated ftplugins

Former-commit-id: 297e279448a64e5769ea5c3d696be598b41ce0b2
Diffstat:
Mvim/after/ftplugin/c.vim | 4++--
Mvim/after/ftplugin/markdown.vim | 10++++++++--
Mvim/after/ftplugin/tex.vim | 5+++++
Mvim/after/ftplugin/vimcolor.vim | 10++++++++--
Mvim/after/ftplugin/vimwiki.vim | 2++
5 files changed, 25 insertions(+), 6 deletions(-)

diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim @@ -4,7 +4,7 @@ if v:version >= 800 packadd termdebug endif if exists('b:undo_ftplugin') - let b:undo_ftplugin .= '' + let b:undo_ftplugin .= '| nmapc <buffer>' else - let b:undo_ftplugin = '' + let b:undo_ftplugin = 'nmapc <buffer>' endif diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim @@ -6,8 +6,14 @@ inoremap <buffer> ;5 ##### inoremap <buffer> ;6 ###### compiler markdown setlocal wrap +setlocal conceallevel=2 +nnoremap <buffer> <leader><CR> :silent !open "%<.pdf"<CR>:redraw!<CR> if exists('b:undo_ftplugin') - let b:undo_ftplugin .= '|setlocal makeprg< conceallevel< wrap <' + let b:undo_ftplugin .= '| imapc <buffer>' + let b:undo_ftplugin .= '| nmapc <buffer>' + let b:undo_ftplugin .= '| setlocal makeprg< conceallevel< wrap<' else - let b:undo_ftplugin = 'setlocal makeprg< conceallevel< wrap <' + let b:undo_ftplugin = ' imapc <buffer>' + let b:undo_ftplugin = ' nmapc <buffer>' + let b:undo_ftplugin .= '| setlocal makeprg< conceallevel< wrap<' endif diff --git a/vim/after/ftplugin/tex.vim b/vim/after/ftplugin/tex.vim @@ -1 +1,6 @@ nnoremap <buffer> <leader>tt :VimtexTocToggle +if exists('b:undo_ftplugin') + let b:undo_ftplugin .= '|nmapc <buffer>' +else + let b:undo_ftplugin = 'nmapc <buffer>' +endif diff --git a/vim/after/ftplugin/vimcolor.vim b/vim/after/ftplugin/vimcolor.vim @@ -6,7 +6,13 @@ augroup END vmap <buffer> CH <Plug>Colorizer noremap <buffer> CC :ColorClear<CR> if exists('b:undo_ftplugin') - let b:undo_ftplugin .= '|setlocal makeprg< | exe "au! vimcolor_buffer * <buffer>"' + let b:undo_ftplugin .= '|setlocal makeprg< ' + let b:undo_ftplugin .= '|exe "au! vimcolor_buffer * <buffer>"' + let b:undo_ftplugin .= '|vmapc <buffer>' + let b:undo_ftplugin .= '|nmapc <buffer>' else - let b:undo_ftplugin = 'setlocal makeprg< | exe "au! vimcolor_buffer * <buffer>"' + let b:undo_ftplugin = 'setlocal makeprg< ' + let b:undo_ftplugin .= '|exe "au! vimcolor_buffer * <buffer>"' + let b:undo_ftplugin .= '|vmapc <buffer>' + let b:undo_ftplugin .= '|nmapc <buffer>' endif diff --git a/vim/after/ftplugin/vimwiki.vim b/vim/after/ftplugin/vimwiki.vim @@ -2,6 +2,8 @@ setlocal wrap shiftwidth=4 tabstop=4 softtabstop=4 breakindent breakindentopt=sh cabbrev <buffer> table VimwikiTable if exists('b:undo_ftplugin') let b:undo_ftplugin .= '|setlocal wrap< shiftwidth< tabstop< softtabstop< breakindent< breakindentopt<' + let b:undo_ftplugin .= '| cabc <buffer>' else let b:undo_ftplugin = 'setlocal wrap< shiftwidth< tabstop< softtabstop< breakindent< breakindentopt<' + let b:undo_ftplugin .= '| cabc <buffer>' endif