Make vim perfect again

This commit is contained in:
2017-04-05 13:33:49 +03:00
parent bfd59f0b2a
commit 58f160ccd0
5 changed files with 25 additions and 10 deletions

5
.agignore Normal file
View File

@@ -0,0 +1,5 @@
**min.js
**/public/**
**/log/**
**/tmp/**
**/vendor/bundle/**

View File

@@ -18,7 +18,7 @@ notify-xterm no
notify-screen no notify-screen no
player mplayer player mplayer
refresh-on-startup yes refresh-on-startup yes
reload-time 20 reload-time 60
reload-threads 2 reload-threads 2
#show-read-articles no #show-read-articles no
show-read-feeds yes show-read-feeds yes

26
.nvimrc
View File

@@ -71,7 +71,8 @@ Plugin 'vim-scripts/vimwiki'
Plugin 'ngmy/vim-rubocop' Plugin 'ngmy/vim-rubocop'
Plugin 'tpope/vim-surround' Plugin 'tpope/vim-surround'
Plugin 'kien/ctrlp.vim' Plugin 'kien/ctrlp.vim'
Plugin 'mileszs/ack.vim' " Plugin 'mileszs/ack.vim'
Plugin 'numkil/ag.nvim'
Plugin 'godlygeek/tabular' Plugin 'godlygeek/tabular'
Plugin 'nathanaelkane/vim-indent-guides' Plugin 'nathanaelkane/vim-indent-guides'
@@ -164,9 +165,11 @@ let g:neosnippet#snippets_directory='~/.config/nvim/bundle/vim-snippets/snippets
" Neomake " Neomake
" Run NeoMake on read and write operations " Run NeoMake on read and write operations
autocmd! BufReadPost,BufWritePost * Neomake " autocmd! BufReadPost,BufWritePost * Neomake
autocmd! BufWritePost * Neomake
autocmd BufUnload,BufWinLeave * lclose
let g:neomake_ruby_enabled_makers = ['rubocop'] let g:neomake_ruby_enabled_makers = ['rubocop', 'reek']
let g:neomake_open_list = 2 let g:neomake_open_list = 2
let g:neomake_list_height = 4 let g:neomake_list_height = 4
let g:neomake_serialize = 1 let g:neomake_serialize = 1
@@ -211,7 +214,9 @@ augroup END
" let g:syntastic_check_on_wq = 1 " let g:syntastic_check_on_wq = 1
" Ack " Ack
let g:ack_use_dispatch = 0 " let g:ack_use_dispatch = 0
" Ag
let g:agprg="ag --vimgrep"
syntax enable syntax enable
filetype plugin indent on filetype plugin indent on
@@ -231,6 +236,7 @@ let g:calendar_focus_today = 1
au BufRead,BufNewFile *.jbuilder setf ruby au BufRead,BufNewFile *.jbuilder setf ruby
au BufRead,BufNewFile *.rabl setf ruby au BufRead,BufNewFile *.rabl setf ruby
au BufRead,BufNewFile *.arb setf ruby au BufRead,BufNewFile *.arb setf ruby
au BufRead,BufNewFile *.axlsx setf ruby
au BufRead,BufNewFile *.tag setf coffee " riotjs tags au BufRead,BufNewFile *.tag setf coffee " riotjs tags
au BufRead,BufNewFile *.vue setf coffee " riotjs tags au BufRead,BufNewFile *.vue setf coffee " riotjs tags
@@ -239,11 +245,13 @@ au BufRead,BufNewFile *.vue setf coffee " riotjs tags
" "
" Airline " Airline
let g:airline_theme = 'solarized' let g:airline_theme = 'solarized'
let g:airline_section_y = '' " Don't display encoding " let g:airline_section_s = '' " Don't display encoding
let g:airline_left_sep = '' " Set custom left separator " let g:airline_section_y = '' " Don't display encoding
let g:airline_right_sep = '◀' " Set custom right separator let g:airline_powerline_fonts = 1
"let g:airline#extensions#tabline#enabled = 1 " Enable airline for tab-bar " let g:airline_left_sep = '▶' " Set custom left separator
"let g:airline#extensions#tabline#show_buffers = 0 " Don't display buffers in tab-bar with single tab " let g:airline_right_sep = '◀' " Set custom right separator
" let g:airline#extensions#tabline#enabled = 1 " Enable airline for tab-bar
" let g:airline#extensions#tabline#show_buffers = 0 " Don't display buffers in tab-bar with single tab
"let g:airline#extensions#tabline#fnamemod = ':t' " Display only filename in tab "let g:airline#extensions#tabline#fnamemod = ':t' " Display only filename in tab
" Vim gitgutter " Vim gitgutter

1
.vimrc
View File

@@ -196,6 +196,7 @@ let g:calendar_focus_today = 1
au BufRead,BufNewFile *.jbuilder setf ruby au BufRead,BufNewFile *.jbuilder setf ruby
au BufRead,BufNewFile *.rabl setf ruby au BufRead,BufNewFile *.rabl setf ruby
au BufRead,BufNewFile *.arb setf ruby au BufRead,BufNewFile *.arb setf ruby
au BufRead,BufNewFile *.axlsx setf ruby
au BufRead,BufNewFile *.tag setf coffee " riotjs tags au BufRead,BufNewFile *.tag setf coffee " riotjs tags
au BufRead,BufNewFile *.vue setf coffee " riotjs tags au BufRead,BufNewFile *.vue setf coffee " riotjs tags

1
.zshrc
View File

@@ -205,6 +205,7 @@ alias gwiki="cd ~/wiki && gvim index.md"
alias gulp-watch="./node_modules/.bin/gulp watch; notify-send -i error 'Gulp has crashed'" alias gulp-watch="./node_modules/.bin/gulp watch; notify-send -i error 'Gulp has crashed'"
alias weather="curl wttr.in/Moscow" alias weather="curl wttr.in/Moscow"
alias ag="ag --path-to-ignore ~/.agignore"
export PATH="$HOME/.dynamic-colors/bin:$PATH" export PATH="$HOME/.dynamic-colors/bin:$PATH"