82cebdd3733de93028bda6c87488c8094b3690d6 — ashn 3 months ago a9c4aeb
Update .vimrc
1 files changed, 9 insertions(+), 0 deletions(-)

M dotfiles/.vimrc
M dotfiles/.vimrc => dotfiles/.vimrc +9 -0
@@ 20,6 20,10 @@ set nowrap
set nospell
" Do not insert two spaces after a period when joining separate lines with gq.
set nojoinspaces
" Use a 80 columns when formatting text with gq.
" Execute `set tw=72` when composing an email.
" Execute `set tw=79` when working with Python code.
set textwidth=80
" Highlight matching parentheses, braces, and brackets by default.
set showmatch
" Show an 81 column magenta colorcolumn by default.

@@ 65,6 69,11 @@ autocmd BufNewFile,BufRead *.ts setlocal syntax=javascript ts=2 sw=2 expandtab
" Markdown style preferences.
autocmd BufNewFile,BufRead *.md setlocal ts=2 sw=2 expandtab

" C indent options.
" l1 => Aligns the closing brace of a `case VALUE: {` block with the case
"       label instead of the opening `{`.
set cinoptions=l1

" Linux Kernel style preferences.
function s:SetLinuxKernelStyleConfig()
    setlocal tabstop=8