...
 
Commits (6)
......@@ -41,7 +41,7 @@ autocmd Filetype ruby setlocal nocursorline " disable cursorline for ruby files
if has('cmdline_info')
set ruler " show the ruler
set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%) " a ruler on steroids
set showcmd " show partial commands in status line
set noshowcmd " don't show commands in status line
endif
if has('statusline')
......@@ -95,7 +95,6 @@ set softtabstop=4 " let backspace delete indent
set tabstop=4 " an indentation every four columns
set shiftwidth=4 " use indents of 4 spaces
set textwidth=79 " don't go beyond 80 chars
set colorcolumn=79 " show vertical line on 80th character
set fileformat=unix " you are on UNIX always anyway
set shiftround " round indent to multiple of 'shiftwidth'
......
......@@ -14,17 +14,11 @@ Plug 'Shougo/vimfiler.vim'
Plug 'rbgrouleff/bclose.vim'
Plug 'francoiscabrol/ranger.vim'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-git'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-eunuch'
Plug 'ryanoasis/vim-devicons'
Plug 'bling/vim-bufferline'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'tomasr/molokai'
Plug 'sjl/badwolf'
Plug 'chriskempson/tomorrow-theme'
Plug 'rizzatti/dash.vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
......@@ -37,9 +31,6 @@ Plug 'davidhalter/jedi-vim'
Plug 'stephpy/vim-yaml'
Plug 'pearofducks/ansible-vim', { 'do': 'cd ./UltiSnips; python3 generate.py' }
Plug 'sheerun/vim-polyglot'
Plug 'mzlogin/vim-markdown-toc'
Plug 'itspriddle/vim-marked'
Plug 'terryma/vim-multiple-cursors'
Plug 'mhinz/vim-startify'
Plug 'Yggdroot/indentLine'
autocmd! User indentLine doautocmd indentLine Syntax
......@@ -68,24 +59,24 @@ set termguicolors
let &t_8f="\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b="\<Esc>[48;2;%lu;%lu;%lum"
" setup GUI
if has("gui_running")
set guifont=Fura\ Code\ Retina\ Nerd\ Font\ Complete\ Mono:h16
set guioptions=
colorscheme Tomorrow
let g:airline_theme = 'tomorrow'
set background=light
endif
" ranger
let g:ranger_replace_netrw = 1
let g:ranger_command_override = 'ranger --cmd "set show_hidden=true"'
" airline
" source: https://github.com/ctaylo21/jarvis/blob/master/config/nvim/init.vim
let g:bufferline_echo = 0
" let g:airline_extensions = ['bufferline', 'branch', 'tabline', 'ycm']
let g:airline_extensions = ['bufferline', 'branch', 'ycm']
let g:airline_powerline_fonts = 0
let g:airline_section_z = airline#section#create(['linenr'])
let g:airline_skip_empty_sections = 1
let g:airline#extensions#tabline#formatter = 'unique_tail'
let g:airline#extensions#default#layout = [['a', 'b', 'c'], ['x', 'z', 'warning', 'error']]
let g:airline_exclude_preview = 1
let g:airline_highlighting_cache = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" ycm
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
......@@ -122,16 +113,17 @@ endfun
command! -bang -nargs=? -complete=dir HFiles
\ call fzf#vim#files(<q-args>, {'source': 'fd -t f -H -E .git'}, <bang>0)
nnoremap <silent> <c-f> :exe 'HFiles ' . <SID>fzf_root()<CR>
nnoremap <silent> <Leader>ff :exe 'Files ' . <SID>fzf_root()<CR>
nnoremap <silent> <Leader>fb :Buffers<cr>
nnoremap <silent> <Leader>fh :History<CR>
nnoremap <silent> <Leader>fc :Colors<CR>
nnoremap <silent> <Leader>ll :Lines<cr>
nnoremap <silent> <Leader>lb :BLines<cr>
nnoremap <silent> <Leader>gf :GFiles?<cr>
nnoremap <silent> <Leader>gc :Commits<cr>
nnoremap <silent> <Leader>gb :BCommits<cr>
nnoremap <silent> <c-f> :exe 'HFiles ' . <SID>fzf_root()<CR> " search w/ hidden files
nnoremap <silent> <Leader>ff :exe 'Files ' . <SID>fzf_root()<CR> " no hidden files
nnoremap <silent> <c-b> :Buffers<cr> " search through buffers
nnoremap <silent> <Leader>hh :History<cr> " search through previously open files
nnoremap <silent> <c-c> :Colors<cr> " search through color themes
nnoremap <silent> <Leader>ll :Lines<cr> " lines in loaded buffers
nnoremap <silent> <Leader>bl :BLines<cr> " lines in current buffer
nnoremap <silent> <Leader>gf :GFiles?<cr> " git status
nnoremap <silent> <Leader>gc :Commits<cr> " git commits
nnoremap <silent> <Leader>gb :BCommits<cr> " git commits for current buffer
nnoremap <silent> <c-g> :Rg<cr> " find content in files
" ale
let g:ale_sign_error = "✗"
......