My vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Plugin Manager 'vim-plug' | |
" | |
" List of the plugins | |
call plug#begin() | |
" Dracula colour scheme | |
Plug 'dracula/vim' | |
" Code completer and error checker | |
"Plug 'Valloric/YouCompleteMe' | |
" Tagbar provides an easy way to browse the tags of the current file and get an overview of its structure. | |
Plug 'majutsushi/tagbar' | |
" Better Whitespace causes all trailing whitespace characters (spaces and tabs) to be highlighted. | |
Plug 'ntpeters/vim-better-whitespace' | |
" Color scheme | |
Plug 'romainl/Apprentice' | |
Plug 'nanotech/jellybeans.vim' | |
" Status line | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
" Initialize plugin system | |
call plug#end() | |
" Disable vi compatibility (emulation of old bugs) | |
set nocompatible | |
" Restore cursor position | |
if has("autocmd") | |
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif | |
endif | |
" Highlight syntax | |
syntax on | |
" Color scheme | |
colorscheme jellybeans | |
" Set UTF-8 encoding | |
set enc=utf-8 | |
set fenc=utf-8 | |
set termencoding=utf-8 | |
" Toggle paste mode to insert text from buffer without autoindent | |
set pastetoggle=<F2> | |
" Configure tab behaviour | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set noexpandtab | |
set smarttab | |
" Use indentation of previous line | |
set autoindent | |
" Use intelligent indentation for C | |
set smartindent | |
" Wrap lines at 160 chars. 80 is somewaht antiquated with nowadays displays. | |
set textwidth=160 | |
" Show line numbers | |
set number | |
" Make backspace work like most other programs | |
set backspace=2 | |
" Backspace over indentation, join start of line with the line above, backspace over start of editing | |
set backspace=indent,eol,start | |
" Disable annoying preview window | |
set completeopt-=preview | |
" Do not select line numbers | |
set mouse=a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment