dotfiles/vim/.vimrc
Tobias Manske 5cbb3a63c6
VIM: Cleanup
- .vimrc:
        Restructured the settings.
        Moved the Rmarkdown settings to a new config file
        'config/filetypes.vim'

- config/plugin.vim:
        Fixed spacing

- .gitmodules: moved traces.vim down

Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
2018-09-01 11:22:54 +02:00

55 lines
1021 B
VimL
Executable File

" Plugin Manager
execute pathogen#infect('plugins/{}')
execute pathogen#infect('snippets/{}')
" Prepare central backup/swap/undo directory
let &undodir = expand('~/.vim/.undo')
let &backupdir = expand('~/.vim/.backup//')
let &directory = expand('~/.vim/.swp//')
syntax on
filetype plugin on
filetype plugin indent on
set encoding=utf-8
" Use whitespace instead of tab
set expandtab
" Make a tabulator equal 4 spaces
set tabstop=4
set shiftwidth=4
" Enable persistent undo
set undofile
" Use relative line numbers
set number
set relativenumber
" Set linelength indicator to 120 characters
set cc=120
" Natural window splitting
set splitbelow
set splitright
" Set colors
colorscheme happy_hacking
" Apply plugin configurations
source ~/.vim/config/plugin.vim
" 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
" Transparency
hi Normal guibg=NONE ctermbg=NONE