43 lines
942 B
VimL
43 lines
942 B
VimL
" filetype + highlighting
|
|
filetype on
|
|
filetype plugin on
|
|
filetype indent on
|
|
syntax on
|
|
set number
|
|
set cursorline
|
|
set cursorcolumn
|
|
|
|
" wildmenu
|
|
set wildmenu
|
|
set wildmode=list:longest
|
|
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
|
|
|
|
" plugins
|
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
|
endif
|
|
|
|
call plug#begin()
|
|
Plug 'morhetz/gruvbox'
|
|
Plug 'vim-airline/vim-airline'
|
|
call plug#end()
|
|
|
|
" colours
|
|
colorscheme gruvbox
|
|
set bg=dark
|
|
set termguicolors
|
|
|
|
" backspace fix on windows
|
|
set nocompatible
|
|
set backspace=indent,eol,start
|
|
|
|
" wrap text and split on words
|
|
set wrap
|
|
set linebreak
|
|
set nolist
|
|
|
|
" don't show mode as it is shown in airline
|
|
set noshowmode
|