-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvimrc
More file actions
56 lines (47 loc) · 1.81 KB
/
vimrc
File metadata and controls
56 lines (47 loc) · 1.81 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
" _ ___ _ __ ___
" | |/ (_) | | /\ \ \ / (_)
" | ' / _ ___| | __ / \ ___ ___ \ \ / / _ _ __ ___
" | < | |/ __| |/ / / /\ \ / __/ __| \ \/ / | | '_ ` _ \
" | . \| | (__| < / ____ \\__ \__ \ \ / | | | | | | |
" |_|\_\_|\___|_|\_\ /_/ \_\___/___/ \/ |_|_| |_| |_|
set encoding=utf-8
set nocompatible " Use vim, no vi defaults
set shm+=atmI " No startup messages
if has('win32')
source $HOME/vimfiles/plugins.vim " add all plugins to the runtime path
else
source $HOME/.vim/plugins.vim " add all plugins to the runtime path
endif
" Common customizations:
" -------------------------------------------------------------------------------
let mapleader = "," " must be set before loading keybindings from config
set tabstop=4 " a tab is four spaces
set shiftwidth=4 " an autoindent (with <<) is four spaces
set expandtab " use spaces, not tabs
set softtabstop=4 " The number of columns vim uses when you hit Tab in insert mode.
try " the first time vim is run, the colorscheme is not installed.
" find more color schemes at http://vimcolors.com/
colorscheme ir_black " Set your terminal theme the same.
catch
endtry
" Fonts must come from http://nerdfonts.com/.
" Set your terminal font the same
if has("gui_running")
if has("win32")
let os = "Windows"
else
let os = substitute(system('uname'), '\n', '', '')
endif
if os == "Darwin"
set guifont=Hack:h12
elseif os == "Linux"
set guifont=Hack\ Nerd\ Font\ Mono\ 12
elseif os == "Windows"
set guifont=Hack_Nerd_Font_Mono:h12
endif
endif
" -------------------------------------------------------------------------------
runtime! config/**/* " load all config files
if has('win32')
source $VIMRUNTIME/mswin.vim
endif