Browse Source

Simplified the abbreviation

master
Julio Biason 4 years ago
parent
commit
0c2c18163b
  1. 5
      nvim/init.vim

5
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 <buffer> %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
" }}}}
"

Loading…
Cancel
Save