From 6537a69574523a2e47d7a6090c8a67f17bfa1137 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 22 Dec 2016 10:05:11 -0500 Subject: Removes unused bindings and Plugins --- configs/.vimrc | 99 ++++++++++++++++------------------------------------------ 1 file changed, 27 insertions(+), 72 deletions(-) (limited to 'configs') diff --git a/configs/.vimrc b/configs/.vimrc index b8c20d732fcf..63d5d6271a46 100644 --- a/configs/.vimrc +++ b/configs/.vimrc @@ -17,8 +17,6 @@ Plugin 'VundleVim/Vundle.vim' " Displays git information in airline. Plugin 'tpope/vim-fugitive' -Plugin 'Raimondi/delimitMate' - " Displays git-tracked C*UD ops within gutter. Plugin 'airblade/vim-gitgutter' @@ -76,17 +74,40 @@ Plugin 'neomake/neomake' " Color pack Plugin 'flazz/vim-colorschemes' - " Dash integration (macOS only) Plugin 'rizzatti/dash.vim' - call vundle#end() " required filetype plugin indent on " required " Put your non-Plugin stuff after this line " -- END: Vundle config -- +" Basic settings +set number +set wrap! +set tabstop=2 +set expandtab +set shiftwidth=2 +set background=dark + +syntax enable +colorscheme hybrid + +set termguicolors + +set history=1000 +set undolevels=1000 + +set t_Co=255 + +" Support italics +highlight Comment cterm=italic + +" Changes to character. +let mapleader = " " + + " Neomake Settings autocmd! BufWritePost * Neomake @@ -184,15 +205,6 @@ nnoremap zK zC nnoremap zk zc -" Smart Comment code (has dependency 'tpope/vim-commentary') -nnoremap Vgc -vnoremap gc - - -" Changes to character. -let mapleader = " " - - " Lookup Dash word under cursor in Dash nnoremap j :Dash @@ -216,10 +228,6 @@ set hlsearch noremap / :silent! /__wc_gibberish__/:echo "Search cleared." -" Use custom-made snippets. -nnoremap ,jsfn :-1read $HOME/.vim/function_skeleton.jso - - " backspace settings set backspace=2 set backspace=indent,eol,start @@ -243,6 +251,7 @@ inoremap jk " Conventional Emacs line-editor defaults +" NOTE: interferes w/ current tmux prefix inoremap I inoremap A @@ -254,14 +263,6 @@ nnoremap sj :spj nnoremap sk :sp -" Move around splits with -" NOTE: no longer needed with tmux navigator plugin -" nnoremap h h -" nnoremap j j -" nnoremap k k -" nnoremap l l - - " Delete (i.e. "close") the currently opened buffer " TODO: unless it's a split window, which should be :q nnoremap q :bdelete @@ -275,27 +276,12 @@ let g:ctrlp_cmd = 'CtrlPBuffer' " Set runtime path set runtimepath^=~/.vim/bundle/ctrlp.vim -" Fuzzy-find files. -nnoremap pf :CtrlP - -" Fuzzy-find open buffers. -nnoremap pb :CtrlPBuffer - -" Fuzzy-find open buffers. -nnoremap pm :CtrlPMRUFiles - " Buffer creation and management " Buffer movement nnoremap :1bnext nnoremap :1bprevious -" Buffer creation -" nnoremap :enew - -" Buffer deletion -nnoremap bq :bp bd # - " make Y do what is intuitive given: " D: deletes until EOL @@ -313,38 +299,10 @@ nnoremap Y y$ nnoremap -" Basic settings -set number -set wrap! -set tabstop=2 -set expandtab -set shiftwidth=2 -set background=dark - -syntax enable -colorscheme hybrid - -set termguicolors - -set history=1000 -set undolevels=1000 - -set t_Co=255 - - -" Support italics -highlight Comment cterm=italic - - " remap redo key that is eclipsed by `rotate` currently nnoremap U :redo -" Repeat last colon-command -nnoremap ;; @: -vnoremap ;; @: - - " Define highlighting groups " NOTE: The ANSII aliases for colors will change when iTerm2 settings are " changed. @@ -446,10 +404,6 @@ vnoremap // y/"N autocmd BufWritePre *.{js,py,tpl,less,html,ex,exs,txt} :%s/\s\+$//e -" set default font and size -set guifont=Operator\ Mono:h16 - - " Use .gitignore file to populate Ctrl-P let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f'] @@ -462,6 +416,7 @@ let g:ctrlp_custom_ignore = { " WIP: Run elixir tests on that line +" TODO: only register binding in *.exs? file extensions nnoremap t :call ExTestToggle() -- cgit 1.4.1