Created
March 8, 2017 19:08
-
-
Save gauthierm/88c931a3a0af5a2b8078a7ae4192c4dc to your computer and use it in GitHub Desktop.
.vimrc 2017
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" use vim extensions | |
set nocompatible | |
" syntax highlighting | |
syntax on | |
" user-friendly backspace | |
set backspace=indent,eol,start | |
" show command on last line of screen | |
set showcmd | |
" highlight matching brackets/braces | |
set showmatch | |
" show mode (insert, replace) | |
set showmode | |
" assume fast terminal | |
set ttyfast | |
" don't show titlebar | |
set notitle | |
" show line number and column position | |
set ruler | |
" don't wrap lines | |
set nowrap | |
" set default tab size and shift width | |
set ts=4 | |
set sw=4 | |
" use autoindent | |
set autoindent | |
set smartindent | |
" highlight search matches | |
set hlsearch | |
" set folding method | |
set fdm=marker | |
" allow parsing modelines from first 100 lines of buffer | |
set modeline | |
set modelines=100 | |
" default buffer encoding | |
set encoding=utf-8 | |
" highlight trailing whitespace | |
highlight WhiteSpaceEol ctermbg=darkgreen guibg=lightgreen ctermfg=darkblue | |
let MatchWhiteSpace = matchadd("WhiteSpaceEol", '\s\+$') | |
" highlight characters over column 80 | |
" let MatchRightMargin = matchadd("Error", '\%>80v.\+') | |
" show whitespace characters | |
set listchars=tab:‐\ ,trail:·,nbsp:· | |
set list | |
" bash-like tab-completion for file dialogs | |
set wildmode=longest,list | |
set wildmenu | |
" JSON and LESS syntax support | |
au BufRead,BufNewFile *.less setfiletype css | |
au BufRead,BufNewFile *.json setfiletype javascript | |
" Vundle support | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'editorconfig/editorconfig-vim' | |
call vundle#end() " required | |
filetype plugin indent on " required |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment