Created
April 16, 2015 15:14
-
-
Save cabrinha/31f1bcdc95daf7b9e6db to your computer and use it in GitHub Desktop.
vim config
This file contains hidden or 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
| "set nu " Enable line numbers | |
| set nocompatible " Use Vim defaults instead of 100% vi compatibility | |
| set backspace=indent,eol,start " make backspace a more flexible | |
| set backup " Make vim write a backup file | |
| " Don't write backup file if vim is being called by "crontab -e" | |
| au BufWrite /private/tmp/crontab.* set nowritebackup | |
| " Don't write backup file if vim is being called by "chpass" | |
| au BufWrite /private/etc/pw.* set nowritebackup | |
| syn on " Syntax highlighting | |
| colorscheme desert " Best colorscheme | |
| "set mouse=a " use mouse everywhere | |
| set listchars=tab:>-,trail:- " show tabs and trailing | |
| "set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] | |
| set matchtime=3 " how many tenths of a second to blink matching brackets for | |
| set nohlsearch " do not highlight searched for phrases | |
| set showmatch " show matching brackets | |
| set ignorecase " case insensitive by default | |
| set softtabstop=4 " when hitting tab or backspace, how many spaces should a tab be (see expandtab) | |
| set tabstop=8 " real tabs should be 8, and they will show with set list on | |
| set list " we do want to show tabs, to ensure we get them out of my files | |
| set modeline | |
| set ls=2 | |
| set statusline=%F%m%r%h%w\ %=\ [%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment