configfiles/vim/.vimrc
2015-10-25 19:42:03 +01:00

129 lines
1.9 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 = ","
nnoremap <silent> <leader><space> :noh<cr>
nnoremap <silent> <leader>c :%s/\s\+$//e<cr>
nnoremap <silent> <leader>v :%s/\n\{3,}/\r\r/e<cr>
nnoremap <silent> <leader>p :set invpaste paste?<cr>
nnoremap <silent> <leader>a= :Tabularise /=<cr>
vnoremap <silent> <leader>a= :'<,'>Tabularize /=<cr>
inoremap <F1> <nop>
nnoremap <F1> <nop>
vnoremap <F1> <nop>
ino <down> <Nop>
ino <up> <Nop>
ino <left> <Nop>
ino <right> <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\+$/
set statusline=%m
set statusline+=\ %f
set statusline+=%=
set statusline+=%l
set statusline+=\ %c
hi StatusLine cterm=None ctermfg=green ctermbg=none
hi Search cterm=NONE ctermbg=yellow ctermfg=black
hi IncSearch cterm=None ctermbg=yellow ctermfg=black
set t_Co=256
"Supertab
hi Pmenu ctermfg=green ctermbg=black
hi PmenuSel ctermfg=white ctermbg=black
hi PmenuSbar ctermfg=white ctermbg=black cterm=none
let g:SuperTabNoCompleteAfter = ['^',',','\s']