configfiles/vim/.vimrc
2015-10-08 10:18:01 +02:00

118 lines
1.5 KiB
VimL

set nocompatible
" CL History
set history=700
set modelines=0
"Enable filetype plugins
filetype plugin on
filetype indent on
"Set to auto read if file is changed
set autoread
"wildmenu
set wildmenu
set wildignore=*.o,*~,*.pyc
set gdefault
set noruler
set laststatus=2
"set cmdheight=2
set number
set hid
set backspace=eol,start,indent
set ignorecase
set smartcase
set hlsearch
set incsearch
set lazyredraw
set magic
set showmatch
set mat=2
set noerrorbells
set novisualbell
set t_vb=
set tm=500
syntax enable
colorscheme desert
set encoding=utf8
set ffs=unix,dos,mac
set nobackup
set nowb
set noswapfile
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set lbr
set tw=500
set ai "auto indent
set si "smart indent
set wrap "wrap lines
let mapleader = ","
" Make double-<Esc> clear search highlights
" nnoremap <silent> <Esc><Esc> :nohlsearch<CR>
nnoremap <silent> <leader><space> :noh<cr>
inoremap <F1> <nop>
nnoremap <F1> <nop>
vnoremap <F1> <nop>
nnoremap q <nop>
nnoremap / /\v
vnoremap / /\v
nnoremap <leader>w <C-w>v<C-w>l
set whichwrap+=<,>,[,]
" nnoremap <F5> :buffers<CR>:buffer<Space>
nnoremap U <c-r>
highlight WhitespaceEOL ctermbg=Red guibg=Red
match WhitespaceEOL /\s\+$/
nnoremap <silent> <leader>f :normal gg=G<CR>
set statusline=%m
set statusline+=\ %f
set statusline+=%=
set statusline+=%l
set statusline+=\ %c
hi StatusLine cterm=italic ctermfg=blue
hi Search cterm=NONE ctermbg=yellow ctermfg=black
hi IncSearch cterm=None ctermbg=yellow ctermfg=black
set t_Co=256