Skip to content

Instantly share code, notes, and snippets.

@sangdongvan
Created October 14, 2015 08:29
Show Gist options
  • Save sangdongvan/221b6e49c76577c1d5de to your computer and use it in GitHub Desktop.
Save sangdongvan/221b6e49c76577c1d5de to your computer and use it in GitHub Desktop.
vimrc formatting
" Formatting {
set showbreak=>\ \ \ " Long line wrap beginning of new line
set nowrap " Don't wrap long lines
set smartindent " Indent at the same level of the previous line
set shiftwidth=4 " Use indents of 4 spaces
set expandtab " Tabs are spaces, not tabs
set tabstop=4 " An indentation every four columns
set softtabstop=4 " Let backspace delete indent
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
set splitright " Puts new vsplit windows to the right of the current
set splitbelow " Puts new split windows to the bottom of the current
set matchpairs+=<:> " Match, to be used with %
set pastetoggle=<F12> " pastetoggle (sane indentation on pastes)
set spelllang=en_us,fr
set columns=80
set textwidth=80
set wrapmargin=2
"set colorcolumn=+1
"highlight ColorColumn ctermbg=darkgray
" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment