diff --git a/base16-shell b/base16-shell index 8643aca..471707c 160000 --- a/base16-shell +++ b/base16-shell @@ -1 +1 @@ -Subproject commit 8643aca554eef66a20c1227bc2d41b60ba69eee8 +Subproject commit 471707c20e48ea9554c06f1d910c91bd71693459 diff --git a/vim/lightline.vim b/vim/lightline.vim index 0c8101e..4094c74 100644 --- a/vim/lightline.vim +++ b/vim/lightline.vim @@ -3,7 +3,7 @@ let g:lightline = { \ 'colorscheme': 'solarized', \ 'active': { \ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ], ['ctrlpmark'] ], - \ 'right': [ [ 'syntastic', 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ] + \ 'right': [ [ 'ale', 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ] \ }, \ 'component_function': { \ 'fugitive': 'LightLineFugitive', @@ -15,10 +15,10 @@ let g:lightline = { \ 'ctrlpmark': 'CtrlPMark', \ }, \ 'component_expand': { - \ 'syntastic': 'SyntasticStatuslineFlag', + \ 'ale': 'ale#statusline#Status', \ }, \ 'component_type': { - \ 'syntastic': 'error', + \ 'ale': 'error', \ }, \ 'subseparator': { 'left': '|', 'right': '|' } \ } @@ -115,15 +115,6 @@ function! TagbarStatusFunc(current, sort, fname, ...) abort return lightline#statusline(0) 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:vimfiler_force_overwrite_statusline = 0 let g:vimshell_force_overwrite_statusline = 0 diff --git a/vimrc b/vimrc index 927fa02..1c01733 100644 --- a/vimrc +++ b/vimrc @@ -28,7 +28,7 @@ Plug 'fholgado/minibufexpl.vim' Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' -Plug 'scrooloose/syntastic' +Plug 'w0rp/ale' Plug 'tpope/vim-fugitive' Plug 'rhysd/conflict-marker.vim' @@ -184,18 +184,18 @@ noremap bd :bd "" indent visual selected code without unselecting and going back to normal mode vnoremap > >gv vnoremap < + "" Visually select the text that was last edited/pasted nnoremap gV `[v`] "" pull word under cursor into lhs of a substitute (for quick search and replace) -nmap r :%s#\<=expand("")\># +nnoremap r :%s#\<=expand("")\># "" fast editing of the .vimrc nnoremap ev :e $MYVIMRC -nnoremap sv :so $MYVIMRC - -"" allow saving when you forgot sudo -cnoremap w!! w !sudo tee % >/dev/null "" turn on spell checking noremap spl :setlocal spell! @@ -264,38 +264,13 @@ nnoremap fc :Commits "" minibufexpl map t :MBEToggle -"" 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 if filereadable(expand("~/.vim/lightline.vim")) source ~/.vim/lightline.vim + augroup ale-statusline + autocmd! + autocmd User ALELint call lightline#update() + augroup END endif "" Unimpaired @@ -329,37 +304,29 @@ let g:markdown_fenced_languages = [ " Autocmd Rules {{{ "" do syntax highlight syncing from start -autocmd BufEnter * :syntax sync fromstart - -"" Remember cursor position -autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif +augroup general + autocmd! + autocmd BufEnter * :syntax sync fromstart +augroup END "" 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 -au FileType python set noexpandtab +augroup python + autocmd FileType python set noexpandtab +augroup END "" JavaScript -au FileType javascript map r :TernRename - -"" Json -au BufRead,BufNewFile *.json set ft=json - -"" Mustache -au BufRead,BufNewFile *.template set filetype=html.mustache syntax=mustache - -"" always open help in vertical split -au FileType help wincmd L +augroup web + autocmd! + autocmd FileType javascript map r :TernRename + autocmd BufRead,BufNewFile *.json set ft=json + autocmd BufRead,BufNewFile *.template set filetype=html.mustache syntax=mustache +augroup END " }}} -" probably not needed {{{ - -"" disable visual bell -"set visualbell -"set t_vb= - -"" spelling -"set spelllang=en,de -"}}} diff --git a/zplug b/zplug index 063d26f..ac6012d 160000 --- a/zplug +++ b/zplug @@ -1 +1 @@ -Subproject commit 063d26f8009e6a651c124fe8c049346fb49c2769 +Subproject commit ac6012d80df3f0dd327dfe0d274273a40e2f0a16 diff --git a/zprofile b/zprofile index a992d21..ed3d911 100644 --- a/zprofile +++ b/zprofile @@ -25,4 +25,8 @@ case $OSTYPE in export MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH" #eval $(ssh-agent -s) ;; + "linux-gnu" ) + export ANDROID_HOME=~/local/android-sdk + export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools + ;; esac diff --git a/zshrc b/zshrc index 7bb4a63..41bf314 100644 --- a/zshrc +++ b/zshrc @@ -30,6 +30,7 @@ setopt cdablevars ######################## alias _=sudo alias g=git +alias nohist='unset HISTFILE' alias ta='tmux attach -t' alias ts='tmux new-session -s' alias tl='tmux list-sessions'