Added README.md, used full name for gitconfig and added Ultisnips, vimsnippets, and neocomplete to vimrc
This commit is contained in:
parent
8bc69957a7
commit
5e3433d3b4
38
README.md
Normal file
38
README.md
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
Sync
|
||||||
|
=========
|
||||||
|
|
||||||
|
Sync syncs tmux/vim/bash config files with one command
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
usage: sync.sh [-h] [-t] [-c] [-b] [-s] [-d]
|
||||||
|
|
||||||
|
optional arguements:
|
||||||
|
-h Show this help message and exit
|
||||||
|
-t Syncs tmux configuration file
|
||||||
|
-c Syncs other configuration files
|
||||||
|
-b Syncs Vim bundles
|
||||||
|
-s Syncs computer with server applications in server.txt
|
||||||
|
-d Syncs computer with desktop applications in desktop.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, install vim bundles and vimrc, customizing which bundles you use first (requires `curl` and `vim` packages):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
mkdir -p ~/.vim/plugin/ ~/.vim/backup/ ~/.vim/undo/ ~/.vim/tmp/ ~/.vim/bundle/ ~/.vim/bundle/ ; if [ ! -f ~/.vim/plugin/sessionman.vim ] ; then curl -o ~/.vim/plugin/sessionman.vim http://www.vim.org/scripts/download_script.php?src_id=15599 ; fi ; if [ ! -d ~/.vim/bundle/vundle/ ] ; then git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle ; fi ; curl -o ~/.vimrc -k https://austenwares.com/gitlab/stonewareslord/Sync/raw/master/vimrc ; vim ~/.vimrc +"execute \"normal /Bundle 'gmarik\/vundle'\<CR>\"" +"execute \"normal :nohlsearch\<CR>:function Save()\<CR>w\<CR>BundleInstall\<CR>qa\<CR>endfunction\<CR>\"" +"nnoremap <F2> :call Save()<CR>:so ~/.vimrc<CR>:BundleInstall<CR>" ; echo "Installation should be complete. Run \"vim\" to check"
|
||||||
|
```
|
||||||
|
|
||||||
|
Usage: run this command and it will automatically load the bundle list with descriptions of each. Delete the ones you don't want to install and press `F2` in normal mode to install al at once.
|
||||||
|
|
||||||
|
Or, temporarily load the bashrc (requires `curl` package):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
curl -k -o /tmp/tmprc https://98.26.78.121/gitlab/stonewareslord/Sync/raw/master/tmprc && . /tmp/tmprc ; rm /tmp/tmprc
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, clone the sync project and add all origins automatically:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
mkdir sync&&cd sync&&git init&&git remote add testorigin https://98.26.78.121/gitlab/stonewareslord/Sync.git&&git config http.sslVerify false&&git pull testorigin master&&. bashrc&&git remote rm testorigin&&initify stonewareslord Sync -r
|
||||||
|
```
|
@ -1,5 +1,5 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Austen
|
name = Austen Adler
|
||||||
email = stonewareslord@gmail.com
|
email = stonewareslord@gmail.com
|
||||||
[alias]
|
[alias]
|
||||||
i = "!git br&&git st"
|
i = "!git br&&git st"
|
||||||
|
46
vimrc
46
vimrc
@ -117,8 +117,9 @@ nnoremap <Down> <C-w>W
|
|||||||
nnoremap <Left> :bp<CR>
|
nnoremap <Left> :bp<CR>
|
||||||
nnoremap <Right> :bn<CR>
|
nnoremap <Right> :bn<CR>
|
||||||
nnoremap <C-w>z <C-w>_<C-w>|
|
nnoremap <C-w>z <C-w>_<C-w>|
|
||||||
nnoremap <Leader>bn G?Bundle<CR>yyp$hdi'"+gP0Wl3d/\/<CR>x:nohlsearch<CR>:up<CR>:BundleInstall
|
nnoremap <Leader>bun G?Bundle<CR>yyjp$hdi'"+gP0Wl3d/\/<CR>xjyyP$"+gp<Esc>:nohlsearch<CR>:up<CR>:BundleInstall
|
||||||
nnoremap <Leader><C-p> :CtrlPFunky<CR>
|
nnoremap <Leader><C-p> :CtrlPFunky<CR>
|
||||||
|
nnoremap <F2> :set invpaste<CR>
|
||||||
nmap <C-Up> [e
|
nmap <C-Up> [e
|
||||||
nmap <C-Down> ]e
|
nmap <C-Down> ]e
|
||||||
vmap <C-Up> [egv
|
vmap <C-Up> [egv
|
||||||
@ -179,19 +180,32 @@ let g:Powerline_symbols='fancy'
|
|||||||
let g:indent_guides_start_level=1
|
let g:indent_guides_start_level=1
|
||||||
let g:indent_guides_guide_size=1
|
let g:indent_guides_guide_size=1
|
||||||
let g:indent_guides_enable_on_vim_startup=1
|
let g:indent_guides_enable_on_vim_startup=1
|
||||||
let g:neocomplcache_enable_at_startup=1
|
"let g:neocomplcache_enable_at_startup=1
|
||||||
let g:neocomplcache_enable_camel_case_completion=1
|
"let g:neocomplcache_enable_camel_case_completion=1
|
||||||
let g:neocomplcache_enable_smart_case=1
|
"let g:neocomplcache_enable_smart_case=1
|
||||||
let g:neocomplcache_enable_underbar_completion=1
|
"let g:neocomplcache_enable_underbar_completion=1
|
||||||
let g:neocomplcache_enable_auto_delimiter=1
|
"let g:neocomplcache_enable_auto_delimiter=1
|
||||||
let g:neocomplcache_max_list=20
|
"let g:neocomplcache_max_list=20
|
||||||
let g:neocomplcache_force_overwrite_completefunc=1
|
"let g:neocomplcache_force_overwrite_completefunc=1
|
||||||
let g:neocomplcache_min_syntax_length=2
|
"let g:neocomplcache_min_syntax_length=2
|
||||||
|
"let g:neocomplcache_enable_auto_select=1
|
||||||
|
let g:neocomplete#enable_at_startup = 1
|
||||||
|
let g:neocomplete#enable_smart_case = 1
|
||||||
|
let g:neocomplete#sources#syntax#min_keyword_length = 2
|
||||||
|
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
|
||||||
|
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
|
||||||
|
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
|
||||||
|
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
|
||||||
|
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
|
||||||
let g:php_refactor_command='php /usr/local/bin/refactor.phar'
|
let g:php_refactor_command='php /usr/local/bin/refactor.phar'
|
||||||
let g:ctrlp_extensions=['funky']
|
let g:ctrlp_extensions=['funky']
|
||||||
"inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
|
"inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
|
||||||
"let g:neocomplcache_enable_auto_select=1
|
|
||||||
let loaded_matchit=1
|
let loaded_matchit=1
|
||||||
|
let g:UltiSnipsEditSplit="vertical"
|
||||||
|
let g:UltiSnipsExpandTrigger="<PageDown>"
|
||||||
|
let g:UltiSnipsJumpForwardTrigger="<C-j>"
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger="<C-k>"
|
||||||
|
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||||
filetype off
|
filetype off
|
||||||
call vundle#rc()
|
call vundle#rc()
|
||||||
"Bundle 'Floobits/floobits-vim'
|
"Bundle 'Floobits/floobits-vim'
|
||||||
@ -210,8 +224,8 @@ Bundle 'tpope/vim-surround'
|
|||||||
"Surround selection in ({\"' or HTML tags | https://github.com/tpope/vim-surround
|
"Surround selection in ({\"' or HTML tags | https://github.com/tpope/vim-surround
|
||||||
Bundle 'scrooloose/syntastic'
|
Bundle 'scrooloose/syntastic'
|
||||||
"Syntax checker | https://github.com/scrooloose/syntastic
|
"Syntax checker | https://github.com/scrooloose/syntastic
|
||||||
Bundle 'Shougo/neocomplcache.vim'
|
"Bundle 'Shougo/neocomplcache.vim'
|
||||||
"Tab complete everything | https://github.com/Shougo/neocomplcache.vim
|
" "Tab complete everything | https://github.com/Shougo/neocomplcache.vim
|
||||||
Bundle 'nathanaelkane/vim-indent-guides'
|
Bundle 'nathanaelkane/vim-indent-guides'
|
||||||
"Indentation guides | https://github.com/nathanaelkane/vim-indent-guides
|
"Indentation guides | https://github.com/nathanaelkane/vim-indent-guides
|
||||||
Bundle 'elzr/vim-json'
|
Bundle 'elzr/vim-json'
|
||||||
@ -266,6 +280,14 @@ Bundle 'tpope/vim-abolish'
|
|||||||
"Better abbrivation | https://github.com/tpope/vim-abolish
|
"Better abbrivation | https://github.com/tpope/vim-abolish
|
||||||
Bundle 'godlygeek/csapprox'
|
Bundle 'godlygeek/csapprox'
|
||||||
"256 color vim in terminal | https://github.com/godlygeek/csapprox
|
"256 color vim in terminal | https://github.com/godlygeek/csapprox
|
||||||
|
Bundle 'sirver/UltiSnips'
|
||||||
|
"Adds snippets | https://github.com/sirver/UltiSnips
|
||||||
|
Bundle 'honza/vim-snippets'
|
||||||
|
" | https://github.com/honza/vim-snippets
|
||||||
|
Bundle 'Shougo/neocomplete.vim'
|
||||||
|
" | https://github.com/Shougo/neocomplete.vim
|
||||||
|
" |
|
||||||
|
"DO NOT DELETE LINE ABOVE OR \bun WILL BREAK
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
if exists("+undofile")
|
if exists("+undofile")
|
||||||
if isdirectory($HOME . '/.vim/undo')==0
|
if isdirectory($HOME . '/.vim/undo')==0
|
||||||
|
Loading…
Reference in New Issue
Block a user