Removed spaces between = and added g alias
This commit is contained in:
parent
958e84c7f5
commit
b5066288d1
9
bashrc
9
bashrc
@ -96,6 +96,7 @@ alias .........='k ../../../../../../../..'
|
|||||||
alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'"
|
alias ytdl="youtube-dl $@ -x --audio-format mp3 --audio-quality 0 -c -o '%(title)s.%(ext)s'"
|
||||||
alias tux="wemux"
|
alias tux="wemux"
|
||||||
alias rmgit="git remote rm origin;git remote rm https;git remote rm oOrigin;git remote rm oHttps"
|
alias rmgit="git remote rm origin;git remote rm https;git remote rm oOrigin;git remote rm oHttps"
|
||||||
|
alias g="git $@"
|
||||||
function mcl(){ mkdir "$@"&&cl "$@"; }
|
function mcl(){ mkdir "$@"&&cl "$@"; }
|
||||||
function cl(){ cd "$@" && ls; }
|
function cl(){ cd "$@" && ls; }
|
||||||
function k(){
|
function k(){
|
||||||
@ -104,8 +105,14 @@ function k(){
|
|||||||
cd "$@" && ls
|
cd "$@" && ls
|
||||||
elif [ "$@" == "-" ] ; then
|
elif [ "$@" == "-" ] ; then
|
||||||
cd - && ls
|
cd - && ls
|
||||||
else
|
elif [ -f "$@" ] ; then
|
||||||
vim "$@"
|
vim "$@"
|
||||||
|
else
|
||||||
|
echo -n "Create? "
|
||||||
|
read a
|
||||||
|
if [ ! -z $a ] ; then
|
||||||
|
vim "$@"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
complete -f k
|
complete -f k
|
||||||
|
50
vimrc
50
vimrc
@ -2,7 +2,7 @@ let g:neosnippet#snippets_directory='~/.vim/bundle/snipmate-snippets/snippets'
|
|||||||
if has('conceal')
|
if has('conceal')
|
||||||
set conceallevel=2 concealcursor=i
|
set conceallevel=2 concealcursor=i
|
||||||
endif
|
endif
|
||||||
nnoremap <Leader>autoformat! :%s/, /,<CR>:%s/ \/ /\/<CR>:%s/ {/{<CR>:%s/} /}<CR>:%s/ = /=
|
nnoremap <Leader>autoformat! :%s/, /,<CR>:%s/ \/ /\/<CR>:%s/ {/{<CR>:%s/} /}<CR>:%s/=/=
|
||||||
command! W %!sudo tee > /dev/null %
|
command! W %!sudo tee > /dev/null %
|
||||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||||
autocmd FileType * :hi IndentGuidesOdd guibg=red ctermbg=239
|
autocmd FileType * :hi IndentGuidesOdd guibg=red ctermbg=239
|
||||||
@ -45,6 +45,8 @@ nnoremap <Leader>else m"kAelse{<Esc>jo}<Esc>`"v><Esc>
|
|||||||
nnoremap <Leader>for m"Ofor(){<Esc>jo}<Esc>`"v><Esc>k^wa
|
nnoremap <Leader>for m"Ofor(){<Esc>jo}<Esc>`"v><Esc>k^wa
|
||||||
nnoremap <Leader>while m"Owhile(){<Esc>jo}<Esc>`"v><Esc>k^wa
|
nnoremap <Leader>while m"Owhile(){<Esc>jo}<Esc>`"v><Esc>k^wa
|
||||||
nnoremap <Leader>rm m"kddjddkv<<Esc>`"
|
nnoremap <Leader>rm m"kddjddkv<<Esc>`"
|
||||||
|
nnoremap <Leader># O#{{{<Esc>jo#}}}<Esc>kk^a
|
||||||
|
vnoremap <Leader># <Esc>`<O#{{{<Esc>`>o//}}}<Esc>`<k^la
|
||||||
nnoremap <Leader>{ O//{{{<Esc>jo//}}}<Esc>kk^la
|
nnoremap <Leader>{ O//{{{<Esc>jo//}}}<Esc>kk^la
|
||||||
vnoremap <Leader>{ <Esc>`<O//{{{<Esc>`>o//}}}<Esc>`<k^la
|
vnoremap <Leader>{ <Esc>`<O//{{{<Esc>`>o//}}}<Esc>`<k^la
|
||||||
vnoremap <Leader>if <Esc>`<Oif(){<Esc>`>o}<Esc>gv><Esc>`<k^wa
|
vnoremap <Leader>if <Esc>`<Oif(){<Esc>`>o}<Esc>gv><Esc>`<k^wa
|
||||||
@ -86,13 +88,13 @@ vnoremap < <gv
|
|||||||
vnoremap > >gv
|
vnoremap > >gv
|
||||||
inoremap <F1> <nop>
|
inoremap <F1> <nop>
|
||||||
vnoremap <F1> <nop>
|
vnoremap <F1> <nop>
|
||||||
noremap <Leader><Tab> :ls<CR>:b
|
nnoremap <Leader><Tab> :ls<CR>:b
|
||||||
nnoremap <leader>== yyPv$r=jyypv$r=
|
nnoremap <Leader>== yyPv$r=jyypv$r=
|
||||||
nnoremap <leader>** yyPv$r*jyypv$r*
|
nnoremap <Leader>** yyPv$r*jyypv$r*
|
||||||
nnoremap <leader>= yypv$r=
|
nnoremap <Leader>= yypv$r=
|
||||||
nnoremap <leader>- yypv$r-
|
nnoremap <Leader>- yypv$r-
|
||||||
nnoremap <leader>^ yypv$r^
|
nnoremap <Leader>^ yypv$r^
|
||||||
nnoremap <leader>" yypv$r"
|
nnoremap <Leader>" yypv$r"
|
||||||
inoremap '' ''<Left>
|
inoremap '' ''<Left>
|
||||||
inoremap "" ""<Left>
|
inoremap "" ""<Left>
|
||||||
inoremap () ()<Left>
|
inoremap () ()<Left>
|
||||||
@ -144,7 +146,7 @@ set backup
|
|||||||
set backupdir=~/.vim/backup
|
set backupdir=~/.vim/backup
|
||||||
set directory=~/.vim/tmp
|
set directory=~/.vim/tmp
|
||||||
set undolevels=1000
|
set undolevels=1000
|
||||||
set history=200
|
set history=500
|
||||||
set ttyfast
|
set ttyfast
|
||||||
set ff=unix
|
set ff=unix
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
@ -163,18 +165,18 @@ set rtp+=~/.vim/bundle/vundle/
|
|||||||
syntax on
|
syntax on
|
||||||
let g:airline_left_sep='▶'
|
let g:airline_left_sep='▶'
|
||||||
let g:airline_right_sep='◀'
|
let g:airline_right_sep='◀'
|
||||||
let g:airline#extensions#syntastic#enabled = 1
|
let g:airline#extensions#syntastic#enabled=1
|
||||||
let g:airline#extensions#whitespace#enabled = 0
|
let g:airline#extensions#whitespace#enabled=0
|
||||||
let g:airline#extensions#whitespace#show_message = 0
|
let g:airline#extensions#whitespace#show_message=0
|
||||||
let g:airline#extensions#tmuxline#enabled = 1
|
let g:airline#extensions#tmuxline#enabled=1
|
||||||
let g:formatprg_cpp = "astyle"
|
let g:formatprg_cpp="astyle"
|
||||||
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"
|
||||||
let g:syntastic_java_javac_classpath = "/Applications/Android Studio.app/sdk/platforms/android-19/*.jar"
|
let g:syntastic_java_javac_classpath="/Applications/AndroidStudio.app/sdk/platforms/android-19/*.jar:/home:/home/stonewareslord/applications/adk/sdk/platforms/android-20/*.jar:/home/stonewareslord/AndroidstudioProjects/NCState/app/src/main/bin/classes"
|
||||||
" 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:airline#extensions#tabline#enabled=1
|
||||||
let g:Powerline_symbols = 'fancy'
|
let g:Powerline_symbols='fancy'
|
||||||
let g:indent_guides_start_level=2
|
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
|
||||||
@ -184,12 +186,12 @@ 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: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 g:neocomplcache_enable_auto_select=1
|
||||||
let loaded_matchit = 1
|
let loaded_matchit=1
|
||||||
filetype off
|
filetype off
|
||||||
call vundle#rc()
|
call vundle#rc()
|
||||||
"Bundle 'Floobits/floobits-vim'
|
"Bundle 'Floobits/floobits-vim'
|
||||||
@ -234,7 +236,7 @@ Bundle 'tacahiroy/ctrlp-funky'
|
|||||||
Bundle 'godlygeek/csapprox'
|
Bundle 'godlygeek/csapprox'
|
||||||
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
|
||||||
:silent !mkdir -p ~/.vim/undo > /dev/null 2>&1
|
:silent !mkdir -p ~/.vim/undo > /dev/null 2>&1
|
||||||
endif
|
endif
|
||||||
set undodir=./.vim-undo//
|
set undodir=./.vim-undo//
|
||||||
@ -245,7 +247,7 @@ augroup vimrcEx
|
|||||||
au!
|
au!
|
||||||
" When editing a file, always jump to the last known cursor position.
|
" When editing a file, always jump to the last known cursor position.
|
||||||
autocmd BufReadPost *
|
autocmd BufReadPost *
|
||||||
\ if line("'\"") > 0 && line("'\"") <= line("$") |
|
\ if line("'\"") > 0 && line("'\"") <=line("$") |
|
||||||
\ exe "normal g`\"" |
|
\ exe "normal g`\"" |
|
||||||
\ endif
|
\ endif
|
||||||
augroup END
|
augroup END
|
||||||
@ -254,7 +256,7 @@ if has('gui_running')
|
|||||||
set lines=40
|
set lines=40
|
||||||
"colorscheme fruity
|
"colorscheme fruity
|
||||||
else
|
else
|
||||||
if &term == 'xterm' || &term == 'screen'
|
if &term=='xterm' || &term=='screen'
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
endif
|
endif
|
||||||
"colorscheme torte
|
"colorscheme torte
|
||||||
|
Loading…
x
Reference in New Issue
Block a user