Changes
This commit is contained in:
parent
989b6b0aef
commit
f120043821
@ -23,6 +23,13 @@ function asroot(){
|
|||||||
xauth extract $TEMPFILE $DISPLAY
|
xauth extract $TEMPFILE $DISPLAY
|
||||||
sudo zsh -c "xauth merge $TEMPFILE;(srm $TEMPFILE||rm $TEMPFILE)&'$@';"
|
sudo zsh -c "xauth merge $TEMPFILE;(srm $TEMPFILE||rm $TEMPFILE)&'$@';"
|
||||||
}
|
}
|
||||||
|
function dedir(){
|
||||||
|
mv "$1"/{.,}* .
|
||||||
|
rmdir "$1"
|
||||||
|
}
|
||||||
|
alias cpatch='diff -crB'
|
||||||
|
alias capatch='patch --dry-run -p1 -i'
|
||||||
|
alias apatch='patch -p1 -i'
|
||||||
alias pg="pcregrep -M"
|
alias pg="pcregrep -M"
|
||||||
alias eix="eix -F"
|
alias eix="eix -F"
|
||||||
alias mouse1="xmodmap <(echo pointer = 1 2 3)"
|
alias mouse1="xmodmap <(echo pointer = 1 2 3)"
|
||||||
|
56
vim/vimrc
56
vim/vimrc
@ -19,13 +19,10 @@ filetype plugin on
|
|||||||
set grepprg=grep\ -nH\ $*
|
set grepprg=grep\ -nH\ $*
|
||||||
let g:tex_flavor='latex'
|
let g:tex_flavor='latex'
|
||||||
|
|
||||||
|
|
||||||
"match Error /\s\+$/
|
"match Error /\s\+$/
|
||||||
"nnoremap s xa
|
"nnoremap s xa
|
||||||
"nnoremap <F5> :UndotreeToggle<CR>
|
"nnoremap <F5> :UndotreeToggle<CR>
|
||||||
"inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
"inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||||
imap <Expr>\ neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : pumvisible() ? "\<C-n>" : "\<TAB>"
|
|
||||||
smap <Expr>\ neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
|
|
||||||
nnoremap <Leader><Space> :CtrlPTag<CR>
|
nnoremap <Leader><Space> :CtrlPTag<CR>
|
||||||
nnoremap <C-w>\| <C-w>v<C-w>l
|
nnoremap <C-w>\| <C-w>v<C-w>l
|
||||||
nnoremap <C-w>- <C-w>s<C-w>j
|
nnoremap <C-w>- <C-w>s<C-w>j
|
||||||
@ -197,7 +194,6 @@ let g:formatter_php = ['formatdef_my_custom_php']
|
|||||||
"let g:formatprg_args_expr_cpp=" --mode=c --style=1tbs -xe -k1 -j"
|
"let g:formatprg_args_expr_cpp=" --mode=c --style=1tbs -xe -k1 -j"
|
||||||
" These flags don't work for some reason
|
" These flags don't work for some reason
|
||||||
" -xn -xc -xl -S
|
" -xn -xc -xl -S
|
||||||
"let g:airline#extensions#tabline#enabled=1
|
|
||||||
let g:Powerline_symbols='fancy'
|
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
|
||||||
@ -216,25 +212,24 @@ let g:neocomplete#enable_smart_case = 1
|
|||||||
let g:neocomplete#sources#syntax#min_keyword_length = 2
|
let g:neocomplete#sources#syntax#min_keyword_length = 2
|
||||||
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>"
|
function! g:UltiSnips_Complete()
|
||||||
"function! g:UltiSnips_Complete()
|
call UltiSnips#ExpandSnippet()
|
||||||
" call UltiSnips#ExpandSnippet()
|
if g:ulti_expand_res == 0
|
||||||
" if g:ulti_expand_res == 0
|
if pumvisible()
|
||||||
" if pumvisible()
|
return "\<C-n>"
|
||||||
" return "\<C-n>"
|
else
|
||||||
" else
|
call UltiSnips#JumpForwards()
|
||||||
" call UltiSnips#JumpForwards()
|
if g:ulti_jump_forwards_res == 0
|
||||||
" if g:ulti_jump_forwards_res == 0
|
return "\<TAB>"
|
||||||
" return "\<TAB>"
|
endif
|
||||||
" endif
|
endif
|
||||||
" endif
|
endif
|
||||||
" endif
|
return ""
|
||||||
" return ""
|
endfunction
|
||||||
"endfunction
|
au BufEnter * exec "inoremap <silent> " . g:UltiSnipsExpandTrigger . " <C-R>=g:UltiSnips_Complete()<cr>"
|
||||||
"au BufEnter * exec "inoremap <silent> " . g:UltiSnipsExpandTrigger . " <C-R>=g:UltiSnips_Complete()<cr>"
|
let g:UltiSnipsJumpForwardTrigger="<tab>"
|
||||||
"let g:UltiSnipsJumpForwardTrigger="<tab>"
|
let g:UltiSnipsListSnippets="<c-e>"
|
||||||
"let g:UltiSnipsListSnippets="<c-e>"
|
let g:UltiSnipsEditSplit="vertical"
|
||||||
"let g:UltiSnipsEditSplit="vertical"
|
|
||||||
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||||
let loaded_matchit=1
|
let loaded_matchit=1
|
||||||
filetype off
|
filetype off
|
||||||
@ -243,10 +238,7 @@ if has("win32")
|
|||||||
else
|
else
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
endif
|
endif
|
||||||
"Plug 'Floobits/floobits-vim'
|
|
||||||
"Plug 'tsaleh/vim-matchit'
|
"Plug 'tsaleh/vim-matchit'
|
||||||
"Plug 'Shougo/neosnippet'
|
|
||||||
"Plug 'msanders/snipmate.vim'
|
|
||||||
"Plug 'vim-scripts/YankRing.vim'
|
"Plug 'vim-scripts/YankRing.vim'
|
||||||
Plug 'Chiel92/vim-autoformat'
|
Plug 'Chiel92/vim-autoformat'
|
||||||
"Adds autoformat command | https://github.com/Chiel92/vim-autoformat
|
"Adds autoformat command | https://github.com/Chiel92/vim-autoformat
|
||||||
@ -274,8 +266,6 @@ Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
|||||||
" "Theme | https://github.com/altercation/vim-colors-solarized
|
" "Theme | https://github.com/altercation/vim-colors-solarized
|
||||||
Plug 'stonewareslord/vim-colors'
|
Plug 'stonewareslord/vim-colors'
|
||||||
"Theme pack | https://github.com/spf13/vim-colors
|
"Theme pack | https://github.com/spf13/vim-colors
|
||||||
"Plug 'spf13/PIV'
|
|
||||||
" "PHP tools | https://github.com/spf13/PIV
|
|
||||||
"Plug 'vim-scripts/AutoTag'
|
"Plug 'vim-scripts/AutoTag'
|
||||||
" "Generates taglist with ctags | https://github.com/vim-scripts/AutoTag
|
" "Generates taglist with ctags | https://github.com/vim-scripts/AutoTag
|
||||||
Plug 'Lokaltog/vim-easymotion'
|
Plug 'Lokaltog/vim-easymotion'
|
||||||
@ -292,22 +282,16 @@ Plug 'kien/ctrlp.vim'
|
|||||||
"Fuzzy file search | https://github.com/kien/ctrlp.vim
|
"Fuzzy file search | https://github.com/kien/ctrlp.vim
|
||||||
Plug 'godlygeek/tabular'
|
Plug 'godlygeek/tabular'
|
||||||
"Quickly make tables in vim | https://github.com/godlygeek/tabular
|
"Quickly make tables in vim | https://github.com/godlygeek/tabular
|
||||||
"Plug 'tpope/vim-abolish'
|
|
||||||
" "Better abbrivation | https://github.com/tpope/vim-abolish
|
|
||||||
Plug 'godlygeek/csapprox'
|
Plug 'godlygeek/csapprox'
|
||||||
"256 color vim in terminal | https://github.com/godlygeek/csapprox
|
"256 color vim in terminal | https://github.com/godlygeek/csapprox
|
||||||
"Plug 'sirver/UltiSnips'
|
Plug 'sirver/UltiSnips'
|
||||||
" "Adds snippets | https://github.com/sirver/UltiSnips
|
" "Adds snippets | https://github.com/sirver/UltiSnips
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
"More snippets | https://github.com/honza/vim-snippets
|
"More snippets | https://github.com/honza/vim-snippets
|
||||||
Plug 'othree/eregex.vim'
|
Plug 'othree/eregex.vim'
|
||||||
"Real regexes in vim | https://github.com/othree/eregex.vim
|
"Real regexes in vim | https://github.com/othree/eregex.vim
|
||||||
"Plug 'vim-scripts/sessionman.vim'
|
|
||||||
" "Session manager | https://github.com/vim-scripts/sessionman.vim
|
|
||||||
Plug 'mattn/flappyvird-vim'
|
Plug 'mattn/flappyvird-vim'
|
||||||
"The amazing Flappy Bird game | https://github.com/mattn/flappyvird-vim
|
"The amazing Flappy Bird game | https://github.com/mattn/flappyvird-vim
|
||||||
"Plug 'morhetz/gruvbox'
|
|
||||||
" "Colorscheme | https://github.com/morhetz/gruvbox
|
|
||||||
Plug 'superbrothers/vim-vimperator'
|
Plug 'superbrothers/vim-vimperator'
|
||||||
"Vimperator for vim | https://github.com/superbrothers/vim-vimperator
|
"Vimperator for vim | https://github.com/superbrothers/vim-vimperator
|
||||||
Plug 'Rykka/colorv.vim'
|
Plug 'Rykka/colorv.vim'
|
||||||
@ -344,8 +328,6 @@ Plug 'https://github.com/xolox/vim-easytags'
|
|||||||
"Vim tags | https://github.com/xolox/vim-easytags
|
"Vim tags | https://github.com/xolox/vim-easytags
|
||||||
Plug 'https://github.com/xolox/vim-misc'
|
Plug 'https://github.com/xolox/vim-misc'
|
||||||
"Misc (required for easytags) | https://github.com/xolox/vim-misc
|
"Misc (required for easytags) | https://github.com/xolox/vim-misc
|
||||||
Plug 'https://github.com/lervag/vimtex'
|
|
||||||
" | https://github.com/lervag/vimtex
|
|
||||||
Plug 'https://github.com/habamax/vim-skipit'
|
Plug 'https://github.com/habamax/vim-skipit'
|
||||||
" | https://github.com/habamax/vim-skipit
|
" | https://github.com/habamax/vim-skipit
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
Loading…
Reference in New Issue
Block a user