1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
" Line numbering
set relativenumber number
"set number
" Sign Column
set signcolumn=yes
" Enable mouse scroll
set mouse=a
" Lines vim should remember
set history=500
" Don't be Vi compatible
set nocompatible
" Enable filytype plugin and indent
filetype plugin indent on
" Remap leader key
let mapleader=","
" Autoread file if changed externally
set autoread
au FocusGained,BufEnter * checktime
" Wildmenu in COMMAND mode
set path+=**
set wildmenu
set showcmd
" Ignore compiled files
set wildignore=*.o,*~,~*.pyc
set wildignore+=*.bmp,*.gif,*.ico,*.jpg,*.png,*.ico
set wildignore+=node_modules/*,browse_components/*
if has("win16") || has("win32")
set wildignore+=.git\*,.hg\*,.svn\*
else
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*/.DS_Store
endif
" Make backspace work as it should
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
" Better searching
set ignorecase smartcase nohlsearch
" No redraw when using macros
set lazyredraw
" Vim's regular expression magic
set magic
" Show matching braces
set showmatch
" How many tenths of seconds ro blink
set mat=2
" Syntax highlighting
syntax enable
" utf-8 encoding
set encoding=utf-8
if &encoding != 'utf-8'
set encoding=utf-8
endif
" unix as standard file format
set ffs=unix,dos,mac
" Hidden buffers
set hidden
" No backup files
set nobackup nowritebackup
" No swap files
set noswapfile
" Correct indentation
set autoindent smartindent
" Tab settings
set noexpandtab smarttab tabstop=4 shiftwidth=4
" Share system clipboard
set clipboard=unnamedplus
" Netrw directory history
let g:netrw_dirhistmax=0
" Autoremove unwanted whitespaces
autocmd BufWritePre * %s/\s\+$//e
" Shell
set shell=zsh
" Python host
let g:python3_host_prog='/usr/bin/python'
|