vimrc: add some stuff for formatting markdown better
parent
1f289b7571
commit
56c8425612
18
vim/vimrc
18
vim/vimrc
|
@ -36,7 +36,17 @@ set showbreak=
|
|||
set virtualedit=onemore
|
||||
set backspace=indent,eol,start
|
||||
set textwidth=80
|
||||
set comments=s0:/*!,m:\ ,ex:*/,s1:/*,mb:*,ex:*/,:///,://!,://
|
||||
set comments=s0:/*!
|
||||
set comments+=mb:*
|
||||
set comments+=ex:*/
|
||||
set comments+=s1:/*
|
||||
set comments+=mb:*
|
||||
set comments+=ex:*/
|
||||
set comments+=:///
|
||||
set comments+=://!
|
||||
set comments+=://
|
||||
set comments+=b:#
|
||||
set comments+=b:%
|
||||
set formatoptions=tcrqnolj
|
||||
set nojoinspaces
|
||||
let mapleader="\<Tab>"
|
||||
|
@ -237,6 +247,9 @@ au FileType c,cpp,cs,java,php,ruby,rust,python,go,zscript,markdown au BufWritePr
|
|||
" Enable rainbow braces
|
||||
au FileType c,cpp,cs,java,php,ruby,rust,python,go,zscript,html,scheme,racket,lisp au BufEnter <buffer> RainbowToggleOn
|
||||
|
||||
" markdown sucks
|
||||
au FileType markdown set comments+=fb:- comments-=b:- indentexpr=
|
||||
|
||||
" ASM options
|
||||
au BufNewFile,BufRead *.s,*.inc setlocal shiftwidth=8 filetype=asm_ca65
|
||||
|
||||
|
@ -389,6 +402,9 @@ nn Kk :Gr<Space>
|
|||
" quick lambda
|
||||
nn <Leader>l iλ<Esc>
|
||||
|
||||
" auto format
|
||||
nn Q gqap
|
||||
|
||||
" Rainbow Config -------------------------------------------------------------|
|
||||
|
||||
let g:rainbow_conf = {
|
||||
|
|
Loading…
Reference in New Issue