dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 067e8a746989d138479d483a0dfec97d356e7145
parent 91d5ecac20d7ceaec4b5db2706eef698913c9ab3
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Mon,  4 Jun 2018 17:41:22 +0200

Pimped out my vimrc

Diffstat:
Mvimrc | 92+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 90 insertions(+), 2 deletions(-)

diff --git a/vimrc b/vimrc @@ -1,3 +1,6 @@ +" Update file when changed from the outside +set autoread + " Hide buffers instead of closing set hidden @@ -7,22 +10,55 @@ set number set numberwidth=3 " Indentation settings +" I want spaces set expandtab + +" with a smart tab set smarttab + +" and 1 tab == 4 spaces set shiftwidth=4 set softtabstop=4 set shiftround -set autoindent set copyindent +" Linebreak when obsessive +set lbr +set tw=500 + +" Auto indent +set ai + +" Smart indent +set si + +" Wrapping +set nowrap + " Status bar set laststatus=2 " Searching -set showmatch set ignorecase set hlsearch set incsearch +set smartcase + +" Show matching brackets +set showmatch +set mat=2 + +" Dont redraw while executing macros +set lazyredraw + +" Set 80-char column (off by default) +" set colorcolumn=80 +highlight ColorColumn ctermbg=233 + +" Encoding +set encoding=utf-8 +set fileencoding=utf-8 +set fileencodings=utf-8 " Key bindings nnoremap ; : @@ -31,3 +67,55 @@ cmap w!! w !sudo tee > /dev/null % " netrw configs let g:netrw_banner = 0 + +" Backspace tweaks +set backspace=indent,eol,start +set whichwrap+=<,>,h,l + +" Fat finger fixes +cnoreabbrev W! w! +cnoreabbrev Q! q! +cnoreabbrev Qall! qall! +cnoreabbrev Wq wq +cnoreabbrev Wa wa +cnoreabbrev wQ wq +cnoreabbrev WQ wq +cnoreabbrev W w +cnoreabbrev Q q +cnoreabbrev Qall qall + +" Retain visual mode after > and < +vmap < <gv +vmap > >gv + +" Move visual block +vnoremap J :m '>+1<cr>gv=gv +vnoremap K :m '<-2<cr>gv=gv + + +" dont know what these do + +set bomb +set binary +set ttyfast + +set fileformats=unix,dos,mac +set showcmd + +" ================ +" Colors and Fonts +" ================ + +" Syntax highlighting +syntax on + +" Enable dark background +set background=dark + +" Enable 256 colormode +set t_Co=256 + +" Mouse tweak +set mousemodel=popup + +