Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
minimum-vimrc/vimrc
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
47 lines (38 sloc)
1.21 KB
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"""" Minimal VIM rc file | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" enable syntax highlighting | |
syntax on | |
" set nocompatible in case you open "vi" and things go *wild* (like arrow gives you letters) | |
set nocompatible | |
" set (absolute) numbering | |
set number | |
" to show relative numbering: set relativenumber | |
" if you enable both, it will show absolute number on current line, and relative elsewhere | |
" enable your mouse | |
set mouse=a " to disable, run: set mouse= | |
" show modes (insert, visual, ...) | |
set showmode | |
" indentation | |
set smartindent autoindent | |
" tabs | |
"" use spaces instead of tabs | |
set expandtab | |
"" set indent size to 4 | |
set tabstop=4 shiftwidth=4 | |
" search | |
"" highlight search | |
set hlsearch | |
"" show search items as you type | |
set incsearch | |
"" ignore case in search; overridden if contains capital | |
set ignorecase smartcase | |
" show title | |
set title | |
" Makefile nitpicking | |
"" Makefile does not accept any spaces as indentation, so forcing tab for that | |
augroup makefile | |
" clear previous autocmds under this group | |
autocmd! | |
autocmd FileType make set noexpandtab | |
augroup end |