configfiles/vim/.vimrc

126 lines
1.7 KiB
VimL
Raw Normal View History

2015-05-29 20:48:20 +02:00
set nocompatible
" CL History
set history=700
2015-07-10 17:49:49 +02:00
set modelines=0
2015-05-29 20:48:20 +02:00
"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
2015-07-10 17:49:49 +02:00
set gdefault
2015-05-29 20:48:20 +02:00
set noruler
set laststatus=2
"set cmdheight=2
2015-07-10 17:49:49 +02:00
set number
2015-05-29 20:48:20 +02:00
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
2015-07-10 17:49:49 +02:00
let mapleader = ","
2015-05-29 20:48:20 +02:00
" Make double-<Esc> clear search highlights
2015-07-10 17:49:49 +02:00
" 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
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\+$/
2015-07-10 17:49:49 +02:00
nnoremap <silent> <leader>f :normal gg=G<CR>
2015-05-29 20:48:20 +02:00
set statusline=%m
set statusline+=\ %f
set statusline+=%=
set statusline+=%l
set statusline+=\ %c
2015-10-15 20:48:01 +02:00
hi StatusLine cterm=None ctermfg=green ctermbg=none
2015-05-29 20:48:20 +02:00
hi Search cterm=NONE ctermbg=yellow ctermfg=black
hi IncSearch cterm=None ctermbg=yellow ctermfg=black
set t_Co=256
2015-10-15 22:38:56 +02:00
"Supertab
2015-10-15 22:41:17 +02:00
hi Pmenu ctermfg=green ctermbg=black
hi PmenuSel ctermfg=white ctermbg=black
hi PmenuSbar ctermfg=white ctermbg=black cterm=none
2015-10-15 22:38:56 +02:00
2015-10-15 22:41:17 +02:00
let g:SuperTabNoCompleteAfter = ['^',',','\s']