From 0c805169c9f6d6d1d7ee76138c7cdec5d658b6d1 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Wed, 7 Oct 2020 17:54:28 -0300 Subject: [PATCH] Using the same technique of starting abbreviations with ':' Also, added a new Python abbreviation to create the main function. --- nvim/init.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index 14b484f..49146a0 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -82,7 +82,9 @@ augroup python au FileType python nmap a :call JumpToAlternate() " 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():""""""if __name__ == '__main__':main() augroup END " }}}