stuff
This commit is contained in:
parent
d49165685e
commit
97911522d5
5
Rakefile
5
Rakefile
@ -2,6 +2,8 @@ require 'rake'
|
|||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require File.join(File.dirname(__FILE__), 'bin', 'yadr', 'vundle')
|
require File.join(File.dirname(__FILE__), 'bin', 'yadr', 'vundle')
|
||||||
|
|
||||||
|
# TODO install for vim_instant_markdown
|
||||||
|
|
||||||
desc "Hook our dotfiles into system-standard positions."
|
desc "Hook our dotfiles into system-standard positions."
|
||||||
task :install => [:submodule_init, :submodules] do
|
task :install => [:submodule_init, :submodules] do
|
||||||
puts
|
puts
|
||||||
@ -47,8 +49,9 @@ end
|
|||||||
task :install_ycm do
|
task :install_ycm do
|
||||||
if want_to_install?('YouCompleteMe')
|
if want_to_install?('YouCompleteMe')
|
||||||
run %{
|
run %{
|
||||||
|
sudo apt install cmake -y
|
||||||
cd $HOME/.vim/bundle/YouCompleteMe/
|
cd $HOME/.vim/bundle/YouCompleteMe/
|
||||||
./install.sh
|
./install.py
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
10
ruby/gemrc
10
ruby/gemrc
@ -1,8 +1,10 @@
|
|||||||
---
|
---
|
||||||
:update_sources: true
|
:backtrace: false
|
||||||
|
:bulk_threshold: 1000
|
||||||
:sources:
|
:sources:
|
||||||
- http://rubygems.org
|
- http://rubygems.org
|
||||||
:benchmark: false
|
- https://gems.ruby-china.org/
|
||||||
:backtrace: false
|
:update_sources: true
|
||||||
:verbose: true
|
:verbose: true
|
||||||
gem: --no-document
|
benchmark: false
|
||||||
|
gem: "--no-document"
|
||||||
|
@ -1,21 +1,19 @@
|
|||||||
snippet react "React template" b
|
snippet reactComponent "React template" b
|
||||||
import React, {Component, PropTypes} from 'react'
|
import React, { Component } from 'react'
|
||||||
import {connect} from 'react-redux'
|
|
||||||
|
|
||||||
class ${1:C} extends Component {
|
export default class extends Component {
|
||||||
render () {
|
render () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
endsnippet
|
||||||
|
|
||||||
$1.propTypes = {
|
snippet reactConnect "React template" b
|
||||||
self: PropTypes.object,
|
import component from './component'
|
||||||
location: PropTypes.object
|
import { connect } from 'react-redux'
|
||||||
}
|
|
||||||
|
|
||||||
export default connect((state, ownProps) => {
|
export default connect((state, ownProps) => ({
|
||||||
return {
|
}), {
|
||||||
}
|
})(component)
|
||||||
})($1)
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet TODO "Javascript Todo" b
|
snippet TODO "Javascript Todo" b
|
||||||
|
@ -3,8 +3,7 @@ if exists("g:ctrlp_user_command")
|
|||||||
endif
|
endif
|
||||||
if executable('ag')
|
if executable('ag')
|
||||||
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
|
||||||
let g:ctrlp_user_command =
|
let g:ctrlp_user_command = 'ag %s --files-with-matches -g "" --ignore "\.git$\|\.hg$\|\.svn$"'
|
||||||
\ 'ag %s --files-with-matches -g "" --ignore "\.git$\|\.hg$\|\.svn$"'
|
|
||||||
|
|
||||||
" ag is fast enough that CtrlP doesn't need to cache
|
" ag is fast enough that CtrlP doesn't need to cache
|
||||||
let g:ctrlp_use_caching = 0
|
let g:ctrlp_use_caching = 0
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
let g:instant_markdown_slow = 0
|
let g:instant_markdown_slow = 1
|
||||||
|
let g:instant_markdown_autostart = 1
|
||||||
augroup filetype_markdown
|
augroup filetype_markdown
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType mkd setlocal spell
|
autocmd FileType mkd setlocal spell
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
" Set the shell to bash so we inherit its path, to make sure
|
" Set the shell to bash so we inherit its path, to make sure
|
||||||
" we inherit its path. This affects :Rtags finding the right
|
" we inherit its path. This affects :Rtags finding the right
|
||||||
" path to homebrewed ctags rather than the XCode version of ctags
|
" path to homebrewed ctags rather than the XCode version of ctags
|
||||||
set shell=/usr/bin/zsh\ -l
|
if has('win32')
|
||||||
|
elseif has('mac')
|
||||||
|
set shell=/usr/local/bin/zsh\ -l
|
||||||
|
elseif has('unix')
|
||||||
|
set shell=/usr/bin/zsh\ -l
|
||||||
|
endif
|
||||||
|
@ -1,31 +1,31 @@
|
|||||||
" Make it beautiful - colors and fonts
|
"" Make it beautiful - colors and fonts
|
||||||
|
|
||||||
if has("gui_running")
|
"if has("gui_running")
|
||||||
"tell the term has 256 colors
|
""tell the term has 256 colors
|
||||||
set t_Co=256
|
"set t_Co=256
|
||||||
|
|
||||||
" Show tab number (useful for Cmd-1, Cmd-2.. mapping)
|
"" Show tab number (useful for Cmd-1, Cmd-2.. mapping)
|
||||||
" For some reason this doesn't work as a regular set command,
|
"" For some reason this doesn't work as a regular set command,
|
||||||
" (the numbers don't show up) so I made it a VimEnter event
|
"" (the numbers don't show up) so I made it a VimEnter event
|
||||||
autocmd VimEnter * set guitablabel=%N:\ %t\ %M
|
"autocmd VimEnter * set guitablabel=%N:\ %t\ %M
|
||||||
|
|
||||||
set lines=60
|
"set lines=60
|
||||||
set columns=190
|
"set columns=190
|
||||||
|
|
||||||
if has("gui_gtk2")
|
"if has("gui_gtk2")
|
||||||
set guifont=Inconsolata\ XL\ 12,Inconsolata\ 15,Monaco\ 12
|
"set guifont=Inconsolata\ XL\ 12,Inconsolata\ 15,Monaco\ 12
|
||||||
else
|
"else
|
||||||
set guifont=Inconsolata\ XL:h17,Inconsolata:h20,Monaco:h17
|
"set guifont=Inconsolata\ XL:h17,Inconsolata:h20,Monaco:h17
|
||||||
end
|
"end
|
||||||
else
|
"else
|
||||||
let g:CSApprox_loaded = 1
|
"let g:CSApprox_loaded = 1
|
||||||
|
|
||||||
" For people using a terminal that is not Solarized
|
"" For people using a terminal that is not Solarized
|
||||||
if exists("g:yadr_using_unsolarized_terminal")
|
"if exists("g:yadr_using_unsolarized_terminal")
|
||||||
let g:solarized_termcolors=256
|
"let g:solarized_termcolors=256
|
||||||
let g:solarized_termtrans=1
|
"let g:solarized_termtrans=1
|
||||||
end
|
"end
|
||||||
endif
|
"endif
|
||||||
|
|
||||||
colorscheme solarized
|
"colorscheme solarized
|
||||||
set background=dark
|
"set background=dark
|
||||||
|
@ -185,3 +185,5 @@ nmap <leader>ej :tabedit ~/.jshintrc<cr>'tzo
|
|||||||
" move around compile errors
|
" move around compile errors
|
||||||
nnoremap <leader>n :cnext<cr>
|
nnoremap <leader>n :cnext<cr>
|
||||||
nnoremap <leader>p :cprevious<cr>
|
nnoremap <leader>p :cprevious<cr>
|
||||||
|
|
||||||
|
nnoremap <leader>l :redraw!<cr>
|
||||||
|
@ -22,6 +22,7 @@ Bundle "gmarik/vundle"
|
|||||||
" ~/.vim/vundles/ to edit them:
|
" ~/.vim/vundles/ to edit them:
|
||||||
runtime ruby.vundle
|
runtime ruby.vundle
|
||||||
runtime languages.vundle
|
runtime languages.vundle
|
||||||
|
runtime markdown.vundle
|
||||||
runtime git.vundle
|
runtime git.vundle
|
||||||
runtime appearance.vundle
|
runtime appearance.vundle
|
||||||
runtime textobjects.vundle
|
runtime textobjects.vundle
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
Bundle "chrisbra/color_highlight.git"
|
Bundle "chrisbra/color_highlight.git"
|
||||||
Bundle "skwp/vim-colors-solarized"
|
|
||||||
Bundle "itchyny/lightline.vim"
|
Bundle "itchyny/lightline.vim"
|
||||||
Bundle "jby/tmux.vim.git"
|
Bundle "jby/tmux.vim.git"
|
||||||
Bundle "morhetz/gruvbox"
|
Bundle "morhetz/gruvbox"
|
||||||
|
@ -5,10 +5,7 @@ Bundle 'scrooloose/syntastic.git'
|
|||||||
Bundle 'skwp/vim-html-escape'
|
Bundle 'skwp/vim-html-escape'
|
||||||
Bundle 'ternjs/tern_for_vim'
|
Bundle 'ternjs/tern_for_vim'
|
||||||
Bundle 'jparise/vim-graphql'
|
Bundle 'jparise/vim-graphql'
|
||||||
Bundle 'plasticboy/vim-markdown'
|
|
||||||
Bundle 'suan/vim-instant-markdown'
|
|
||||||
Bundle 'evanmiller/nginx-vim-syntax'
|
Bundle 'evanmiller/nginx-vim-syntax'
|
||||||
Bundle 'derekwyatt/vim-scala'
|
Bundle 'derekwyatt/vim-scala'
|
||||||
Bundle 'ktvoelker/sbt-vim'
|
|
||||||
Bundle 'scrooloose/nerdcommenter'
|
Bundle 'scrooloose/nerdcommenter'
|
||||||
Bundle 'klen/python-mode'
|
Bundle 'klen/python-mode'
|
||||||
|
2
vim/vundles/markdown.vundle
Normal file
2
vim/vundles/markdown.vundle
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Bundle 'tpope/vim-markdown'
|
||||||
|
Bundle 'suan/vim-instant-markdown'
|
@ -13,6 +13,8 @@ bindkey -M viins '^s' history-incremental-pattern-search-forward
|
|||||||
bindkey -M viins '^p' up-line-or-history
|
bindkey -M viins '^p' up-line-or-history
|
||||||
bindkey -M viins '^n' down-line-or-history
|
bindkey -M viins '^n' down-line-or-history
|
||||||
bindkey -M viins '^y' yank
|
bindkey -M viins '^y' yank
|
||||||
|
bindkey -M viins '^f' forward-char
|
||||||
|
bindkey -M viins '^b' backward-char
|
||||||
bindkey -M viins '^w' backward-kill-word
|
bindkey -M viins '^w' backward-kill-word
|
||||||
bindkey -M viins '^u' backward-kill-line
|
bindkey -M viins '^u' backward-kill-line
|
||||||
bindkey -M viins '^?' backward-delete-char
|
bindkey -M viins '^?' backward-delete-char
|
||||||
@ -35,6 +37,8 @@ bindkey -M vicmd '^s' history-incremental-pattern-search-forward
|
|||||||
bindkey -M vicmd '^p' up-line-or-history
|
bindkey -M vicmd '^p' up-line-or-history
|
||||||
bindkey -M vicmd '^n' down-line-or-history
|
bindkey -M vicmd '^n' down-line-or-history
|
||||||
bindkey -M vicmd '^y' yank
|
bindkey -M vicmd '^y' yank
|
||||||
|
bindkey -M vicmd '^f' forward-char
|
||||||
|
bindkey -M vicmd '^b' backward-char
|
||||||
bindkey -M vicmd '^w' backward-kill-word
|
bindkey -M vicmd '^w' backward-kill-word
|
||||||
bindkey -M vicmd '^u' backward-kill-line
|
bindkey -M vicmd '^u' backward-kill-line
|
||||||
bindkey -M vicmd '/' vi-history-search-forward
|
bindkey -M vicmd '/' vi-history-search-forward
|
||||||
|
Loading…
Reference in New Issue
Block a user