commit d11c3f444d16fd032c611c4324bd720fb1d076d8 Author: Alex Yatskov Date: Tue Nov 25 17:57:04 2014 +0900 Initial commit diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..d837ea6 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,63 @@ +[submodule ".vim/bundle/vim-easymotion"] + path = .vim/bundle/vim-easymotion + url = https://github.com/Lokaltog/vim-easymotion.git +[submodule ".vim/bundle/vim-airline"] + path = .vim/bundle/vim-airline + url = https://github.com/bling/vim-airline.git +[submodule ".vim/bundle/vim-latex"] + path = .vim/bundle/vim-latex + url = git://git.code.sf.net/p/vim-latex/vim-latex +[submodule ".vim/bundle/vim-easy-align"] + path = .vim/bundle/vim-easy-align + url = https://github.com/junegunn/vim-easy-align.git +[submodule ".vim/bundle/vim-surround"] + path = .vim/bundle/vim-surround + url = https://github.com/tpope/vim-surround +[submodule ".vim/bundle/vim-fugitive"] + path = .vim/bundle/vim-fugitive + url = https://github.com/tpope/vim-fugitive.git +[submodule ".vim/bundle/vim-pathogen"] + path = .vim/bundle/vim-pathogen + url = https://github.com/tpope/vim-pathogen.git +[submodule ".vim/bundle/vim-commentary"] + path = .vim/bundle/vim-commentary + url = https://github.com/tpope/vim-commentary.git +[submodule ".vim/bundle/vim-repeat"] + path = .vim/bundle/vim-repeat + url = https://github.com/tpope/vim-repeat +[submodule ".vim/bundle/vim-javascript"] + path = .vim/bundle/vim-javascript + url = https://github.com/pangloss/vim-javascript.git +[submodule ".vim/bundle/vim-abolish"] + path = .vim/bundle/vim-abolish + url = https://github.com/tpope/vim-abolish.git +[submodule ".vim/bundle/colorschemes"] + path = .vim/bundle/colorschemes + url = https://github.com/flazz/vim-colorschemes.git +[submodule ".vim/bundle/vim-unimpaired"] + path = .vim/bundle/vim-unimpaired + url = https://github.com/tpope/vim-unimpaired.git +[submodule ".vim/bundle/ctrlp.vim"] + path = .vim/bundle/ctrlp.vim + url = https://github.com/kien/ctrlp.vim.git +[submodule ".vim/bundle/vim-better-whitespace"] + path = .vim/bundle/vim-better-whitespace + url = https://github.com/ntpeters/vim-better-whitespace.git +[submodule ".vim/bundle/vim-eunuch"] + path = .vim/bundle/vim-eunuch + url = https://github.com/tpope/vim-eunuch.git +[submodule ".vim/bundle/emmet-vim"] + path = .vim/bundle/emmet-vim + url = https://github.com/mattn/emmet-vim.git +[submodule ".vim/bundle/vim-indent-guides"] + path = .vim/bundle/vim-indent-guides + url = https://github.com/nathanaelkane/vim-indent-guides.git +[submodule ".vim/bundle/syntastic"] + path = .vim/bundle/syntastic + url = https://github.com/scrooloose/syntastic.git +[submodule ".vim/bundle/vim-table-mode"] + path = .vim/bundle/vim-table-mode + url = https://github.com/dhruvasagar/vim-table-mode.git +[submodule ".vim/bundle/vim-licenses"] + path = .vim/bundle/vim-licenses + url = https://github.com/antoyo/vim-licenses.git diff --git a/.vim/bundle/colorschemes b/.vim/bundle/colorschemes new file mode 160000 index 0000000..81c6dd7 --- /dev/null +++ b/.vim/bundle/colorschemes @@ -0,0 +1 @@ +Subproject commit 81c6dd7ce3169e5ad9ba92422ba6e1ce5b074e36 diff --git a/.vim/bundle/ctrlp.vim b/.vim/bundle/ctrlp.vim new file mode 160000 index 0000000..b5d3fe6 --- /dev/null +++ b/.vim/bundle/ctrlp.vim @@ -0,0 +1 @@ +Subproject commit b5d3fe66a58a13d2ff8b6391f4387608496a030f diff --git a/.vim/bundle/emmet-vim b/.vim/bundle/emmet-vim new file mode 160000 index 0000000..8b703a0 --- /dev/null +++ b/.vim/bundle/emmet-vim @@ -0,0 +1 @@ +Subproject commit 8b703a0a00a23a96477155099946714f6fdc2e63 diff --git a/.vim/bundle/syntastic b/.vim/bundle/syntastic new file mode 160000 index 0000000..67ffe58 --- /dev/null +++ b/.vim/bundle/syntastic @@ -0,0 +1 @@ +Subproject commit 67ffe58818930e95163ead541a2700cec41c13f7 diff --git a/.vim/bundle/vim-abolish b/.vim/bundle/vim-abolish new file mode 160000 index 0000000..d932b44 --- /dev/null +++ b/.vim/bundle/vim-abolish @@ -0,0 +1 @@ +Subproject commit d932b4491a35a0a85f1334223e315caac5e5cb0d diff --git a/.vim/bundle/vim-airline b/.vim/bundle/vim-airline new file mode 160000 index 0000000..15666d7 --- /dev/null +++ b/.vim/bundle/vim-airline @@ -0,0 +1 @@ +Subproject commit 15666d71e39cd91add74ff6919071d718c098db4 diff --git a/.vim/bundle/vim-better-whitespace b/.vim/bundle/vim-better-whitespace new file mode 160000 index 0000000..fb5b0b8 --- /dev/null +++ b/.vim/bundle/vim-better-whitespace @@ -0,0 +1 @@ +Subproject commit fb5b0b8e51a294f358615060b6e2b44b5ca0674e diff --git a/.vim/bundle/vim-commentary b/.vim/bundle/vim-commentary new file mode 160000 index 0000000..9c68513 --- /dev/null +++ b/.vim/bundle/vim-commentary @@ -0,0 +1 @@ +Subproject commit 9c685131a5facfa0d643feca3a61b41c007d8170 diff --git a/.vim/bundle/vim-easy-align b/.vim/bundle/vim-easy-align new file mode 160000 index 0000000..44216b0 --- /dev/null +++ b/.vim/bundle/vim-easy-align @@ -0,0 +1 @@ +Subproject commit 44216b0a2c84791ca923994210327454d73af592 diff --git a/.vim/bundle/vim-easymotion b/.vim/bundle/vim-easymotion new file mode 160000 index 0000000..ca1bb25 --- /dev/null +++ b/.vim/bundle/vim-easymotion @@ -0,0 +1 @@ +Subproject commit ca1bb25ea734f61a2d7c528cd9fe1b4088c931b8 diff --git a/.vim/bundle/vim-eunuch b/.vim/bundle/vim-eunuch new file mode 160000 index 0000000..c856e5d --- /dev/null +++ b/.vim/bundle/vim-eunuch @@ -0,0 +1 @@ +Subproject commit c856e5d649b9f87590aff66a84b930fce5793431 diff --git a/.vim/bundle/vim-fugitive b/.vim/bundle/vim-fugitive new file mode 160000 index 0000000..2c8461d --- /dev/null +++ b/.vim/bundle/vim-fugitive @@ -0,0 +1 @@ +Subproject commit 2c8461db084d205903a792a23163faa546f143c9 diff --git a/.vim/bundle/vim-indent-guides b/.vim/bundle/vim-indent-guides new file mode 160000 index 0000000..eec1b62 --- /dev/null +++ b/.vim/bundle/vim-indent-guides @@ -0,0 +1 @@ +Subproject commit eec1b629dc4cfa3986d20f21d4b4489732cd3f5a diff --git a/.vim/bundle/vim-javascript b/.vim/bundle/vim-javascript new file mode 160000 index 0000000..f8122fd --- /dev/null +++ b/.vim/bundle/vim-javascript @@ -0,0 +1 @@ +Subproject commit f8122fd1caca68b2592553e43dad45b3dc445a06 diff --git a/.vim/bundle/vim-latex b/.vim/bundle/vim-latex new file mode 160000 index 0000000..392577f --- /dev/null +++ b/.vim/bundle/vim-latex @@ -0,0 +1 @@ +Subproject commit 392577fc2031519b3c95ce0d3688842dd96c38fa diff --git a/.vim/bundle/vim-licenses b/.vim/bundle/vim-licenses new file mode 160000 index 0000000..b7fd894 --- /dev/null +++ b/.vim/bundle/vim-licenses @@ -0,0 +1 @@ +Subproject commit b7fd8944dec49cbf558cce8ff27c936474af243e diff --git a/.vim/bundle/vim-pathogen b/.vim/bundle/vim-pathogen new file mode 160000 index 0000000..b9fb0df --- /dev/null +++ b/.vim/bundle/vim-pathogen @@ -0,0 +1 @@ +Subproject commit b9fb0dfd811004010f5f6903edef42d6004ebea2 diff --git a/.vim/bundle/vim-repeat b/.vim/bundle/vim-repeat new file mode 160000 index 0000000..2a3c5f8 --- /dev/null +++ b/.vim/bundle/vim-repeat @@ -0,0 +1 @@ +Subproject commit 2a3c5f8e3c26a57b8eb4cfc4be79615a1c508ef6 diff --git a/.vim/bundle/vim-surround b/.vim/bundle/vim-surround new file mode 160000 index 0000000..fa433e0 --- /dev/null +++ b/.vim/bundle/vim-surround @@ -0,0 +1 @@ +Subproject commit fa433e0b7330753688f715f3be5d10dc480f20e5 diff --git a/.vim/bundle/vim-table-mode b/.vim/bundle/vim-table-mode new file mode 160000 index 0000000..e125870 --- /dev/null +++ b/.vim/bundle/vim-table-mode @@ -0,0 +1 @@ +Subproject commit e1258702126463b30e32a8a4cd1ba28689a93ef8 diff --git a/.vim/bundle/vim-unimpaired b/.vim/bundle/vim-unimpaired new file mode 160000 index 0000000..3548479 --- /dev/null +++ b/.vim/bundle/vim-unimpaired @@ -0,0 +1 @@ +Subproject commit 3548479cc154154cbdbb6737ca08a47937cc7113 diff --git a/.vim/ftplugin/go.vim b/.vim/ftplugin/go.vim new file mode 100644 index 0000000..bbd8967 --- /dev/null +++ b/.vim/ftplugin/go.vim @@ -0,0 +1 @@ +setlocal noexpandtab diff --git a/.vim/ftplugin/markdown.vim b/.vim/ftplugin/markdown.vim new file mode 100644 index 0000000..6b8d7cd --- /dev/null +++ b/.vim/ftplugin/markdown.vim @@ -0,0 +1,3 @@ +setlocal colorcolumn=120 +setlocal textwidth=120 +setlocal spell diff --git a/.vim/ftplugin/tex.vim b/.vim/ftplugin/tex.vim new file mode 100644 index 0000000..6b8d7cd --- /dev/null +++ b/.vim/ftplugin/tex.vim @@ -0,0 +1,3 @@ +setlocal colorcolumn=120 +setlocal textwidth=120 +setlocal spell diff --git a/.vim/ftplugin/yaml.vim b/.vim/ftplugin/yaml.vim new file mode 100644 index 0000000..810fd8f --- /dev/null +++ b/.vim/ftplugin/yaml.vim @@ -0,0 +1,2 @@ +setlocal shiftwidth=2 +setlocal tabstop=2 diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..48dd398 --- /dev/null +++ b/.vimrc @@ -0,0 +1,79 @@ +set runtimepath+=~/.vim +runtime bundle/vim-pathogen/autoload/pathogen.vim + +let g:Tex_DefaultTargetFormat='pdf' +let g:Tex_MultipleCompileFormats='pdf, aux' +let g:licenses_authors_name = 'Alex Yatskov ' +let g:table_mode_corner='|' +let mapleader="," + +call pathogen#infect() +call pathogen#helptags() + +colorscheme wombat256 +filetype indent plugin on +syntax on + +augroup general + autocmd! + autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o + autocmd BufRead,BufNewFile *.md set filetype=markdown +augroup END + +set autochdir +set autoread +set autowrite +set backspace=indent,eol,start +set encoding=utf-8 +set expandtab +set fileformats=unix,dos,mac +set hidden +set hlsearch +set ignorecase +set incsearch +set laststatus=2 +set linebreak +set mouse=nvi +set mousemodel=popup +set nobackup +set nocompatible +set nofoldenable +set noswapfile +set nowrap +set number +set path=$VIMPATH +set scrolloff=5 +set shiftwidth=4 +set shortmess+=I +set smartcase +set smarttab +set tabstop=4 +set wildmenu +set wrapmargin=1 + +nnoremap :bnext +nnoremap :bprev +nnoremap h :noh +nnoremap w gqip +nnoremap g :call argumentrewrap#RewrapArguments() +nnoremap s :source % +nnoremap Q + +vmap (EasyAlign) +nmap a (EasyAlign) + +if has("gui_running") + set columns=150 + set cursorline + set guioptions-=L + set guioptions-=R + set guioptions-=T + set guioptions-=l + set guioptions-=m + set guioptions-=r + set lines=50 +endif + +if $SHELL=~'bin/fish' + set shell=/bin/sh +endif