forked from mhamrah/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc.local
58 lines (45 loc) · 1.22 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
set termguicolors
if has('python3')
silent! python3 1
endif
let g:airline_powerline_fonts = 1
let g:airline_theme = 'hammer'
let g:tmuxline_preset = {
\'a' : '#S',
\'win' : '#I:#W',
\'cwin' : '#I:#W',
\'x' : '#(~/dotfiles/bin/kubectx.sh)',
\'y' : '#(~/dotfiles/bin/battery.sh)',
\'z' : '#H',
\'options': {
\'status-justify': 'left'}
\}
let g:tmuxline_separators = {
\ 'left' : '',
\ 'left_alt': '',
\ 'right' : '',
\ 'right_alt' : '',
\ 'space' : ' '}
nmap <leader>n :NERDTreeToggle<cr>
"nmap <leader>n :NERDTreeFind<cr>
colorscheme hammer
"colorscheme elflord
"colorscheme alduin
map <leader>qw <C-w>q<cr>
map <leader>bd :BD<cr>
map <leader>g<cr> :FixWhitespace<cr>
set autowrite
set autowriteall
set nowritebackup
inoremap jj <ESC>
"use ; as the command leader
nnoremap ; :
vnoremap ; :
set mouse=a
set omnifunc=syntaxcomplete#Complete
set relativenumber
:au FocusLost * silent! wa
autocmd FileType yaml setlocal expandtab
map <F10> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
\ . synIDattr(synID(line("."),col("."),1),"name") . "> lo<"
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>