-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimrc
97 lines (87 loc) · 2.02 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
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
set nocompatible
filetype off
set ai
set background=dark
set bs=2
set encoding=utf-8
set esckeys
set et
set expandtab
set fileencoding=utf-8
set fileformat=unix
set fileformats=unix,dos
set history=50
set hlsearch
set incsearch
set laststatus=2
set linebreak
set modelines=0
set nobackup
set nocompatible
set nomodeline
set noswapfile
set nowrap
set nowritebackup
set number
set ruler
set showcmd
set showmatch
set showmode
set showtabline=1
set sta
set sts=4
set sw=4
set t_Co=256
set title
set ts=4
set viminfo='10,\"100,:20,%,n~/.viminfo
set wildmenu
set wrap
map Q gq
syntax on
if has("termguicolors")
set term=xterm-256color
set termguicolors
endif
filetype plugin on
filetype indent on
" for vim-gnupg
let g:GPGExecutable = "gpg2"
" GUI related stuff
if has("gui_running")
let base16colorspace=256
colorscheme base16-atelierheath
set guicursor+=a:blinkon0
set guioptions-=T
set guioptions-=m
set lines=50 columns=120
set mousemodel=popup
if has("gui_gtk2") || has("gui_gtk3")
set guifont=Consolas\ 14
set shellcmdflag+=i
elseif has("gui_win32")
set guifont=Consolas:h11:cANSI:qCLEARTYPE
set renderoptions=type:directx,geom:1,renmode:5,taamode:1
set shell=cmd
set shellcmdflag=/c
map <C-K> :py3f C:/Program Files/LLVM/share/clang/clang-format.py<CR>
imap <C-K> <ESC>:py3f C:/Program Files/LLVM/share/clang/clang-format.py<CR>i
elseif has("gui_macvim")
set shellcmdflag+=i
set guifont=Menlo\ Regular:h16
endif
endif
" Remember the positions in files with some git-specific exceptions
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$")
\ && expand("%") !~ "COMMIT_EDITMSG"
\ && expand("%") !~ "ADD_EDIT.patch"
\ && expand("%") !~ "addp-hunk-edit.diff"
\ && expand("%") !~ "git-rebase-todo" |
\ exe "normal g`\"" |
\ endif
" Easily switch buffers
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>