diff --git a/vimrc b/vimrc index e25cc26..5059832 100644 --- a/vimrc +++ b/vimrc @@ -1,12 +1,10 @@ call plug#begin('~/.vim/plugged') -Plug 'https://github.com/junegunn/vim-github-dashboard.git' -Plug '/usr/local/opt/fzf' +Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'tpope/vim-surround' Plug 'w0rp/ale' Plug 'tpope/vim-endwise' -Plug 'vim-airline/vim-airline' Plug 'kchmck/vim-coffee-script' Plug 'joukevandermaas/vim-ember-hbs' Plug 'tpope/vim-fugitive' @@ -15,12 +13,14 @@ Plug 'ntpeters/vim-better-whitespace' Plug 'scrooloose/nerdtree' Plug 'tpope/vim-commentary' Plug 'janko-m/vim-test' -Plug 'rust-lang/rust.vim' Plug 'kassio/neoterm' " Initialize plugin system call plug#end() +"Font +set guifont=Source\ code\ pro:h14 + " Leader let mapleader=',' let maplocalleader=',' @@ -85,7 +85,7 @@ nnoremap sv :source $MYVIMRC " spare my fingers in the long run inoremap jj -nnoremap :call GitFilesInDir() +nnoremap :GFiles =getcwd() nnoremap b :Buffers " Relative number toggle @@ -93,11 +93,6 @@ function! ToggleNumberRel() setlocal relativenumber! endfunction -function! GitFilesInDir() - let localDir=getcwd() - call fzf#vim#gitfiles(localDir) -endfunction - " Quickly toggle between relativenumber and number noremap rr :call ToggleNumberRel() @@ -107,7 +102,7 @@ let g:strip_whitespace_on_save=1 " ripgrep searching let g:rg_command = ' - \ rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" ' + \ rg --column --line-number --no-heading --fixed-strings --smart-case --hidden --follow --color "always" ' command! -bang -nargs=* F call fzf#vim#grep(g:rg_command .shellescape(), 1, 0) @@ -134,24 +129,36 @@ function! CustomNERDTreeToggle() endif endfunction -nnoremap t :call CustomNERDTreeToggle() +nnoremap t :call CustomNERDTreeToggle() +nnoremap tf :NERDTreeFind "neoterm let g:neoterm_default_mod = "botright" +let g:neoterm_size = 10 +let g:neoterm_autoscroll = 1 "vim-test setup nnoremap s :TestNearest nnoremap sf :TestFile let test#strategy = "neoterm" -" always use system clipboard -set clipboard=unnamedplus -" rust stuff -let g:rustfmt_autosave = 1 - -"use 2.5.0 -let g:ruby_host_prog = '~/.rbenv/versions/2.5.0/bin/neovim-ruby-host' - "easier tab switching -noremap gt -noremap gT +noremap gt +noremap gT +inoremap gt +inoremap gT + +"window management +noremap :3wincmd < +noremap :3wincmd > +noremap :3wincmd + +noremap :3wincmd - + +"Ale +let g:ale_lint_on_text_changed = 'never' +let g:ale_linters = { +\ 'coffee': ['coffeelint'], +\} + +"macvim stuff +set guioptions=