diff --git a/nvim/init.vim b/nvim/init.vim index 3b7b499..3c48b6e 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -32,3 +32,33 @@ augroup python au FileType python setlocal colorcolumn=80 " put a margin indicator augroup END " }}} + +" Rust {{{ +let g:rustfmt_autosave = 1 +" }}} + +" Markdown {{{ +augroup markdown + " This is a long abbreviation, but: + " Most of it is simply text, with linebreaks (). + " 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 headr +++title = ""date = =strftime('%Y-%m-%d')[taxonomies]tags = [""]+++ + " This abbreviation adds a modeline to set VIM to change the spell + " lang to portuguese. + au FileType markdown iab langpt + + au FileType markdown setlocal spell " enable spell checking + au FileType markdown setlocal textwidth=79 " max line size + au FileType markdown setlocal expandtab " use spaces instead of tabs +augroup END +" }}} + +" Shell {{{ +augroup shell + au FileType sh setlocal tabstop=4 " display tabs as 4 spaces + au FileType sh setlocal shiftwidth=4 " number of spaces to use for auto-indentation + au FileType sh setlocal softtabstop=4 " when deleting characters, consider 4 spaces as a tab +augroup END +" }}} diff --git a/nvim/spell/pt.utf-8.add b/nvim/spell/pt.utf-8.add new file mode 100644 index 0000000..f327779 --- /dev/null +++ b/nvim/spell/pt.utf-8.add @@ -0,0 +1,3 @@ +Movile +MeetUps +MeetUp diff --git a/nvim/spell/pt.utf-8.add.spl b/nvim/spell/pt.utf-8.add.spl new file mode 100644 index 0000000..bd16a64 Binary files /dev/null and b/nvim/spell/pt.utf-8.add.spl differ