Browse Source

Can't mark as keyword, 'cause it fucks with

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

5
nvim/init.vim

@ -82,9 +82,8 @@ augroup python
au FileType python nmap <silent> <Leader>a :call JumpToAlternate()<CR> au FileType python nmap <silent> <Leader>a :call JumpToAlternate()<CR>
" Shortcut to add pylint disables " Shortcut to add pylint disables
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 :lint # pylint: disable au FileType python iab defmain def main():<CR>""""""<CR><CR><BS>if __name__ == '__main__':<CR>main()<up><up><up><left><left><left>
au FileType python iab :main def main():<CR>""""""<CR><CR><BS>if __name__ == '__main__':<CR>main()<up><up><up><left><left><left>
augroup END augroup END
" }}} " }}}

Loading…
Cancel
Save