132 lines
1.9 KiB
VimL
132 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 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 <leader>a :Tabularize /
|
|
vnoremap <leader>a :'<,'>Tabularize /
|
|
nnoremap <leader>w <C-w>v<C-w>l
|
|
|
|
nmap <Esc><left> :tabp<cr>
|
|
nmap <Esc><right> :tabn<cr>
|
|
nmap f /
|
|
nmap F ?
|
|
|
|
inoremap <F1> <nop>
|
|
nnoremap <F1> <nop>
|
|
vnoremap <F1> <nop>
|
|
|
|
nnoremap q: <nop>
|
|
|
|
ino <down> <Nop>
|
|
ino <up> <Nop>
|
|
ino <left> <Nop>
|
|
ino <right> <Nop>
|
|
|
|
nnoremap / /\V
|
|
vnoremap / /\V
|
|
nnoremap ? ?\V
|
|
vnoremap ? ?\V
|
|
|
|
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
|
|
hi IncSearch cterm=underline ctermbg=none ctermfg=green
|
|
|
|
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']
|