summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc45
1 files changed, 45 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
new file mode 100644
index 0000000..c760f86
--- /dev/null
+++ b/vim/.vimrc
@@ -0,0 +1,45 @@
+" 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,$VIM,$VIMRUNTIME,${XDG_CONFIG_HOME}/vim/after
+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
+
+" Splits
+set splitbelow
+set splitright
+
+" Colors
+set background=dark
+
+" Ignore some additional patterns when opening files
+set wildignore+=*.o,*.so,*.swp,*/__pycache__/*
+
+" 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()