Skip to content

Instantly share code, notes, and snippets.

@CarlosMecha
Created December 22, 2014 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CarlosMecha/03b867906ba879699d1a to your computer and use it in GitHub Desktop.
Save CarlosMecha/03b867906ba879699d1a to your computer and use it in GitHub Desktop.
Common Vim configuration.
runtime! debian.vim
" Splashscreen
set shortmess=I
syntax on
set nu
set smartindent
set softtabstop=4
set shiftwidth=4
set expandtab
set encoding=utf-8
" Always show the status line
set laststatus=2
" Format the status line
set statusline=%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l/%L\ %P
" C++ syntax in *.ino and *.pde files (Arduino)
autocmd BufNewFile,BufReadPost *.ino,*.pde set filetype=cpp
" Markdown syntax in *.md files
autocmd BufNewFile,BufReadPost *.md set filetype=markdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment