From 5dc678deaf173855862b615a3ef8ee48d840e549 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Thu, 5 Nov 2020 13:30:41 -0300 Subject: [PATCH] Better abbreviations --- nvim/init.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index 99cef5a..217c0f8 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -88,7 +88,7 @@ au FileType python nmap a :call JumpToAlternate() " Shortcut to add pylint disables au FileType python iab lint # pylint: disable -" au FileType python iab defmain def main():""""""if __name__ == '__main__':main() +au FileType python iab defmain def main():""""""if __name__ == '__main__':main() " }}} " CSV files {{{ @@ -115,7 +115,7 @@ au FileType markdown setlocal iskeyword+=: " this is kinda of a "hack" to make a " There is one thing to take care, though: is NOT . " will call the function (strftime), which will insert the current " date. -au FileType markdown iab :header +++title = ""date = =strftime('%Y-%m-%d')[taxonomies]tags = [""]+++ +au FileType markdown iab :header +++title = ""date = =strftime('%Y-%m-%d')[taxonomies]tags = [""]+++5k6l " This abbreviation adds a modeline to set VIM to change the spell " lang to portuguese. au FileType markdown iab :pt