summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2017-04-04 22:08:27 +0200
committerRobin Krahl <me@robin-krahl.de>2017-04-04 22:08:27 +0200
commitdfe38c3d35a0627024bc94b0420bf21cbbe6e8fc (patch)
treeafc86026b32fbbc9c7aa22ed223db015d46748b5
parentea3475f79d7e764645c5a035e65004057f50d244 (diff)
downloaddotfiles-dfe38c3d35a0627024bc94b0420bf21cbbe6e8fc.tar.gz
dotfiles-dfe38c3d35a0627024bc94b0420bf21cbbe6e8fc.tar.bz2
vim: Update configuration
-rw-r--r--.config/vim/after/ftplugin/cpp.vim4
-rw-r--r--.vimrc8
2 files changed, 8 insertions, 4 deletions
diff --git a/.config/vim/after/ftplugin/cpp.vim b/.config/vim/after/ftplugin/cpp.vim
index 0e18e2e..87152c2 100644
--- a/.config/vim/after/ftplugin/cpp.vim
+++ b/.config/vim/after/ftplugin/cpp.vim
@@ -1,5 +1,5 @@
setlocal expandtab
-setlocal shiftwidth=4
-setlocal softtabstop=4
+setlocal shiftwidth=2
+setlocal softtabstop=2
setlocal cino=N-s
diff --git a/.vimrc b/.vimrc
index 1b6d812..c760f86 100644
--- a/.vimrc
+++ b/.vimrc
@@ -3,7 +3,7 @@ set nocompatible
" Set paths according to XDG Base Directory specification
set viminfo+=n${XDG_CACHE_HOME}/vim/viminfo
-set runtimepath=${XDG_CONFIG_HOME}/vim,${XDG_CONFIG_HOME}/vim/after,$VIM,$VIMRUNTIME
+set runtimepath=${XDG_CONFIG_HOME}/vim,$VIM,$VIMRUNTIME,${XDG_CONFIG_HOME}/vim/after
let g:netrw_home = "${XDG_CACHE_HOME}/vim"
" Syntax highlighting
@@ -20,11 +20,15 @@ set number
set relativenumber
set ruler
+" Splits
+set splitbelow
+set splitright
+
" Colors
set background=dark
" Ignore some additional patterns when opening files
-set wildignore+=*.o,*.so,*.swp
+set wildignore+=*.o,*.so,*.swp,*/__pycache__/*
" Search subdirectories with :find & co
set path+=**