Closed jdsimcoe closed 8 years ago
I'm using the term color scheme that comes bundled in with vim-airline. The term theme defaults to the terminal's colors and works well with Hyperblue. As far as my config goes, here's my vimrc:
" With a map leader it's possible to do extra key combinations
let mapleader = ","
let g:mapleader = ","
" Remap buffer switching
set hidden
nnoremap <C-N> :bnext<CR>
nnoremap <C-P> :bprev<CR>
" Sets how many lines of history VIM has to remember
set history=500
" Set line numbers
set number
" Enable filetype plugins
filetype plugin on
filetype indent on
set autoread " Set to auto read when a file is changed from the outside
nmap <leader>w :w!<cr> " Fast saving
set so=7 " Set 7 lines to the cursor - when moving vertically using j/k
set ruler " Always show the current position
set cmdheight=1 " Height of the command bar
set hid " Hide the buffer when it is abandoned
set ignorecase " Ignore case when searching
set smartcase " When searching, try to be smart about cases
set hlsearch " Highlight search results
set incsearch " Makes search act like search in modern browsers
set lazyredraw " Don't redraw while executing macros
set showmatch " Show matching brackets when text indicator is over them
set mat=2 " How many tenths of a second to blink when matching brackets
" No more annoying sound on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500
" Enable syntax highlighting
syntax enable
try
colorscheme homebrew
catch
endtry
set background=dark
" Set extra options when running in GUI mode
if has("gui_running")
set guioptions-=T
set guioptions-=e
set t_Co=256
set guitablabel=%M\ %t
endif
set encoding=utf8 " Set utf8 as standard encoding
set ffs=unix,dos,mac " Use Unix as the standard file type
" Airline
let g:airline_theme="term"
let g:airline#extensions#tabline#enabled = 1
" Sets airline to work with powerline compatible fonts
let g:airline_powerline_fonts = 1
let g:tmuxline_preset = {
\'a' : '#S',
\'b' : '#W',
\'c' : '#H',
\'win' : '#I #W',
\'cwin' : '#I #W',
\'x' : '%a',
\'y' : '#W %R',
\'z' : '#H' }
" Turn backup off
set nobackup
set nowb
set noswapfile
set expandtab " Use spaces instead of tabs
set smarttab " Be smart when using tabs
set shiftwidth=2
set tabstop=2
" Linebreak on 80 characters
set lbr
set nolist
set tw=0
set wrap
" Syntastic settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
set ai " Auto indent
set si " Smart indent
set wrap "Wrap lines
" Visual mode pressing * or # searches for the current selection
vnoremap <silent> * :call VisualSelection('f', '')<CR>
vnoremap <silent> # :call VisualSelection('b', '')<CR>
" Treat long lines as line breaks
map j gj
map k gk
" Map <Space to / (search) and Ctrl-<space> to ? (backwards search)
map <space> /
map <c-space> ?
"" Return to last edit position when opening files
"autocmd BufReadPost *
" \ if line("'\"") > 0 && line("'/"") <= line("$") |
" \ exe "normal! g`\"" |
" \ endif
" Remember info about open buffers on close
"set viminfo^=%
" Always show the status line
set laststatus=2
" CtrlP
let g:ctrlp_working_path_mode = 0
let g:ctrlp_map = '<c-f>'
map <leader>j :CtrlP<cr>
map <c-b> :CtrlPBuffer<cr>
let g:ctrlp_max_height = 20
let g:ctrlp_custom_ignore = 'node_modules\|^\.DS_Store\|^\.git'
" NERDTree
let g:NERDTreeWinPos = "left"
let NERDTreeShowHidden=0
let g:NERDTreeWinSize=35
" Better tab switching
map <leader>nn :tabnew<cr>
map <leader>n :tabn<cr>
map <leader>p :tabp<cr>
map <leader>x :tabclose<cr>
" Delete trailing whitespace on save
func! DeleteTrailingWS()
exe "normal mz"
%s/\s\+$//ge
exe "normal `z"
endfunc
autocmd BufWrite *.html :call DeleteTrailingWS()
autocmd BufWrite *.js :call DeleteTrailingWS()
" Javascript Selection
" au FileType javascript call JavaScriptFold()
au FileType javascript setl fen
au FileType javascript setl nocindent
au FileType javascript imap <c-t> $log();<esc>hi
au FileType javascript imap <c-a> alert();<esc>hi
au FileType javascript inoremap <buffer> $r return
au FileType javascript inoremap <buffer> $f //--- PH ----------------------------------------------<esc>FP2xi
function! JavascriptFold()
setl foldmethod=syntax
setl foldlevelstart=1
syn region foldBraces start=/{/ end=/}/ transparent fold keepend extend
function! FoldText()
return substitute(getline(v:foldstart), '{.*', '{...}', '')
endfunction
setl foldtext=FoldText()
endfunction
" Syntastic
let g:syntastic_javascript_checkers = ['jshint']
" Git gutter
let g:gitgutter_enabled=0
nnoremap <silent> <leader>d :GitGutterToggle<cr>
" Make VIM remember position in file after reopen
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" Better text file encryption
set cm=blowfish
call plug#begin('~/.vim/bundle')
" Define bundles via Github repos
Plug 'christoomey/vim-run-interactive'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'fatih/vim-go'
Plug 'jceb/vim-orgmode'
Plug 'janko-m/vim-test'
Plug 'pbrisbin/vim-mkdir'
Plug 'scrooloose/syntastic'
Plug 'scrooloose/nerdtree'
Plug 'edkolev/tmuxline.vim'
Plug 'slim-template/vim-slim'
Plug 'tpope/vim-bundler'
Plug 'tpope/vim-endwise'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rails'
Plug 'tpope/vim-rake'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround'
Plug 'vim-scripts/tComment'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'wookiehangover/jshint.vim'
Plug 'Shutnik/jshint2.vim'
Plug 'valloric/youcompleteme'
Plug 'mattn/emmet-vim'
Plug 'lambdatoast/elm.vim'
call plug#end()
It looks like this colorscheme homebrew
is setting your theme to homebrew. Can't seem to find that color scheme anywhere? Thanks for the help!
Homebrew is one of the default schemes that comes on all Apple computers. If you're running on a Mac, you've got it
nice!
Hey @tylerreckart what Vim and powerline color scheme and config are you using. It looks like your Vim colors match your Hyperblue scheme.