configfiles/vimrc

101 lines
1.3 KiB
VimL
Raw Normal View History

2015-05-29 20:48:20 +02:00
set nocompatible
" CL History
set history=700
"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 noruler
set laststatus=2
"set cmdheight=2
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
set number
" Make double-<Esc> clear search highlights
2015-06-26 08:44:55 +02:00
nnoremap <silent> <Esc><Esc> :nohlsearch<CR>
2015-05-29 20:48:20 +02:00
set whichwrap+=<,>,[,]
2015-06-26 08:44:55 +02:00
" nnoremap <F5> :buffers<CR>:buffer<Space>
2015-05-29 20:48:20 +02:00
nnoremap U <c-r>
highlight WhitespaceEOL ctermbg=Red guibg=Red
match WhitespaceEOL /\s\+$/
nnoremap <silent> <F5> :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