-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvimrc
More file actions
74 lines (60 loc) · 1.76 KB
/
vimrc
File metadata and controls
74 lines (60 loc) · 1.76 KB
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
set nocompatible " not care about vi compat
set t_Co=256 " force 256 colors
set re=1 " use new regexp engine
set nobackup " no backup files
set nowritebackup " no backup file while editing
set noswapfile " no swap files
set undofile " save undo's after file closes
set undodir=$HOME/.vim/undo " where to save undo histories
set undolevels=1000 " how many undos
set undoreload=10000 " number of lines to save for undo
scriptencoding utf-8
if has('win32') || has ('win64')
let $VIMHOME = $HOME."/vimfiles"
else
let $VIMHOME = $HOME."/.vim"
endif
source $VIMHOME/plugins.vim
source $VIMHOME/commands.vim
source $VIMHOME/autocommands.vim
source $VIMHOME/mappings.vim
source $VIMHOME/tool_config.vim
" APPEARANCE
syntax enable
set background=dark
set laststatus=2 " always show statusline
set ruler " always show cursor position
set showmode " display curent mode
set showcmd " display incomplete commands
set number " show line numbers
if has("win32")
set nolist
else
set list " visual warnings for unsafe characters
set listchars=tab:▸·,trail:·,nbsp:●
endif
set expandtab
set shiftwidth=2
set softtabstop=2
" INTERFACE
set wildmenu
set wildignore=.keep,coverage,node_modules,tmp
set wrap lbr " break by words
set backspace=indent,eol,start " liberal backspacing in insert mode
set showmatch " show matching brackets when hovering
set viminfo='25,\"50,n~/.vim/.viminfo
set splitright
set history=50
set smartcase
set ttyfast
" SEARCH
set ignorecase
set incsearch
"set hlsearch
hi Search ctermbg=Yellow ctermfg=Black
" TECHNICAL
set mouse=a
set encoding=utf-8
set fileencoding=utf-8
set termencoding=utf-8
colorscheme everforest