Browse Source

Better abbreviations

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

4
nvim/init.vim

@ -88,7 +88,7 @@ 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 iab defmain def main():<CR>""""""<CR><CR><BS>if __name__ == '__main__':<CR>main()<up><up><up><left><left><left>
au FileType python iab defmain def main():<CR>""""""<CR><CR><BS>if __name__ == '__main__':<CR>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: <CR> is NOT <C-R>.
" <C-R> will call the function (strftime), which will insert the current
" date.
au FileType markdown iab <silent> :header +++<CR>title = ""<CR>date = <C-R>=strftime('%Y-%m-%d')<CR><CR><CR>[taxonomies]<CR>tags = [""]<CR>+++
au FileType markdown iab <silent> :header +++<CR>title = ""<CR>date = <C-R>=strftime('%Y-%m-%d')<CR><CR><CR>[taxonomies]<CR>tags = [""]<CR>+++<C-O>5k<C-O>6l
" This abbreviation adds a modeline to set VIM to change the spell
" lang to portuguese.
au FileType markdown iab :pt <!--<CR>vim:spelllang=pt:<CR>-->

Loading…
Cancel
Save