110 lines
1.5 KiB
VimL
110 lines
1.5 KiB
VimL
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
|
|
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>
|
|
|
|
set whichwrap+=<,>,[,]
|
|
|
|
nnoremap <F5> :buffers<CR>:buffer<Space>
|
|
nnoremap U <c-r>
|
|
|
|
highlight WhitespaceEOL ctermbg=Red guibg=Red
|
|
match WhitespaceEOL /\s\+$/
|
|
|
|
noremap! "" ""<left>
|
|
|
|
imap <c-d> <esc>ddi
|
|
|
|
nnoremap <silent> <F5> :normal gg=G<CR>
|
|
inoremap <silent> <F5> <Esc>:normal gg=G<CR>i
|
|
|
|
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 <silent> <A-Up> :wincmd k<CR>
|
|
nmap <silent> <A-Down> :wincmd j<CR>
|
|
nmap <silent> <A-Left> :wincmd h<CR>
|
|
nmap <silent> <A-Right> :wincmd l<CR>
|
|
|
|
set t_Co=256
|