2017-11-15 15:11:07 -05:00
|
|
|
|
"""Weird tmux settings
|
2017-11-19 12:31:30 -05:00
|
|
|
|
let &t_Co=256
|
2017-11-15 15:11:07 -05:00
|
|
|
|
|
2018-06-11 21:29:46 -04:00
|
|
|
|
""" Load plugins
|
|
|
|
|
call plug#begin('~/.vim/plugged')
|
|
|
|
|
Plug 'whatyouhide/vim-gotham'
|
2018-06-11 23:57:16 -04:00
|
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
|
Plug 'vim-airline/vim-airline-themes'
|
2018-06-12 16:58:52 -04:00
|
|
|
|
Plug 'Shougo/unite.vim'
|
|
|
|
|
Plug 'devjoe/vim-codequery'
|
2019-11-28 11:49:59 -05:00
|
|
|
|
Plug 'fatih/vim-go'
|
2018-06-11 21:29:46 -04:00
|
|
|
|
call plug#end()
|
2017-11-15 15:11:07 -05:00
|
|
|
|
|
2018-06-11 21:29:46 -04:00
|
|
|
|
"""" General Settings
|
2018-06-11 23:57:16 -04:00
|
|
|
|
"" leader
|
|
|
|
|
let mapleader=","
|
2018-06-12 16:58:52 -04:00
|
|
|
|
|
2018-06-11 23:57:16 -04:00
|
|
|
|
"" vim-airline
|
|
|
|
|
if !exists('g:airline_symbols')
|
|
|
|
|
let g:airline_symbols = {}
|
|
|
|
|
endif
|
|
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
|
|
|
let g:airline#extensions#tabline#left_sep = ' '
|
|
|
|
|
let g:airline#extensions#tabline#left_alt_sep = '|'
|
|
|
|
|
let g:airline#extensions#tabline#formatter = 'jsformatter'
|
|
|
|
|
let g:airline_left_sep = '»'
|
|
|
|
|
let g:airline_left_sep = '▶'
|
|
|
|
|
let g:airline_right_sep = '«'
|
|
|
|
|
let g:airline_right_sep = '◀'
|
|
|
|
|
let g:airline_symbols.linenr = '␊'
|
|
|
|
|
let g:airline_symbols.linenr = ''
|
|
|
|
|
let g:airline_symbols.linenr = '¶'
|
|
|
|
|
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 = 'Ξ'
|
|
|
|
|
let g:airline_theme='jellybeans'
|
|
|
|
|
|
2018-06-12 16:58:52 -04:00
|
|
|
|
"" vim-codequery
|
|
|
|
|
nnoremap <leader>c :CodeQueryMenu Unite Full<CR>
|
|
|
|
|
nnoremap <leader>s :CodeQuery Symbol<CR>
|
|
|
|
|
nnoremap <leader>l :CodeQuery Call<CR>
|
|
|
|
|
nnoremap <leader>r :CodeQuery Caller<CR>
|
|
|
|
|
nnoremap <leader>e :CodeQuery Callee<CR>
|
|
|
|
|
|
2020-10-23 13:41:20 -04:00
|
|
|
|
"" Set default tabs to 2 spaces
|
2019-11-26 14:18:41 -05:00
|
|
|
|
set tabstop=2
|
|
|
|
|
set shiftwidth=2
|
2017-10-26 01:39:39 -04:00
|
|
|
|
set expandtab
|
2018-06-11 23:57:16 -04:00
|
|
|
|
|
2018-06-12 16:58:52 -04:00
|
|
|
|
"" Stupid backspace setting
|
2018-09-27 13:50:04 -04:00
|
|
|
|
set backspace=2
|
2018-06-12 16:58:52 -04:00
|
|
|
|
|
2018-06-11 21:29:46 -04:00
|
|
|
|
"" Remember location in file
|
2017-10-26 01:39:39 -04:00
|
|
|
|
if has("autocmd")
|
|
|
|
|
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
|
|
|
|
endif
|
|
|
|
|
|
2018-06-11 21:29:46 -04:00
|
|
|
|
"" Line numbers
|
2017-10-26 01:39:39 -04:00
|
|
|
|
set number
|
2017-10-24 15:28:32 -04:00
|
|
|
|
|
2018-06-11 21:29:46 -04:00
|
|
|
|
"" Autoindent
|
2017-11-12 17:01:19 -05:00
|
|
|
|
set autoindent
|
|
|
|
|
|
2018-06-11 21:29:46 -04:00
|
|
|
|
"" Colors
|
2017-11-15 15:11:07 -05:00
|
|
|
|
set background=dark
|
2017-11-18 22:48:39 -05:00
|
|
|
|
colorscheme gotham256
|
2018-10-18 14:32:07 -04:00
|
|
|
|
|
|
|
|
|
"" Language/filetype settings
|
|
|
|
|
syntax enable
|
2020-01-20 22:58:58 -05:00
|
|
|
|
autocmd FileType go setlocal tabstop=2 shiftwidth=2
|
2020-10-23 13:41:20 -04:00
|
|
|
|
autocmd FileType py setlocal tabstop=4 shiftwidth=4 expandtab
|
|
|
|
|
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 expandtab
|
2017-10-26 01:39:39 -04:00
|
|
|
|
|
2018-06-11 23:57:16 -04:00
|
|
|
|
"" Ctags
|
2018-06-12 16:58:52 -04:00
|
|
|
|
set path+=;/
|
|
|
|
|
set tags+=c_tags;/
|
2018-07-02 00:00:33 -04:00
|
|
|
|
set tags+=tags;/
|
2018-06-12 16:58:52 -04:00
|
|
|
|
" By default ^W ^] splits horizontal, so now ^] splits vertically
|
2018-06-11 23:57:16 -04:00
|
|
|
|
map <C-\> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
|
2017-10-26 01:39:39 -04:00
|
|
|
|
|
2018-06-11 21:29:46 -04:00
|
|
|
|
"" Window stuff
|
2017-11-12 17:01:19 -05:00
|
|
|
|
map <C-h> <C-w>h
|
|
|
|
|
map <C-j> <C-w>j
|
|
|
|
|
map <C-k> <C-w>k
|
|
|
|
|
map <C-l> <C-w>l
|
2018-06-11 23:57:16 -04:00
|
|
|
|
|
|
|
|
|
"" Buffer Stuff
|
|
|
|
|
noremap <leader>d : bd<CR>
|
|
|
|
|
noremap <leader>1 : 1b<CR>
|
|
|
|
|
noremap <leader>2 : 2b<CR>
|
|
|
|
|
noremap <leader>3 : 3b<CR>
|
|
|
|
|
noremap <leader>4 : 4b<CR>
|
|
|
|
|
noremap <leader>5 : 5b<CR>
|
|
|
|
|
noremap <leader>6 : 6b<CR>
|
|
|
|
|
noremap <leader>7 : 7b<CR>
|
|
|
|
|
noremap <leader>8 : 8b<CR>
|
|
|
|
|
noremap <leader>9 : 9b<CR>
|
|
|
|
|
noremap <leader>10 : 10b<CR>
|
2020-10-23 13:38:16 -04:00
|
|
|
|
|
|
|
|
|
"" Scroll stuff
|
|
|
|
|
set mouse=a
|