diff options
author | Robin Krahl <me@robin-krahl.de> | 2017-04-04 22:08:27 +0200 |
---|---|---|
committer | Robin Krahl <me@robin-krahl.de> | 2017-04-04 22:08:27 +0200 |
commit | dfe38c3d35a0627024bc94b0420bf21cbbe6e8fc (patch) | |
tree | afc86026b32fbbc9c7aa22ed223db015d46748b5 | |
parent | ea3475f79d7e764645c5a035e65004057f50d244 (diff) | |
download | dotfiles-dfe38c3d35a0627024bc94b0420bf21cbbe6e8fc.tar.gz dotfiles-dfe38c3d35a0627024bc94b0420bf21cbbe6e8fc.tar.bz2 |
vim: Update configuration
-rw-r--r-- | .config/vim/after/ftplugin/cpp.vim | 4 | ||||
-rw-r--r-- | .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 @@ -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+=** |