2010-01-28 20:27:08 +01:00
|
|
|
set nu
|
|
|
|
set ts=4
|
2013-01-24 10:14:26 +01:00
|
|
|
set expandtab
|
2010-01-28 20:27:08 +01:00
|
|
|
set sw=4
|
|
|
|
set bs=2
|
2013-05-02 20:45:06 +02:00
|
|
|
set bg=dark
|
2015-11-02 06:16:55 +01:00
|
|
|
set incsearch
|
2010-01-28 20:27:08 +01:00
|
|
|
set paste
|
2013-05-07 11:17:26 +02:00
|
|
|
set wildmode=longest,list " change filename autocomplete to be more like bash
|
2010-01-28 20:27:08 +01:00
|
|
|
set mouse=v " some vim defaults to mouse=a, which sucks for copying and pasting in Xorg
|
|
|
|
syntax on
|
2014-10-11 18:25:05 +02:00
|
|
|
filetype on " enable file type detection
|
|
|
|
filetype plugin on " enable file type plugins
|
|
|
|
filetype indent on " enable file type indents
|
2013-04-21 15:45:32 +02:00
|
|
|
|
|
|
|
colorscheme solarized
|
2016-10-31 12:26:12 +01:00
|
|
|
|
|
|
|
" for per-directory vimrc files
|
|
|
|
" see: https://jezenthomas.com/how-i-write-invoices-in-vim/
|
|
|
|
set exrc " Enable use of directory-specific .vimrc
|
|
|
|
set secure " Only run autocommands owned by me
|
2016-10-31 12:38:56 +01:00
|
|
|
|
|
|
|
" from: https://github.com/jfrazelle/.vim/blob/master/vimrc
|
|
|
|
set noswapfile " Don't use swapfile
|
|
|
|
set nobackup " Don't create annoying backup files
|
|
|
|
set nowritebackup
|
|
|
|
set splitright " Split vertical windows right to the current windows
|
|
|
|
set splitbelow " Split horizontal windows below to the current windows
|
|
|
|
set encoding=utf-8 " Set default encoding to UTF-8
|
|
|
|
|
|
|
|
set fileformats=unix,dos,mac " Prefer Unix over Windows over OS 9 formats
|
|
|
|
|
|
|
|
set nocompatible
|
|
|
|
set incsearch " Shows the match while typing
|
|
|
|
set hlsearch " Highlight found searches
|
|
|
|
set ignorecase " Search case insensitive...
|
|
|
|
set smartcase " ... but not when search pattern contains upper case characters
|
|
|
|
|
|
|
|
" speed up syntax highlighting
|
|
|
|
set nocursorcolumn
|
|
|
|
set nocursorline
|