From eb964aad5ff51c36f4131ad33a50dda2c05a8457 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 1 Jun 2020 11:57:54 +0200 Subject: [PATCH] Remove cruft from vimrc. --- vimrc | 69 ++++------------------------------------------------- vimrc.basic | 2 +- 2 files changed, 5 insertions(+), 66 deletions(-) diff --git a/vimrc b/vimrc index 5ebde09..271b9d9 100644 --- a/vimrc +++ b/vimrc @@ -1,36 +1,12 @@ -set nocompatible " be iMproved, required -filetype off " required +call plug#begin('~/.vim/plugged') -" set the runtime path to include Vundle and initialize -set rtp+=~/.vim/bundle/Vundle.vim -runtime! autoload/vundle.vim -if exists("*vundle#begin") - call vundle#begin() - " alternatively, pass a path where Vundle should install plugins +Plug('tpope/vim-commentary') - " let Vundle manage Vundle, required - Plugin 'gmarik/Vundle.vim' +call plug#end() - "Other plugins - Plugin 'wting/rust.vim' - Plugin 'tomtom/tlib_vim' - Plugin 'MarcWeber/vim-addon-mw-utils' - Plugin 'garbas/vim-snipmate' - Plugin 'honza/vim-snippets' - Plugin 'alfredodeza/coveragepy.vim' - Plugin 'tikhomirov/vim-glsl' - Plugin 'chrisbra/vim-show-whitespace' - Plugin 'krisajenkins/vim-projectlocal' - Plugin 'xolox/vim-misc' - Plugin 'rhysd/vim-clang-format' - - " All of your Plugins must be added before the following line - call vundle#end() " required -endif "Split view if multiple files are opened if argc() == 2 - autocmd VimEnter * nested silent vertical all - "silent vertical all + silent vertical all endif set background=dark @@ -42,9 +18,6 @@ set shiftwidth=4 set incsearch set hlsearch set expandtab -set foldmethod=indent -set nofoldenable -set foldlevel=99 set autowrite set cmdheight=2 set scrolloff=7 @@ -59,37 +32,3 @@ filetype plugin indent on imap jk map :set nonumber! set pastetoggle= -"Change working dir to current dir -":cd %:p:h -"execute Makefile -:map :! ~/.vim/custom_make.sh -:imap - -"Map on python files -au FileType python :map i -au FileType python :imap import pdb; pdb.set_trace() -"Map on python files -au FileType python :map :Coveragepy show -au FileType python :imap - -"Map on Latex files -au FileType tex :map :! if [ -f Makefile ]; then; make; else; latexmk -auxdir=build -outdir=build -pdf %:t; cp build/%:r.pdf .; fi - -"Highlight chars after column 80 -let s:activatedh=0 -highlight OverLength ctermbg=darkred guibg=#ffd9d9 -function! ToggleH() - if s:activatedh == 0 - let s:activatedh = 1 - match OverLength '\%>80v.\+' - else - let s:activatedh = 0 - match none - endif -endfunction -nnoremap :call ToggleH() -call ToggleH() - -"Map ctrl+f to ClangFormat -:nnoremap :ClangFormat -:vnoremap :ClangFormat diff --git a/vimrc.basic b/vimrc.basic index adaf8e0..50e0440 100644 --- a/vimrc.basic +++ b/vimrc.basic @@ -1,6 +1,6 @@ "Split view if multiple files are opened if argc() == 2 - autocmd VimEnter * nested silent vertical all + silent vertical all endif set background=dark