Last active
May 23, 2019 08:25
-
-
Save kristm/c51d87f20e764da273a3 to your computer and use it in GitHub Desktop.
pure heroine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
filetype plugin indent on | |
filetype plugin on | |
syntax on | |
set clipboard=unnamed | |
"colorscheme desert "badwolf | |
"colorscheme gummybears | |
"colorscheme tokyo-metro | |
colorscheme pablo | |
set number | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set smarttab | |
set autoindent | |
let mapleader = "," | |
vnoremap // y/<C-R>"<CR> | |
if has("gui_running") | |
if has("gui_gtk2") | |
set guifont=Inconsolata\ 12 | |
elseif has("gui_macvim") | |
set guifont=Menlo\ Regular:h12 | |
set transparency=5 | |
"colors desert | |
colorscheme badwolf | |
elseif has("gui_win32") | |
set guifont=Consolas:h11:cANSI | |
endif | |
endif | |
set ts=2 sw=2 et | |
let g:indent_guides_start_level = 2 | |
au BufRead,BufNewFile *.hbs set ft=haml | |
au BufRead,BufNewFile *.json set ft=ruby | |
au BufRead,BufNewFile *.coffee set ft=ruby | |
au BufRead,BufNewFile *.hamlbars set ft=haml | |
au BufRead,BufNewFile *.go set ft=go | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l | |
nnoremap n nzz | |
nnoremap N Nzz | |
nnoremap <S-h> : set hlsearch!<CR> | |
set wildignore+=*/tmp/*,*/public/*,*/build/*,*node_modules/*,*git_modules/*,*artifacts/*,*.so,*.swp,*.zip,*.gz | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
"speed up ctrlp | |
let g:ctrlp_cache_dir = $HOME . '/.cache/ctrlp' | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\.git$\|\.yardoc\|public$|log\|tmp$|artifacts$', | |
\ 'file': '\.so$\|\.dat$|\.DS_Store$' | |
\ } | |
"let g:ctrlp_cmd = 'CtrlPMRU' | |
let g:ctrlp_max_files=0 | |
let g:ctrlp_root_markers = ['.ctrlp'] | |
map <C-n> :NERDTreeToggle<CR> | |
map <C-u> :Gblame<CR> | |
map <C-p> :FZF<CR> | |
set rtp+=/usr/local/opt/fzf | |
" The Silver Searcher | |
"if executable('ag') | |
" " Use ag over grep | |
" set grepprg=ag\ --nogroup\ --nocolor | |
" | |
" " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore | |
" let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' | |
" | |
" " ag is fast enough that CtrlP doesn't need to cache | |
" let g:ctrlp_use_caching = 0 | |
"endif | |
" bind K to grep word under cursor | |
nnoremap K :Ag! "\b<C-R><C-W>\b"<CR>:cw<CR> | |
highlight OverLength ctermbg=DarkCyan ctermfg=white guibg=#592929 | |
match OverLength /\%81v/ | |
"let g:Powerline_symbols = 'fancy' | |
set laststatus=2 | |
set runtimepath^=~/.vim/bundle/ag | |
"function! s:format_go() abort | |
" function Fmt() | |
" :!go fmt % | |
" endfunction | |
" augroup kristm-gofmt | |
" autocmd! | |
" autocmd BufWritePost *.go call <SID>format_go() | |
" augroup END | |
:command! Fmt !go fmt % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment