From e1517026fc186e943ca49dff21591142c004aca1 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 18 Aug 2016 19:10:48 -0400 Subject: [PATCH] some more stuff --- vimrc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/vimrc b/vimrc index 314b88e..342c4bd 100644 --- a/vimrc +++ b/vimrc @@ -7,11 +7,12 @@ Plug 'nanotech/jellybeans.vim' " keepers Plug 'airblade/vim-gitgutter' -Plug 'atomaka/renamefile.vim' Plug 'atomaka/ZoomWin' " vim-scripts not up to date Plug 'bronson/vim-trailing-whitespace' Plug 'ctrlpvim/ctrlp.vim' Plug 'rbgrouleff/bclose.vim' +Plug 'tpope/vim-endwise' +Plug 'tpope/vim-eunuch' Plug 'tpope/vim-surround' " languages @@ -30,11 +31,11 @@ call plug#end() filetype plugin indent on " STATUS LINE -set statusline=%<\ %{GitState()}%f%{ZoomState()}\ %m%r%y%w%=%l\/%-6L\ %3c\ +set statusline=%<\ %f%{ZoomState()}\ %m%r%y%w%=\ Line:\ %l\/%L\ [%p%%]\ Col:\ %c\ Buf:\ #%n\ " OPTIONS set fileformats=unix,mac,dos " File format prefer unix endings -set endofline " Add newlien at end of file +set endofline " Add newline at end of file set shellslash " Forward slashes set nobackup " No backup files set noswapfile " Hope for the best @@ -66,6 +67,7 @@ set scrolloff=3 " Keep cursor from touching edges set timeoutlen=500 " Don't wait too long (ambiguous leaders) set showmatch " Show matching brackets set hidden " Allow unsaved buffers to be hidden +set wildcharm= " Allow use of tab in macros set wildmenu " Command line completion set wildmode=list:longest,full " Better file completion set infercase " Adjust completions to match case @@ -78,6 +80,10 @@ set softtabstop=2 set shiftwidth=2 set expandtab set shiftround " make >> go to next tab +" some performance stuff +set lazyredraw +set ttyfast +set synmaxcol=256 " Show whitespace markers before cursor in insert mode set list listchars=tab:\ \ ,trail:ยท " Ignore stuff @@ -131,9 +137,10 @@ nnoremap BD :Bclose! " other map fw :FixWhitespace map pm :set paste! -map sa :RenameFile +map sa :Move % map se :e ~/.vimrc map sc :pclose +map sw :SudoWrite map sz :so ~/.vimrc " PLUGIN CONFIGURATION @@ -141,11 +148,6 @@ map sz :so ~/.vimrc colorscheme jellybeans syntax enable -" fugitive -function! GitState() - return system("[[ -n \"$(git status --porcelain " . shellescape(expand("%")) . ")\" ]] && echo -n +") -endfunction - " go let g:go_fmt_command = "goimports"