diff --git a/agignore b/agignore index 6c9a104..a3c492c 100644 --- a/agignore +++ b/agignore @@ -8,7 +8,12 @@ *.jpg *.gif *.png +*.pdf *.ico +*.woff +*.ttf +*.otf +*.eot _srcs node_modules .sass-cache diff --git a/vimrc b/vimrc index af38a9b..5689f83 100644 --- a/vimrc +++ b/vimrc @@ -17,7 +17,6 @@ NeoBundleFetch 'Shougo/neobundle.vim' " Plugins and useful stuff/dependencies "====================================================================== -NeoBundle 'Raimondi/delimitMate' NeoBundle 'Shougo/unite.vim' NeoBundle 'Shougo/neocomplete' NeoBundle 'Shougo/neosnippet' @@ -31,8 +30,6 @@ NeoBundle 'godlygeek/tabular' NeoBundle 'justinmk/vim-sneak' NeoBundle 'kshenoy/vim-signature' NeoBundle 'mattn/emmet-vim' -NeoBundle 'mhinz/vim-signify' -NeoBundle 'rizzatti/dash.vim' NeoBundle 'scrooloose/nerdtree' NeoBundle 'scrooloose/syntastic' NeoBundle 't9md/vim-choosewin' @@ -47,7 +44,6 @@ NeoBundle 'webgefrickel/vim-snippets' NeoBundle 'wellle/tmux-complete.vim' " plugin libs and dependencies -NeoBundle 'rizzatti/funcoo.vim' NeoBundle 'Shougo/vimproc', { \ 'build' : { \ 'mac' : 'make -f make_mac.mak', @@ -203,7 +199,7 @@ let g:solarized_termtrans = 1 let g:solarized_contrast = 'high' colorscheme solarized -" minor optical fix vor syntastic / vim-signature +" minor optical fix vor syntastic and vim signature highlight SignColumn ctermbg=8 @@ -374,9 +370,6 @@ nnoremap r :%s/ " reset search nmap :noh -" Swap two words -nmap w :s/\(\%#\w\+\)\(\_W\+\)\(\w\+\)/\3\2\1/`' - " short command to strip trainling whitepsace nmap s :call StripTrailingWhitespaces() @@ -394,7 +387,7 @@ noremap Y "*Y nnoremap p p`[v`]= " when over a class in html hit c to find that class in css/scss/js -nmap cf :execute "vimgrep /" . expand("") . "/j **" cnext +nmap f :execute "vimgrep /" . expand("") . "/j **" cnext " Format strings in js vmap js :call Stringify() @@ -437,14 +430,8 @@ nmap t :Tabularize / vmap t :Tabularize / -" dash -nmap d DashSearch -nmap D DashGlobalSearch - -" NERDtree - " choosewin -nmap q (choosewin) +nmap w (choosewin) " TComment @@ -476,8 +463,8 @@ let g:syntastic_auto_jump = 0 " let g:syntastic_scss_checkers = ['scss_lint'] let g:syntastic_mode_map = { \ 'mode': 'active', - \ 'active_filetypes': ['ruby', 'php', 'javascript', 'scss', 'css'], - \ 'passive_filetypes': ['xhtml', 'html'] + \ 'active_filetypes': ['php', 'javascript'], + \ 'passive_filetypes': ['xhtml', 'html', 'scss', 'css'] \ } @@ -556,18 +543,22 @@ call unite#custom_source('file_rec,file_rec/async,file_mru,file,buffer,grep', let g:unite_source_history_yank_enable=1 let g:unite_prompt='❯ ' -let g:unite_source_grep_command='ag' -let g:unite_source_grep_default_opts='--nocolor --nogroup -S' -let g:unite_source_grep_recursive_opt='' -let g:unite_split_rule = "botright" + +if executable('ag') + let g:unite_source_grep_command='ag' + let g:unite_source_grep_default_opts='--nocolor --nogroup --column -S' + let g:unite_source_rec_async_command= 'ag --nocolor --nogroup --column -S --hidden -g ""' + let g:unite_source_grep_recursive_opt='' + let g:unite_split_rule = "botright" +endif nmap [unite] nnoremap [unite] nnoremap [unite], :Unite -start-insert -toggle -auto-resize -buffer-name=files file_rec/async -nnoremap [unite]. :Unite -short-source-names -quick-match buffer +nnoremap [unite]b :Unite -short-source-names -quick-match buffer nnoremap [unite]n :Unite -toggle -auto-resize -buffer-name=files file -nnoremap [unite]b :Unite -start-insert -auto-resize -buffer-name=buffers buffer +nnoremap [unite]. :Unite -start-insert -auto-resize -buffer-name=buffers buffer nnoremap [unite]l :Unite -auto-resize -buffer-name=line line nnoremap [unite]y :Unite -buffer-name=yanks history/yank nnoremap [unite]f :UniteWithCursorWord -start-insert -toggle -auto-resize -buffer-name=files file_rec/async