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 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
|
|
|
|
2015-10-25 19:42:03 +01:00
|
|
|
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>
|
2015-10-26 11:58:41 +01:00
|
|
|
nnoremap <leader>w <C-w>v<C-w>l
|
|
|
|
|
|
|
|
nmap <Esc><left> :tabp<cr>
|
|
|
|
nmap <Esc><right> :tabn<cr>
|
2015-10-27 00:47:13 +01:00
|
|
|
nmap f /
|
|
|
|
nmap F ?
|
2015-07-10 17:49:49 +02:00
|
|
|
|
|
|
|
inoremap <F1> <nop>
|
|
|
|
nnoremap <F1> <nop>
|
|
|
|
vnoremap <F1> <nop>
|
|
|
|
|
2015-10-26 11:58:41 +01:00
|
|
|
nnoremap q: <nop>
|
|
|
|
|
2015-10-25 19:42:03 +01:00
|
|
|
ino <down> <Nop>
|
|
|
|
ino <up> <Nop>
|
|
|
|
ino <left> <Nop>
|
|
|
|
ino <right> <Nop>
|
2015-07-10 17:49:49 +02:00
|
|
|
|
2015-10-27 00:47:13 +01:00
|
|
|
nnoremap / /\V
|
|
|
|
vnoremap / /\V
|
|
|
|
nnoremap ? ?\V
|
|
|
|
vnoremap ? ?\V
|
2015-07-10 17:49:49 +02:00
|
|
|
|
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\+$/
|
|
|
|
|
|
|
|
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-10-27 00:47:13 +01:00
|
|
|
hi Search cterm=NONE
|
|
|
|
hi IncSearch cterm=underline ctermbg=none ctermfg=green
|
2015-05-29 20:48:20 +02:00
|
|
|
|
|
|
|
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']
|