You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
1.5 KiB
VimL
101 lines
1.5 KiB
VimL
" get out of VI's compatible mode..
|
|
set nocompatible
|
|
|
|
" sets how many lines of history VIM has to remember
|
|
set history=400
|
|
|
|
" set to auto read when a file is changed from the outside
|
|
set autoread
|
|
|
|
" have the mouse enabled all the time:
|
|
set mouse=a
|
|
|
|
" show cursor position
|
|
set ruler
|
|
|
|
" the commandbar is 1 high
|
|
set cmdheight=1
|
|
|
|
" set backspace
|
|
set backspace=eol,start,indent
|
|
|
|
" backspace and cursor keys wrap to
|
|
"set whichwrap+=<,>,h,l
|
|
|
|
" ignore case when searching
|
|
set ignorecase
|
|
set incsearch
|
|
|
|
" set magic on
|
|
set magic
|
|
|
|
" allow highlighting search words
|
|
set hlsearch
|
|
|
|
" tab size is 4 spaces
|
|
set ts=4
|
|
|
|
" indent is 4 spaces
|
|
set shiftwidth=4
|
|
|
|
set expandtab
|
|
|
|
" default font
|
|
set guifont=DejaVu\ Sans\ Mono\ 9
|
|
|
|
" show line numbers
|
|
set number
|
|
set relativenumber
|
|
|
|
" automatically indent on line break
|
|
set autoindent
|
|
|
|
" automatically fold on indents
|
|
" set foldmethod=indent
|
|
|
|
" set colors to 256 for terminal VIM
|
|
set t_Co=256
|
|
|
|
" dark background
|
|
set background=dark
|
|
|
|
" nyummy wombat colours
|
|
colorscheme wombat
|
|
|
|
" enable plugins
|
|
filetype plugin on
|
|
|
|
" highlight syntax
|
|
syntax on
|
|
|
|
" allow a 7-line verticle buffer for the cursor
|
|
set so=7
|
|
|
|
" turn backup off
|
|
set nobackup
|
|
set nowb
|
|
set noswapfile
|
|
|
|
" auto indent
|
|
set ai
|
|
|
|
" smart indet
|
|
set si
|
|
|
|
" wrap lines
|
|
set wrap
|
|
|
|
" break wrap at words
|
|
set lbr
|
|
|
|
" clipboard for mac OSX
|
|
" set clipboard=unnamed
|
|
|
|
"map <D-c> :w !pbcopy<CR><CR>
|
|
"map <D-v> :r !pbpaste<CR>
|
|
"vmap <C-c> y:call system("pbcopy", getreg("\""))<CR>
|
|
|
|
" show whitespace
|
|
":set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:␣
|
|
":set list
|