From 0c2c18163b074503b6a00bd7b74d5a183a2fa4fa Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 21 Sep 2020 11:35:39 -0300 Subject: [PATCH] Simplified the abbreviation --- nvim/init.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index ee2548d..8ada420 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -6,7 +6,7 @@ let g:rehash256 = 1 " Functions {{{ " Removes trailing spaces {{{{ function TrimWhiteSpace() - %s/\s+$// + %s/\s\+$// '' endfunction " }}}} @@ -61,7 +61,7 @@ augroup python au FileType python au BufWritePre %s/\s\+$//e " When saving a Python file, remove tailing spaces " Shortcut to add pylint disables - au FileType python iab pylint # pylint: disable + au FileType python iab lint # pylint: disable augroup END " }}}} @@ -103,3 +103,4 @@ augroup shell au FileType sh setlocal softtabstop=4 " when deleting characters, consider 4 spaces as a tab augroup END " }}}} +"