From dfe38c3d35a0627024bc94b0420bf21cbbe6e8fc Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 4 Apr 2017 22:08:27 +0200 Subject: vim: Update configuration --- .config/vim/after/ftplugin/cpp.vim | 4 ++-- .vimrc | 8 ++++++-- 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+=** -- cgit v1.2.3