summaryrefslogtreecommitdiff
path: root/etc/NetworkManager/dispatcher.d/90-sbar
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-02-20 18:01:06 -0800
committerxyz <gky44px1999@gmail.com>2022-02-20 18:01:06 -0800
commit89393753a0a6e2784b762d73877aa9d36b88f2e5 (patch)
tree2c744b5661f6bc16822d55a7b26282593e3afb9c /etc/NetworkManager/dispatcher.d/90-sbar
parent75bc1a0a6e22f6a408bfc9402d992ce8665e728d (diff)
meta
Diffstat (limited to 'etc/NetworkManager/dispatcher.d/90-sbar')
0 files changed, 0 insertions, 0 deletions
unsilent echom ":w to rewrite as utf-8" return l:fenc_bef else return &fileencoding endif endfunction function! Md_toggle_fold() abort " &markdown_folding won't work because markdown_folding is not an option " two ways to check if g:markdown_folding variable exists and is true: " more see https://stackoverflow.com/q/15864164/9008720 "if exists('g:markdown_folding') && g:markdown_folding if get(g:, 'markdown_folding') let g:markdown_folding=0 " :e e else let g:markdown_folding=1 e endif endfunction " not fully understood augroup, recommanded in :help " https://www.youtube.com/watch?v=dBBUOO1PRIU augroup mycmd autocmd! " Disable auto line break (tc) and insert comment (cro). Also add m and M " to wrap Chinese sentences when using gq, more see :h fo-table. I learned " it from: https://www.reddit.com/r/vim/comments/5k7fxg/comment/dbmngin/. " The url use formatoptions+=mM but I choose to add one flag at a time " because it is suggested in :h add-options-flags. autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o formatoptions-=t formatoptions+=m formatoptions+=M " auto rewrite as utf-8 if not when :w " if use FileType *, nvim can't recognize some file extensions, ex: .csv autocmd BufRead * let fenc_bef = Autocmd_set_fenc() " similar to filetype.vim code, use setfiletype " .csx seems not c# but c# script file, this works tho " set syntax=cs also works autocmd BufNewFile,BufRead *.csx setfiletype cs " https://stackoverflow.com/q/28310094 multi filetypes " for alerting me plain text email characters per line " neomutt auto set new email filetype as mail so this will work " /usr/share/nvim/runtime/ftplugin/mail.vim default textwidth 72