-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc.local
95 lines (82 loc) · 2.63 KB
/
vimrc.local
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
if has("gui_running")
set lines=35 columns=150
" set guifont=CodeNewRoman\ Nerd\ Font\ Mono\ 14
set guifont=Hack\ Nerd\ Font\ Mono\ 10
set guifontwide=VL\ Gothic\ 10
if has("win32")
set guifont=Hack_Nerd_Font_Mono:h10
set guifontwide=MS\ Gothic:h10
endif
endif
" let g:python_host_prog = "/usr/bin/python2"
let g:python3_host_prog = "/usr/bin/python"
if has("win32")
let g:python3_host_prog = "~/Miniconda3/python.exe"
set shell=cmd.exe
endif
"if has("win32")
" set shell=C:\Windows\System32\wsl
" set shellpipe=\|tee.exe
" set shellpipe=2\>\&1\|tee.exe\ \"%s\"
" set shellredir=>
" set shellcmdflag=
" set shellxquote=
" set noshellslash
" set shelltemp
" set grepprg=grep\ -n\ $*\ /dev/null
" let g:syntastic_shell="C:\\Windows\\System32\\cmd.exe /s /c"
"endif
"map <leader>s :source ~/.config/nvim/init.vim<CR>
map <leader>w :w!<CR>
map <leader>s :w!<CR>
"set guifont=CodeNewRoman\ Nerd\ Font\ Mono\ 14
"set guifontwide=VL\ Gothic\ 13
set number relativenumber
set mouse=a
" Disable arrow keys for training.
" noremap <Up> <Nop>
" noremap <Down> <Nop>
" noremap <Left> <Nop>
" noremap <Right> <Nop>
" Enable folding
set foldmethod=indent
set foldlevel=99
xnoremap * :<C-u>call <SID>VSetSearch('/')<CR>/<C-R>=@/<CR><CR>
xnoremap # :<C-u>call <SID>VSetSearch('?')<CR>/<C-R>=@/<CR><CR>
function! s:VSetSearch(cmdtype)
let temp = @s
norm! gv"sy
let @/ = '\V' . substitute(escape(@s, a:cmdtype.'\'), '\n', '\\n', 'g')
let @s = temp
endfunction
" Syntastic stuff BEGIN
let g:syntastic_cpp_checkers = ['clang_tidy', 'clang++', 'gcc']
let g:syntastic_cpp_compiler = 'clang++'
" let g:syntastic_cpp_compiler_options = ' -std=c++17 -stdlib=libc++'
let g:syntastic_cpp_compiler_options = ' -std=c++17'
let g:syntastic_cpp_check_header = 1
let g:syntastic_cpp_auto_refresh_includes = 1
" let g:syntastic_cpp_clang_tidy_args = '-checks=*'
let g:syntastic_cpp_clang_tidy_args = ''
let g:syntastic_python_checkers=['python', 'flake8']
let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }
" let g:syntastic_go_checkers = ['golint', 'govet']
let g:syntastic_aggregate_errors = 1
let g:syntastic_auto_loc_list=1
let g:syntastic_style_warning_symbol = '⚠'
let g:syntastic_style_error_symbol = '✗'
let g:syntastic_warning_symbol='⚠'
let g:syntastic_error_symbol='✗'
let g:syntastic_always_populate_loc_list=1
let g:airline#extensions#syntastic#enabled = 1
" Syntastic stuff END
" Set colour scheme to Dracula
" colorscheme dracula
" let g:airline_theme='dracula'
colorscheme nord
let g:airline_theme='nord'
" Tab settings
set tabstop=4
set softtabstop=0
set shiftwidth=4
set noexpandtab