clean up vimrc

This commit is contained in:
Thomas Ruoff
2017-04-23 22:54:12 +02:00
parent 4a78742453
commit 077861f670

100
vimrc
View File

@@ -48,65 +48,75 @@ Plug 'junegunn/fzf.vim'
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
Plug 'christoomey/vim-tmux-navigator'
call plug#end() call plug#end()
" }}} " }}}
" Basics {{{ " Basics {{{
set encoding=utf-8 set encoding=utf-8
set nocompatible " choose no compatibility with legacy vi set nocompatible
filetype plugin indent on " Load filetype plugin/indent files.
syntax on " Enable syntax highlighting. filetype plugin indent on
syntax on
set hidden set hidden
set ttyfast set ttyfast
set synmaxcol=512 " Limit syntax highlighting to 512 characters per line set synmaxcol=512
set modeline " Use file-specific settings, if available. set modeline
set nobackup " Make backup files. set nobackup
set noswapfile set noswapfile
set mouse=a " Mouse support everywhere.
set mousehide " Auto-hide cursor while typing. set mouse=a
set wildmode=list:longest,full " Make completion more like zsh. set mousehide
set wildmenu " Turn on command-line completion wild style.
set wildignore+=*.swp,*.bak,*.jpg,*.gif,*.png,*.git,
set ignorecase " Ignore case, except...
set smartcase " ...when search string contains uppercase.
set incsearch " Highlight as you type search phrase.
set hlsearch
set number " Show line numbers.
set report=0 " Tell me when anything is changed via :...
set ruler " Show current positions along bottom.
set scrolloff=5 " Keep 5 lines (top/bottom) for scope.
set showcmd " Show command being typed.
set showmatch " Show matching brackets.
set spell " Highlight misspelled words.
set spellcapcheck= " Don't highlight uncapitalized first word.
set complete+=kspell " Use <C-n> and <C-p> to get suggested spelling completions.
set splitright " Split to the right when executing :vsplit.
let g:netrw_liststyle=3 " Use tree style directory listing.
set background=dark
set path+=** set path+=**
set clipboard=unnamed set wildmode=list:longest,full
set wildmenu
set wildignore+=*.swp,*.bak,*.jpg,*.gif,*.png,*.git,
let g:netrw_liststyle=3
set splitright
set splitbelow
set ignorecase
set smartcase
set incsearch
set hlsearch
set number
set report=0
set scrolloff=5
set showcmd
set showmatch
set spell
set spellcapcheck=
set complete+=kspell
" }}} " }}}
" Local .vimrc {{{ " Local .vimrc {{{
set exrc " Enable use of directory-specific .vimrc set exrc
set secure " Only run autocommands owned by me set secure
" }}} " }}}
" Text Formatting {{{ " Text Formatting {{{
set list " Show real tabs (so they can be removed). set list
set listchars=tab:▸\ ,extends:,precedes:,nbsp:␣,trail:- set listchars=tab:▸\ ,extends:,precedes:,nbsp:␣,trail:-
set linebreak " Don't soft-wrap in the middle of a word. set linebreak
set showbreak= " Show `…' at the beginning of a soft-broken line. set showbreak=
set tabstop=4 " Real tabs are 4 columns long. set tabstop=4
set expandtab " No real tabs (use spaces for tabs). set expandtab
set softtabstop=4 " Set # of spaces when hitting tab/delete. set softtabstop=4
set shiftwidth=4 " Set # of softtabs when using cindent, <<, >>, ... set shiftwidth=4
set textwidth=80 " Set max # of characters on each line. set textwidth=80
set autoindent " Use indentation level of previous line. set autoindent
set nojoinspaces " Don't add extra space after ., !, etc. when joining. set nojoinspaces
set formatoptions+=j " Delete comment character when joining commented lines.
" }}} " }}}
" Folding {{{ " Folding {{{
@@ -116,9 +126,9 @@ set foldlevelstart=10
" Diff settings {{{ " Diff settings {{{
set fillchars+=diff:⣿ set fillchars+=diff:⣿
set diffopt=vertical " Use in vertical diff mode set diffopt=vertical
set diffopt+=filler " blank lines to keep sides aligned set diffopt+=filler
set diffopt+=iwhite " Ignore whitespace changes set diffopt+=iwhite
" }}} " }}}
" {{{ Undo " {{{ Undo
@@ -129,6 +139,8 @@ set undoreload=10000
" }}} " }}}
" Visual Setting {{{ " Visual Setting {{{
"
set background=dark
set cursorline set cursorline
if filereadable(expand("~/.vimrc_background")) if filereadable(expand("~/.vimrc_background"))
let base16colorspace=256 let base16colorspace=256