" grep
set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc
set grepformat^=%f:%l:%c:%m " file:line:coloumn:message
+nnoremap <silent> <leader>* :grep <cword> \| copen<cr><c-l>
-let mapleader = ","
-
-" Normal mode Mappings
-nnoremap <leader>* :silent grep <cword> \| copen<CR><C-l>
-nnoremap <C-h> <C-w><C-h>
-nnoremap <C-j> <C-w><C-j>
-nnoremap <C-k> <C-w><C-k>
-nnoremap <C-l> <C-w><C-l>
-nnoremap <C-n> :bnext<CR>
-nnoremap <C-p> :bprev<CR>
-nnoremap <silent> <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR>
-nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>
-nnoremap <silent> <CR> :nohlsearch<Bar>:echo<CR>
-
-" Insert mode Mappings
-inoremap <C-U> <C-G>u<C-U>
-
-" Command mode Mappings
-
-" Command aliases
-cnoreabbrev w!! w !sudo tee "%"
-
-" Commands
+" Netrw
+let g:netrw_liststyle=3
+let g:netrw_banner = 0
+let g:netrw_sort_sequence = '[\/]$,*'
" Plugins
" Tagbar
packadd tagbar
+nnoremap <Leader>t :TagbarToggle<CR>
" Fugitive
packadd vim-fugitive
" Unimpaired
packadd vim-unimpaired
-" Netrw
-let g:netrw_liststyle=3
-let g:netrw_banner = 0
-let g:netrw_sort_sequence = '[\/]$,*'
-
" Ranger
packadd ranger.vim
packadd bclose.vim
let g:ranger_replace_netrw = 1
+nnoremap <silent><Leader>e :Ranger<CR>
" Airline
packadd vim-airline
let g:airline#extensions#tabline#enabled = 1
+let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
" Editorconfig
packadd editorconfig-vim
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard']
"let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
+nnoremap <Leader>p :CtrlP<CR>
nnoremap <Leader>b :CtrlPBuffer<CR>
nnoremap <Leader>m :CtrlPMRU<CR>
packadd matchit
+let mapleader = ","
+
+" Normal mode Mappings
+nnoremap <c-h> <c-w><c-h>
+nnoremap <c-j> <c-w><c-j>
+nnoremap <c-k> <c-w><c-k>
+nnoremap <c-l> <c-w><c-l>
+nnoremap <silent> <c-n> :bnext<cr>
+nnoremap <silent> <c-p> :bprev<cr>
+nnoremap <silent> <leader>+ :exe "resize " . (winheight(0) * 3/2)<cr>
+nnoremap <silent> <leader>- :exe "resize " . (winheight(0) * 2/3)<cr>
+nnoremap <silent> <cr> :nohlsearch<bar>:echo<cr>
+
+" Insert mode Mappings
+inoremap <C-U> <C-G>u<C-U>
+
+" Command mode Mappings
+
+" Command aliases
+cnoreabbrev w!! w !sudo tee "%"
" autocommands
augroup filetype
au bufwritepost ~/.vim/vimrc.local source %
augroup END
-" local
+
+" local settings
if filereadable(expand('~/.vim/vimrc.local'))
source ~/.vim/vimrc.local
endif
-