aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-08 13:50:33 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-08 13:50:33 +1300
commit6552de5accb651a5c0436bb77e97cffd93c6a72b (patch)
treefdc8508cc1bac3a0ce203b4220038d90dcc69c82
parentf855ec0a7e76223d318ee4f0924d131643133e78 (diff)
downloaddotfiles-6552de5accb651a5c0436bb77e97cffd93c6a72b.tar.gz
Remove null command from b:undo_* variables
I didn't realise that a null command at the front of .e.g '|cmd|cmd2' printed the current line! Removed that.
-rw-r--r--vim/ftplugin/html.vim4
-rw-r--r--vim/ftplugin/perl.vim4
-rw-r--r--vim/ftplugin/sh.vim4
3 files changed, 6 insertions, 6 deletions
diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim
index 27b38424..d2c6a3e3 100644
--- a/vim/ftplugin/html.vim
+++ b/vim/ftplugin/html.vim
@@ -30,7 +30,7 @@ nnoremap <buffer> <silent>
\ :<C-U>call <SID>UrlLink()<CR>
" Unload this filetype plugin
-let b:undo_user_ftplugin = ''
- \ . '|silent! nunmap <LocalLeader>c'
+let b:undo_user_ftplugin
+ \ = 'silent! nunmap <LocalLeader>c'
\ . '|silent! nunmap <LocalLeader>t'
\ . '|silent! nunmap <LocalLeader>r'
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index 7f6eb7fe..0db8d1ab 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -14,7 +14,7 @@ nnoremap <buffer> <silent>
\ :<C-U>%!perltidy<CR>
" Unload this filetype plugin
-let l:undo_user_ftplugin = ''
- \ . '|silent! unmap <LocalLeader>c'
+let l:undo_user_ftplugin
+ \ = 'silent! unmap <LocalLeader>c'
\ . '|silent! unmap <LocalLeader>l'
\ . '|silent! unmap <LocalLeader>t'
diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim
index a8c94445..61d2994d 100644
--- a/vim/ftplugin/sh.vim
+++ b/vim/ftplugin/sh.vim
@@ -46,8 +46,8 @@ nnoremap <buffer> <silent>
\ :<C-U>execute b:sh_lint<CR>
" Unload this filetype plugin
-let b:undo_user_ftplugin = ''
- \ . '|setlocal keywordprg<'
+let b:undo_user_ftplugin
+ \ = 'setlocal keywordprg<'
\ . '|unlet! b:sh_check b:sh_lint'
\ . '|silent! unmap <LocalLeader>c'
\ . '|silent! unmap <LocalLeader>l'