2018-09-01 11:17:30 +02:00
|
|
|
" Plugin Manager
|
2018-04-05 13:06:54 +02:00
|
|
|
execute pathogen#infect('plugins/{}')
|
|
|
|
execute pathogen#infect('snippets/{}')
|
2018-09-01 11:17:30 +02:00
|
|
|
|
|
|
|
" Prepare central backup/swap/undo directory
|
|
|
|
let &undodir = expand('~/.vim/.undo')
|
|
|
|
let &backupdir = expand('~/.vim/.backup//')
|
|
|
|
let &directory = expand('~/.vim/.swp//')
|
|
|
|
|
2018-04-05 13:06:54 +02:00
|
|
|
syntax on
|
|
|
|
filetype plugin on
|
|
|
|
filetype plugin indent on
|
|
|
|
|
2018-09-01 11:17:30 +02:00
|
|
|
set encoding=utf-8
|
2018-04-05 13:06:54 +02:00
|
|
|
|
2018-09-01 11:17:30 +02:00
|
|
|
" Use whitespace instead of tab
|
|
|
|
set expandtab
|
2018-04-05 13:06:54 +02:00
|
|
|
|
2018-09-01 11:17:30 +02:00
|
|
|
" Make a tabulator equal 4 spaces
|
2018-04-05 13:06:54 +02:00
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
2018-09-01 11:17:30 +02:00
|
|
|
|
|
|
|
" Enable persistent undo
|
|
|
|
set undofile
|
|
|
|
|
|
|
|
" Use relative line numbers
|
|
|
|
set number
|
|
|
|
set relativenumber
|
|
|
|
|
|
|
|
" Set linelength indicator to 120 characters
|
2018-04-05 13:06:54 +02:00
|
|
|
set cc=120
|
2018-09-01 11:17:30 +02:00
|
|
|
|
|
|
|
" Natural window splitting
|
2018-08-28 23:24:09 +02:00
|
|
|
set splitbelow
|
|
|
|
set splitright
|
|
|
|
|
2018-09-01 11:17:30 +02:00
|
|
|
" Set colors
|
|
|
|
colorscheme happy_hacking
|
|
|
|
|
2018-08-28 23:24:09 +02:00
|
|
|
|
2018-09-01 11:17:30 +02:00
|
|
|
" Apply plugin configurations
|
|
|
|
source ~/.vim/config/plugin.vim
|
2018-05-04 20:32:48 +02:00
|
|
|
|
2018-09-01 11:17:30 +02:00
|
|
|
" Apply custom keybindings
|
|
|
|
source ~/.vim/config/keybindings.vim
|
|
|
|
|
|
|
|
" Apply settings for custom filetypes
|
|
|
|
source ~/.vim/config/filetypes.vim
|
|
|
|
|
|
|
|
" Rebuild help files on startup
|
|
|
|
autocmd vimenter * Helptags
|
2018-05-04 16:41:58 +02:00
|
|
|
|
2018-04-05 13:06:54 +02:00
|
|
|
" Transparency
|
|
|
|
hi Normal guibg=NONE ctermbg=NONE
|