|
|
@ -88,7 +88,7 @@ au FileType python nmap <silent> <Leader>a :call JumpToAlternate()<CR> |
|
|
|
|
|
|
|
|
|
|
|
" Shortcut to add pylint disables |
|
|
|
" Shortcut to add pylint disables |
|
|
|
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 defmain def main():<CR>""""""<CR><CR><BS>if __name__ == '__main__':<CR>main() |
|
|
|
" }}} |
|
|
|
" }}} |
|
|
|
|
|
|
|
|
|
|
|
" CSV files {{{ |
|
|
|
" 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>. |
|
|
|
" 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 |
|
|
|
" <C-R> will call the function (strftime), which will insert the current |
|
|
|
" date. |
|
|
|
" 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 |
|
|
|
" This abbreviation adds a modeline to set VIM to change the spell |
|
|
|
" lang to portuguese. |
|
|
|
" lang to portuguese. |
|
|
|
au FileType markdown iab :pt <!--<CR>vim:spelllang=pt:<CR>--> |
|
|
|
au FileType markdown iab :pt <!--<CR>vim:spelllang=pt:<CR>--> |
|
|
|