-
Notifications
You must be signed in to change notification settings - Fork 2
/
local.vimrc
19 lines (18 loc) · 1.05 KB
/
local.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
autocmd FileType cpp nnoremap <F4> :wa<CR> :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR>
autocmd FileType cpp inoremap <F4> <Esc> <F4>
autocmd FileType cpp vnoremap <F4> <Esc> <F4>
autocmd FileType c nnoremap <F4> :wa<CR> :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR>
autocmd FileType c inoremap <F4> <Esc> <F4>
autocmd FileType c vnoremap <F4> <Esc> <F4>
nnoremap <Leader>` :echom system("./ace-tags\ .")<CR>
autocmd FileType * setlocal makeprg=make\ debug
let &path=substitute(
\ system('pkg-config bdw-gc --variable=includedir'),
\ '\n', '', 'g') . ',.'
let g:ale_cpp_clang_options=substitute(system("pkg-config bdw-gc --cflags") . ' ' .
\ system("llvm-config --cxxflags"), '\n', '', 'g')
let g:ale_cpp_cc_options=substitute(system("pkg-config bdw-gc --cflags")
\ . ' -isysroot ' . system("xcrun --sdk macosx --show-sdk-path")
\ . ' ' . system("llvm-config --cxxflags"), '\n', '', 'g')
let g:ale_c_clang_options=substitute(system("pkg-config bdw-gc --cflags") . ' ' .
\ system("llvm-config --cflags"), '\n', '', 'g')