mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
Merge branch 'master' into jenipapo
This commit is contained in:
Submodule base16-shell updated: 8643aca554...471707c20e
@@ -3,7 +3,7 @@ let g:lightline = {
|
|||||||
\ 'colorscheme': 'solarized',
|
\ 'colorscheme': 'solarized',
|
||||||
\ 'active': {
|
\ 'active': {
|
||||||
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ], ['ctrlpmark'] ],
|
\ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ], ['ctrlpmark'] ],
|
||||||
\ 'right': [ [ 'syntastic', 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ]
|
\ 'right': [ [ 'ale', 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ]
|
||||||
\ },
|
\ },
|
||||||
\ 'component_function': {
|
\ 'component_function': {
|
||||||
\ 'fugitive': 'LightLineFugitive',
|
\ 'fugitive': 'LightLineFugitive',
|
||||||
@@ -15,10 +15,10 @@ let g:lightline = {
|
|||||||
\ 'ctrlpmark': 'CtrlPMark',
|
\ 'ctrlpmark': 'CtrlPMark',
|
||||||
\ },
|
\ },
|
||||||
\ 'component_expand': {
|
\ 'component_expand': {
|
||||||
\ 'syntastic': 'SyntasticStatuslineFlag',
|
\ 'ale': 'ale#statusline#Status',
|
||||||
\ },
|
\ },
|
||||||
\ 'component_type': {
|
\ 'component_type': {
|
||||||
\ 'syntastic': 'error',
|
\ 'ale': 'error',
|
||||||
\ },
|
\ },
|
||||||
\ 'subseparator': { 'left': '|', 'right': '|' }
|
\ 'subseparator': { 'left': '|', 'right': '|' }
|
||||||
\ }
|
\ }
|
||||||
@@ -115,15 +115,6 @@ function! TagbarStatusFunc(current, sort, fname, ...) abort
|
|||||||
return lightline#statusline(0)
|
return lightline#statusline(0)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
augroup AutoSyntastic
|
|
||||||
autocmd!
|
|
||||||
autocmd BufWritePost *.c,*.cpp,*.js,*.py call s:syntastic()
|
|
||||||
augroup END
|
|
||||||
function! s:syntastic()
|
|
||||||
SyntasticCheck
|
|
||||||
call lightline#update()
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
let g:unite_force_overwrite_statusline = 0
|
let g:unite_force_overwrite_statusline = 0
|
||||||
let g:vimfiler_force_overwrite_statusline = 0
|
let g:vimfiler_force_overwrite_statusline = 0
|
||||||
let g:vimshell_force_overwrite_statusline = 0
|
let g:vimshell_force_overwrite_statusline = 0
|
||||||
|
|||||||
87
vimrc
87
vimrc
@@ -28,7 +28,7 @@ Plug 'fholgado/minibufexpl.vim'
|
|||||||
Plug 'SirVer/ultisnips'
|
Plug 'SirVer/ultisnips'
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
|
|
||||||
Plug 'scrooloose/syntastic'
|
Plug 'w0rp/ale'
|
||||||
|
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'rhysd/conflict-marker.vim'
|
Plug 'rhysd/conflict-marker.vim'
|
||||||
@@ -184,18 +184,18 @@ noremap <leader>bd :bd<cr>
|
|||||||
"" indent visual selected code without unselecting and going back to normal mode
|
"" indent visual selected code without unselecting and going back to normal mode
|
||||||
vnoremap > >gv
|
vnoremap > >gv
|
||||||
vnoremap < <gv
|
vnoremap < <gv
|
||||||
|
|
||||||
|
"" allow using . with visual mode
|
||||||
|
vnoremap . :norm.<cr>
|
||||||
|
|
||||||
"" Visually select the text that was last edited/pasted
|
"" Visually select the text that was last edited/pasted
|
||||||
nnoremap gV `[v`]
|
nnoremap gV `[v`]
|
||||||
|
|
||||||
"" pull word under cursor into lhs of a substitute (for quick search and replace)
|
"" pull word under cursor into lhs of a substitute (for quick search and replace)
|
||||||
nmap <leader>r :%s#\<<C-r>=expand("<cword>")<CR>\>#
|
nnoremap <leader>r :%s#\<<C-r>=expand("<cword>")<CR>\>#
|
||||||
|
|
||||||
"" fast editing of the .vimrc
|
"" fast editing of the .vimrc
|
||||||
nnoremap <silent> <leader>ev :e $MYVIMRC<cr>
|
nnoremap <silent> <leader>ev :e $MYVIMRC<cr>
|
||||||
nnoremap <silent> <leader>sv :so $MYVIMRC<cr>
|
|
||||||
|
|
||||||
"" allow saving when you forgot sudo
|
|
||||||
cnoremap w!! w !sudo tee % >/dev/null
|
|
||||||
|
|
||||||
"" turn on spell checking
|
"" turn on spell checking
|
||||||
noremap <leader>spl :setlocal spell!<cr>
|
noremap <leader>spl :setlocal spell!<cr>
|
||||||
@@ -264,38 +264,13 @@ nnoremap <leader>fc :Commits<cr>
|
|||||||
"" minibufexpl
|
"" minibufexpl
|
||||||
map <Leader>t :MBEToggle<cr>
|
map <Leader>t :MBEToggle<cr>
|
||||||
|
|
||||||
"" syntastic
|
|
||||||
let g:syntastic_always_populate_loc_list = 1
|
|
||||||
let g:syntastic_auto_loc_list = 0
|
|
||||||
let g:syntastic_check_on_open = 1
|
|
||||||
let g:syntastic_check_on_wq = 0
|
|
||||||
|
|
||||||
" local linter support
|
|
||||||
let g:syntastic_javascript_checkers = []
|
|
||||||
|
|
||||||
function! CheckJavaScriptLinter(filepath, linter)
|
|
||||||
if exists('b:syntastic_checkers')
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
if filereadable(a:filepath)
|
|
||||||
let b:syntastic_checkers = [a:linter]
|
|
||||||
let {'b:syntastic_' . a:linter . '_exec'} = a:filepath
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! SetupJavaScriptLinter()
|
|
||||||
let l:current_folder = expand('%:p:h')
|
|
||||||
let l:bin_folder = fnamemodify(syntastic#util#findFileInParent('package.json', l:current_folder), ':h')
|
|
||||||
let l:bin_folder = l:bin_folder . '/node_modules/.bin/'
|
|
||||||
call CheckJavaScriptLinter(l:bin_folder . 'standard', 'standard')
|
|
||||||
call CheckJavaScriptLinter(l:bin_folder . 'eslint', 'eslint')
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
autocmd FileType javascript call SetupJavaScriptLinter()
|
|
||||||
|
|
||||||
"" lightline
|
"" lightline
|
||||||
if filereadable(expand("~/.vim/lightline.vim"))
|
if filereadable(expand("~/.vim/lightline.vim"))
|
||||||
source ~/.vim/lightline.vim
|
source ~/.vim/lightline.vim
|
||||||
|
augroup ale-statusline
|
||||||
|
autocmd!
|
||||||
|
autocmd User ALELint call lightline#update()
|
||||||
|
augroup END
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"" Unimpaired
|
"" Unimpaired
|
||||||
@@ -329,37 +304,29 @@ let g:markdown_fenced_languages = [
|
|||||||
" Autocmd Rules {{{
|
" Autocmd Rules {{{
|
||||||
|
|
||||||
"" do syntax highlight syncing from start
|
"" do syntax highlight syncing from start
|
||||||
autocmd BufEnter * :syntax sync fromstart
|
augroup general
|
||||||
|
autocmd!
|
||||||
"" Remember cursor position
|
autocmd BufEnter * :syntax sync fromstart
|
||||||
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
augroup END
|
||||||
|
|
||||||
"" txt, mail, tex
|
"" txt, mail, tex
|
||||||
au FileType text,markdown,mail,tex set wrap wm=2 textwidth=78 nocindent spell
|
augroup text
|
||||||
|
autocmd!
|
||||||
|
autocmd FileType text,markdown,mail,tex set wrap wm=2 textwidth=78 nocindent spell
|
||||||
|
augroup END
|
||||||
|
|
||||||
"" Python
|
"" Python
|
||||||
au FileType python set noexpandtab
|
augroup python
|
||||||
|
autocmd FileType python set noexpandtab
|
||||||
|
augroup END
|
||||||
|
|
||||||
"" JavaScript
|
"" JavaScript
|
||||||
au FileType javascript map <leader>r <esc>:TernRename<CR>
|
augroup web
|
||||||
|
autocmd!
|
||||||
"" Json
|
autocmd FileType javascript map <leader>r <esc>:TernRename<CR>
|
||||||
au BufRead,BufNewFile *.json set ft=json
|
autocmd BufRead,BufNewFile *.json set ft=json
|
||||||
|
autocmd BufRead,BufNewFile *.template set filetype=html.mustache syntax=mustache
|
||||||
"" Mustache
|
augroup END
|
||||||
au BufRead,BufNewFile *.template set filetype=html.mustache syntax=mustache
|
|
||||||
|
|
||||||
"" always open help in vertical split
|
|
||||||
au FileType help wincmd L
|
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" probably not needed {{{
|
|
||||||
|
|
||||||
"" disable visual bell
|
|
||||||
"set visualbell
|
|
||||||
"set t_vb=
|
|
||||||
|
|
||||||
"" spelling
|
|
||||||
"set spelllang=en,de
|
|
||||||
"}}}
|
|
||||||
|
|||||||
2
zplug
2
zplug
Submodule zplug updated: 063d26f800...ac6012d80d
4
zprofile
4
zprofile
@@ -25,4 +25,8 @@ case $OSTYPE in
|
|||||||
export MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH"
|
export MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH"
|
||||||
#eval $(ssh-agent -s)
|
#eval $(ssh-agent -s)
|
||||||
;;
|
;;
|
||||||
|
"linux-gnu" )
|
||||||
|
export ANDROID_HOME=~/local/android-sdk
|
||||||
|
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
1
zshrc
1
zshrc
@@ -30,6 +30,7 @@ setopt cdablevars
|
|||||||
########################
|
########################
|
||||||
alias _=sudo
|
alias _=sudo
|
||||||
alias g=git
|
alias g=git
|
||||||
|
alias nohist='unset HISTFILE'
|
||||||
alias ta='tmux attach -t'
|
alias ta='tmux attach -t'
|
||||||
alias ts='tmux new-session -s'
|
alias ts='tmux new-session -s'
|
||||||
alias tl='tmux list-sessions'
|
alias tl='tmux list-sessions'
|
||||||
|
|||||||
Reference in New Issue
Block a user