summary refs log tree commit diff
path: root/.vim/general.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/general.vim')
-rw-r--r--.vim/general.vim65
1 files changed, 65 insertions, 0 deletions
diff --git a/.vim/general.vim b/.vim/general.vim
new file mode 100644
index 0000000..8fbc18d
--- /dev/null
+++ b/.vim/general.vim
@@ -0,0 +1,65 @@
+" .vimrc#General settings
+set exrc
+set secure
+set title
+set noshowmode
+set autowrite
+set inccommand=split
+set noshowcmd
+" set autochdir " automatically sets cwd to the dir containing the file in the current buffer
+set hidden
+set nolist
+" set lcs+=space:•
+" set lcs+=trail:∙
+set encoding=utf-8 nobomb
+" set nocompatible
+set number
+let &showbreak='↪ '
+set visualbell
+set noerrorbells
+set hlsearch
+set smartcase
+set ignorecase
+set incsearch
+" set cmdheight=2
+set pumheight=10
+set lazyredraw
+set mouse=a
+set clipboard+=unnamedplus " share OSX clipboard
+set backspace=indent,eol,start " allow backspace in INSERT mode
+set signcolumn=yes
+set cursorline
+" set cursorcolumn
+set colorcolumn=80
+set updatetime=300
+
+" For conceal markers.
+if has('conceal')
+    " set conceallevel=2 concealcursor=nv
+    set conceallevel=2 concealcursor=
+endif
+
+" centralize vimfiles
+set backupdir=/tmp
+set directory=/tmp
+if exists('&undodir')
+    set undodir=~/.vim/undo
+endif
+
+" pane divider chars
+set fillchars=fold:-,vert:\│
+
+"" colorscheme options
+if has("termguicolors")
+    set termguicolors
+endif
+
+filetype plugin indent on
+if has('syntax') && !exists('g:syntax_on')
+    syntax enable
+endif
+
+" some defaults
+" set ts=8 sts=0 et sw=4 sta
+
+set diffopt+=algorithm:patience