Browse Source

Using the same technique of starting abbreviations with ':'

Also, added a new Python abbreviation to create the main function.
master
Julio Biason 4 years ago
parent
commit
0c805169c9
  1. 4
      nvim/init.vim

4
nvim/init.vim

@ -82,7 +82,9 @@ augroup python
au FileType python nmap <silent> <Leader>a :call JumpToAlternate()<CR>
" Shortcut to add pylint disables
au FileType python iab lint # pylint: disable
au FileType python setlocal iskeyword+=: " this is kinda of a "hack" to make abbr accept ":" in them
au FileType python iab :lint # pylint: disable
au FileType python iab :main def main():<CR>""""""<CR><CR><BS>if __name__ == '__main__':<CR>main()<up><up><up><left><left><left>
augroup END
" }}}

Loading…
Cancel
Save