forked from astrails/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
43 lines (35 loc) · 1.43 KB
/
vimrc
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
"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
"If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
"(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.))
" if (empty($TMUX))
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 <
"https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
if has("termguicolors")
if !has("nvim")
" fix bug for vim
set t_8f=[38;2;%lu;%lu;%lum
set t_8b=[48;2;%lu;%lu;%lum
endif
" enable true color
set termguicolors
endif
" endif
let g:python3_host_prog = '/usr/local/bin/python3'
" content of this file is loaded BEFORE all the plugins
source ~/.vim/bundles.vim " vundle plugins list
source ~/.vim/global.vim " general global configuration
source ~/.vim/plugins.vim " configuration for plugins that needs to be set BEFORE plugins are loaded
source ~/.vim/macros.vim " some macros
if has('gui_running')
source ~/.vim/gvimrc " gui specific settings
end
" set autochdir
autocmd InsertEnter * let save_cwd = getcwd() | execute 'lcd %:p:h'
autocmd InsertLeave * execute 'lcd' fnameescape(save_cwd)
source ~/.vim/before.vim " local BEFORE configs
" after.vim is loaded from ./after/plugin/after.vim
" which should place it AFTER all the other plugins in the loading order
" bindings.vim and local.vim are loaded from after.vim