-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
79 lines (68 loc) · 1.92 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
syntax on
set exrc
filetype plugin on
set hls
set listchars=tab:.\ ,eol:$
" unicode 2026
set showbreak=...
set list
set laststatus=2
set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%l/%L\ (%p%%)]
" pathogen
call pathogen#infect()
" Python stuffs primarly
set expandtab
let g:netrw_ftp_cmd = "lftp"
set sw=4
set ts=4
set sts=4
set smartindent
set smartcase
set number
set foldmethod=indent
" https://stackoverflow.com/questions/923737/detect-file-change-offer-to-reload-file
:autocmd CursorHold * checktime
set mouse=a
"
" Show syntax highlighting groups for word under cursor
nmap <C-S-P> :call <SID>SynStack()<CR>
function! <SID>SynStack()
if !exists("*synstack")
return
endif
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
endfunc
" Arduino related stuffs
" From https://github.com/GrayHats/arduino_scripts
autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino
" gruvbox colorscheme <https://github.com/morhetz/gruvbox/wiki/Usage>
colorscheme lucario
set background=dark " Setting dark mode
" airline
" let g:airline_powerline_fonts = 1
"if !exists('g:airline_symbols')
" let g:airline_symbols = {}
"endif
"let g:airline_symbols.space = "\ua0"
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_symbols.crypt = 'ð'
let g:airline_symbols.linenr = '☰'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = ''
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.maxlinenr = ''
let g:airline_symbols.maxlinenr = '㏑'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.spell = 'Ꞩ'
let g:airline_symbols.notexists = 'Ɇ'
let g:airline_symbols.whitespace = 'Ξ'