diff options
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 74 |
1 files changed, 74 insertions, 0 deletions
@@ -0,0 +1,74 @@ +" settings +set nocp +set encoding=utf-8 +set fileencoding=utf-8 +set hidden +set number +set nowrap +set autoindent +set showmatch +set showmode +set lazyredraw +set mouse=a +set backspace=2 +set laststatus=2 +set t_Co=256 + +" filetype +filetype on +filetype plugin on +filetype plugin indent on + +" syntax +syntax on + +" colorscheme +set background=dark +colorscheme desert + +" cursorline +set cursorline +hi CursorLine term=bold cterm=bold guibg=Grey20 + +" statusline +set statusline=\ +set statusline+=[%n]\ +set statusline+=%<%F\ +set statusline+=%w%h%m%r\ +set statusline+=%=%{&fileencoding?&fileencoding:&encoding}\ \ +set statusline+=%{&ff}\ \ +set statusline+=%y\ \ +set statusline+=%p%%\ \ +set statusline+=%(%l:%c%)\ + +" tabs +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set shiftround +set expandtab + +" show trailing, tabs etc. +set list +set listchars=trail:·,tab:!· + +" case insensitive search +set hlsearch +set incsearch +set ignorecase +set smartcase + +" disable backup and swap files +set nobackup +set nowritebackup +set noswapfile + +" GUI +if has('gui_running') + set go-=r + set go-=R + set go-=T + set go-=L + set t_Co=256 + set guiheadroom=0 +endif |
