Update .vimrc
parent
508298d4ab
commit
59a46a9f1b
@ -1,99 +1,54 @@
|
|||||||
scriptencoding utf-8
|
" Requires git and https://github.com/junegunn/vim-plug
|
||||||
set encoding=utf-8
|
" Run :PlugInstall on set up
|
||||||
|
|
||||||
" get out of VI's compatible mode..
|
call plug#begin('~/.vim/plugged')
|
||||||
set nocompatible
|
|
||||||
|
|
||||||
" sets how many lines of history VIM has to remember
|
Plug 'tpope/vim-sensible'
|
||||||
set history=400
|
Plug 'tpope/vim-fugitive'
|
||||||
|
Plug 'nanotech/jellybeans.vim'
|
||||||
|
Plug 'sbdchd/neoformat'
|
||||||
|
" Plug 'mattn/emmet-vim'
|
||||||
|
" Plug '~/.fzf'
|
||||||
|
" Plug 'lepture/vim-jinja'
|
||||||
|
" Plug 'will133/vim-dirdiff'
|
||||||
|
|
||||||
" set to auto read when a file is changed from the outside
|
" Common commands:
|
||||||
set autoread
|
" PlugInstall [name] - install plugins
|
||||||
|
" PlugUpdate [name] - update plugin
|
||||||
|
" PlugClean - remove unused plugins
|
||||||
|
" PlugUpgrade - upgrade plug
|
||||||
|
|
||||||
" have the mouse enabled all the time:
|
call plug#end()
|
||||||
set mouse=a
|
|
||||||
|
|
||||||
" show cursor position
|
" most default settings are loaded by vim-sensible above
|
||||||
set ruler
|
|
||||||
|
|
||||||
" the commandbar is 1 high
|
" custom colours
|
||||||
set cmdheight=1
|
colorscheme jellybeans
|
||||||
|
|
||||||
" set backspace
|
|
||||||
set backspace=eol,start,indent
|
|
||||||
|
|
||||||
" backspace and cursor keys wrap to
|
|
||||||
"set whichwrap+=<,>,h,l
|
|
||||||
|
|
||||||
" ignore case when searching
|
" ignore case when searching
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set incsearch
|
|
||||||
|
|
||||||
" set magic on
|
|
||||||
set magic
|
|
||||||
|
|
||||||
" allow highlighting search words
|
" allow highlighting search words
|
||||||
set hlsearch
|
set hlsearch
|
||||||
|
|
||||||
" tab size is 4 spaces
|
" tab size is 2 spaces
|
||||||
set ts=4
|
set ts=2
|
||||||
|
|
||||||
" indent is 4 spaces
|
" indent is 2 spaces
|
||||||
set shiftwidth=4
|
set shiftwidth=2
|
||||||
|
|
||||||
|
" tab becomes spaces
|
||||||
set expandtab
|
set expandtab
|
||||||
|
|
||||||
" default font
|
|
||||||
" set guifont=DejaVu\ Sans\ Mono\ 9
|
|
||||||
|
|
||||||
" show line numbers
|
" show line numbers
|
||||||
set number
|
set number
|
||||||
" set relativenumber
|
|
||||||
|
|
||||||
" automatically indent on line break
|
|
||||||
set autoindent
|
|
||||||
|
|
||||||
" automatically fold on indents
|
|
||||||
" set foldmethod=indent
|
|
||||||
|
|
||||||
" set colors to 256 for terminal VIM
|
|
||||||
set t_Co=256
|
|
||||||
|
|
||||||
" dark background
|
|
||||||
set background=dark
|
|
||||||
|
|
||||||
" nyummy wombat colours
|
|
||||||
" colorscheme wombat
|
|
||||||
|
|
||||||
" enable plugins
|
|
||||||
filetype plugin on
|
|
||||||
|
|
||||||
" highlight syntax
|
|
||||||
syntax on
|
|
||||||
|
|
||||||
" allow a 7-line verticle buffer for the cursor
|
" allow a 7-line verticle buffer for the cursor
|
||||||
set so=7
|
set so=7
|
||||||
|
|
||||||
" turn backup off
|
" turn backup off
|
||||||
set nobackup
|
set nobackup
|
||||||
set nowb
|
|
||||||
set noswapfile
|
|
||||||
|
|
||||||
" auto indent
|
|
||||||
set ai
|
|
||||||
|
|
||||||
" smart indet
|
|
||||||
set si
|
|
||||||
|
|
||||||
" wrap lines
|
|
||||||
set wrap
|
|
||||||
|
|
||||||
" break wrap at words
|
|
||||||
set lbr
|
|
||||||
|
|
||||||
" show whitespace
|
" set listchars=space:·,tab:»·,trail:¬
|
||||||
if has("patch-7.4.710")
|
" set syntax=whitespace
|
||||||
set listchars=eol:¬,tab:>-,trail:~,extends:>,precedes:<,space:·
|
set list
|
||||||
else
|
|
||||||
set listchars=eol:¬,tab:>-,trail:~,extends:>,precedes:<
|
|
||||||
endif
|
|
||||||
|
|||||||
Loading…
Reference in New Issue