|
|
@ -11,6 +11,13 @@ Plugin 'VundleVim/Vundle.vim' |
|
|
|
Plugin 'scrooloose/nerdtree' |
|
|
|
Plugin 'scrooloose/nerdtree' |
|
|
|
Plugin 'kien/ctrlp.vim' |
|
|
|
Plugin 'kien/ctrlp.vim' |
|
|
|
Plugin 'fatih/vim-go' |
|
|
|
Plugin 'fatih/vim-go' |
|
|
|
|
|
|
|
Plugin 'christoomey/vim-tmux-navigator' |
|
|
|
|
|
|
|
Plugin 'shougo/vinarise' |
|
|
|
|
|
|
|
Plugin 'tpope/vim-fugitive' |
|
|
|
|
|
|
|
Plugin 'benekastah/neomake' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Plugin 'airblade/vim-gitgutter' |
|
|
|
|
|
|
|
"Bundle 'christoomey/vim-tmux-navigator' |
|
|
|
|
|
|
|
|
|
|
|
call vundle#end() |
|
|
|
call vundle#end() |
|
|
|
filetype plugin indent on |
|
|
|
filetype plugin indent on |
|
|
@ -20,7 +27,8 @@ filetype plugin indent on |
|
|
|
"------NORMAL CONFIGS------ |
|
|
|
"------NORMAL CONFIGS------ |
|
|
|
colorscheme cottonmouse |
|
|
|
colorscheme cottonmouse |
|
|
|
"colorscheme jellybeans |
|
|
|
"colorscheme jellybeans |
|
|
|
command Mouse set mouse=a |
|
|
|
"command Mouse set mouse=a |
|
|
|
|
|
|
|
set mouse= |
|
|
|
syntax enable |
|
|
|
syntax enable |
|
|
|
au BufRead,BufNewFile *.hy set filetype=hy |
|
|
|
au BufRead,BufNewFile *.hy set filetype=hy |
|
|
|
"filetype plugin indent on |
|
|
|
"filetype plugin indent on |
|
|
@ -30,9 +38,34 @@ set cursorline |
|
|
|
" tabformatting... |
|
|
|
" tabformatting... |
|
|
|
"set listchars=tab:\|\ |
|
|
|
"set listchars=tab:\|\ |
|
|
|
"set list |
|
|
|
"set list |
|
|
|
|
|
|
|
hi LineNr ctermbg=NONE |
|
|
|
|
|
|
|
hi LineNr ctermfg=DarkGrey |
|
|
|
|
|
|
|
" |
|
|
|
|
|
|
|
set tabstop=4 |
|
|
|
|
|
|
|
set shiftwidth=4 |
|
|
|
|
|
|
|
"set expandtab |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autocmd Filetype html call SetHtmlOptions() |
|
|
|
|
|
|
|
function SetHtmlOptions() |
|
|
|
|
|
|
|
setlocal ts=2 sts=2 sw=2 |
|
|
|
|
|
|
|
setlocal expandtab |
|
|
|
|
|
|
|
"setlocal foldmethod=syntax |
|
|
|
|
|
|
|
setlocal foldmethod=indent |
|
|
|
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autocmd Filetype css setlocal ts=2 sts=2 sw=2 |
|
|
|
|
|
|
|
autocmd Filetype gitcommit setlocal spell textwidth=72 |
|
|
|
"------/NORMAL CONFIGS----- |
|
|
|
"------/NORMAL CONFIGS----- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"------VIM KEYBIND CONFIGS------- |
|
|
|
|
|
|
|
nnoremap <c-j> <c-w>j |
|
|
|
|
|
|
|
nnoremap <c-k> <c-w>k |
|
|
|
|
|
|
|
nnoremap <c-h> <c-w>h |
|
|
|
|
|
|
|
nnoremap <c-l> <c-w>l |
|
|
|
|
|
|
|
"------/VIM KEYBIND CONFIGS------ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"------GO-VIM CONFIGS------ |
|
|
|
"------GO-VIM CONFIGS------ |
|
|
|
let g:go_fmt_fail_silently = 1 |
|
|
|
let g:go_fmt_fail_silently = 1 |
|
|
|
"let g:go_fmt_autosave = 0 |
|
|
|
"let g:go_fmt_autosave = 0 |
|
|
@ -44,21 +77,34 @@ hi LineNr ctermbg=NONE |
|
|
|
hi LineNr ctermfg=DarkGrey |
|
|
|
hi LineNr ctermfg=DarkGrey |
|
|
|
"------/COLOR CONFIGS----- |
|
|
|
"------/COLOR CONFIGS----- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"------ TERMINAL CONFIGS------ |
|
|
|
|
|
|
|
:au BufEnter * if &buftype == 'terminal' | :startinsert | endif |
|
|
|
|
|
|
|
":tnoremap <A-h> <C-\><C-n><C-w>h |
|
|
|
|
|
|
|
":tnoremap <A-j> <C-\><C-n><C-w>j |
|
|
|
|
|
|
|
":tnoremap <A-k> <C-\><C-n><C-w>k |
|
|
|
|
|
|
|
":tnoremap <A-l> <C-\><C-n><C-w>l |
|
|
|
|
|
|
|
:nnoremap <A-h> <C-w>h |
|
|
|
|
|
|
|
:nnoremap <A-j> <C-w>j |
|
|
|
|
|
|
|
:nnoremap <A-k> <C-w>k |
|
|
|
|
|
|
|
:nnoremap <A-l> <C-w>l |
|
|
|
|
|
|
|
"------/TERMINAL CONFIGS----- |
|
|
|
|
|
|
|
|
|
|
|
"------STATUS LINE------- |
|
|
|
"" "------HEX MODE------ |
|
|
|
function Themeit() |
|
|
|
"" " vim -b : edit binary using xxd-format! |
|
|
|
set noshowmode |
|
|
|
"" augroup Binary |
|
|
|
set noruler |
|
|
|
"" au! |
|
|
|
set laststatus=2 |
|
|
|
"" au BufReadPre *.bin let &bin=1 |
|
|
|
set statusline= |
|
|
|
"" au BufReadPost *.bin if &bin | %!xxd |
|
|
|
set statusline=[%t] " full filename |
|
|
|
"" au BufReadPost *.bin set ft=xxd | endif |
|
|
|
set statusline+=[%{''.(&fenc!=''?&fenc:&enc).''}] " Encoding |
|
|
|
"" au BufWritePre *.bin if &bin | %!xxd -r |
|
|
|
set statusline+=%= " right align |
|
|
|
"" au BufWritePre *.bin endif |
|
|
|
set statusline+=%14.([%l:%c%V]%) " line and column |
|
|
|
"" au BufWritePost *.bin if &bin | %!xxd |
|
|
|
set statusline+=[%P\] " percentage of file |
|
|
|
"" au BufWritePost *.bin set nomod | endif |
|
|
|
"set statusline+=\ " spaces |
|
|
|
"" augroup END |
|
|
|
set statusline+=[%{strftime('%H:%M')}] " time |
|
|
|
"" "------/HEX MODE------ |
|
|
|
endfunction |
|
|
|
|
|
|
|
" now this only runs when we call 'themeblastr' |
|
|
|
|
|
|
|
command Themeblastr exec Themeit() |
|
|
|
"------NEOMAKE CONFIGS----- |
|
|
|
"------/STATUS LINE------ |
|
|
|
" this is the syntastic-like plugin |
|
|
|
|
|
|
|
autocmd! BufWritePost * Neomake |
|
|
|
|
|
|
|
"-----/NEOMAKE CONFIGS----- |
|
|
|