From 4f8a0ae65141d6139f8f3f50b6206025341a7da8 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 12 Mar 2017 20:45:40 +0100 Subject: vim: use .config/vim and .cache/vim instead of .vim --- .vimrc | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .vimrc (limited to '.vimrc') diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..1b6d812 --- /dev/null +++ b/.vimrc @@ -0,0 +1,41 @@ +" Disable Vi-compatibility +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 +let g:netrw_home = "${XDG_CACHE_HOME}/vim" + +" Syntax highlighting +syntax on + +" Enable the filetype plugin +filetype plugin indent on +" LaTeX instead of Plain TeX +let g:tex_flavor = "latex" + +" Status line and numbers +set laststatus=2 +set number +set relativenumber +set ruler + +" Colors +set background=dark + +" Ignore some additional patterns when opening files +set wildignore+=*.o,*.so,*.swp + +" Search subdirectories with :find & co +set path+=** + +" Better completion +set wildmenu +set wildmode=longest:full,full + +" netrw +let g:netrw_banner=0 +" let g:netrw_browse_split=4 +let g:netrw_altv=1 +let g:netrw_liststyle=3 +let g:netrw_list_hide=netrw_gitignore#Hide() -- cgit v1.2.1