From 9a72c97413d643a80643e69d6e42e8e20bf886a3 Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Fri, 2 Feb 2018 15:16:36 +0100 Subject: [PATCH] space after comments --- ftplugin/c.vim | 6 ++---- ftplugin/python.vim | 4 ++-- ftplugin/vim.vim | 9 +++++---- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ftplugin/c.vim b/ftplugin/c.vim index 90e75e5..8c3a5cd 100644 --- a/ftplugin/c.vim +++ b/ftplugin/c.vim @@ -1,11 +1,9 @@ iabbrev prn printf("\n"); -iabbrev im(a) int main(int argc, const char** argv) -iabbrev maw #pragma message("malloc warning!") nnoremap fb ][% nnoremap fe ][ -nnoremap c mcI//`c:delm c +nnoremap c mcI//`c:delm c vnoremap c `>o*/` -nnoremap xc mx^xx`x:delm x +nnoremap xc mx?//xxx`x:noh:delm x nnoremap xb mx?\/\*dd/\*\/dd`x:noh:delm x setlocal foldmethod=syntax foldlevel=99 diff --git a/ftplugin/python.vim b/ftplugin/python.vim index 34f5c1c..fd88881 100644 --- a/ftplugin/python.vim +++ b/ftplugin/python.vim @@ -1,5 +1,5 @@ -nnoremap c mcI#`c:delm x +nnoremap c mcI#`c:delm x vnoremap c `>o"""` nnoremap xb mx?"""dd/"""dd`x:noh:delm x -nnoremap xc mx?#x`x:noh:delm x +nnoremap xc mx?#xx`x:noh:delm x diff --git a/ftplugin/vim.vim b/ftplugin/vim.vim index b27bff4..476a51f 100644 --- a/ftplugin/vim.vim +++ b/ftplugin/vim.vim @@ -1,5 +1,6 @@ setlocal foldmethod=marker foldlevel=0 -nnoremap c mcI"`c:delm c -vnoremap f `>o"}}}` -nnoremap xf mx?"{{{dd/"}}}dd`x:noh:delm x -nnoremap xc mx^x`x +nnoremap c mcI"`c:delm c +vnoremap c `>o"}}}` +nnoremap xb + \ mx?^"{{{dd/^"}}}dd`x:noh:delm x +nnoremap xc mx?"xx`x:noh:delm x