From 3c19385c22d98309063035092f346b86962e2d6d Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Fri, 29 May 2015 20:48:20 +0200 Subject: [PATCH] vim added --- vimrc | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 vimrc diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..f14cc51 --- /dev/null +++ b/vimrc @@ -0,0 +1,110 @@ +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- clear search highlights +nnoremap :nohlsearch + +set whichwrap+=<,>,[,] + +nnoremap :buffers:buffer +nnoremap U + +highlight WhitespaceEOL ctermbg=Red guibg=Red +match WhitespaceEOL /\s\+$/ + +noremap! "" "" + +imap ddi + +nnoremap :normal gg=G +inoremap :normal gg=Gi + +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 + +nmap :wincmd k +nmap :wincmd j +nmap :wincmd h +nmap :wincmd l + +set t_Co=256