From 7952033da2d8a90cb0f9a30150cf6a45c6492b8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Sun, 18 Oct 2020 13:59:23 +0000 Subject: Remove unused dotfiles --- vimrc | 109 ------------------------------------------------------------------ 1 file changed, 109 deletions(-) delete mode 100755 vimrc (limited to 'vimrc') diff --git a/vimrc b/vimrc deleted file mode 100755 index 32e6fc5..0000000 --- a/vimrc +++ /dev/null @@ -1,109 +0,0 @@ -let mapleader = "," -syntax on - -filetype off -set rtp+=~/.vim/bundle/Vundle.vim -call vundle#begin() -" TODO(orbekk): Try ctrlp.vim instead. -" Plugin 'wincent/command-t' -" Plugin 'ctrlpvim/ctrlp.vim' -Plugin 'chriskempson/base16-vim' -Plugin 'chriskempson/vim-tomorrow-theme' -Plugin 'gmarik/Vundle.vim' -Plugin 'Shougo/vimproc.vim' -Plugin 'Shougo/unite.vim' -Plugin 'Shougo/unite-outline' -Plugin 'Shougo/neomru.vim' -call vundle#end() - -set modeline -set tabpagemax=20 -set autoread -set noswapfile -set timeoutlen=1000 -set ignorecase -set expandtab -set shiftwidth=2 -set softtabstop=2 -set smarttab -set smartcase -set incsearch -set autoindent -set formatoptions=crt -setglobal fileencoding=utf-8 -set fileencodings=ucs-bomb,utf-8,latin1 -set virtualedit=block -set hidden -set confirm -inoremap -set hlsearch - -filetype plugin on -filetype indent on - -setlocal complete+=ktags - -nmap :silent noh -map cd :cd %:p:h:pwd - -if executable('ag') -let g:unite_source_grep_command = 'ag' -let g:unite_source_grep_default_opts = -\ '-i --vimgrep --ignore ' . -\ '''.hg'' --ignore ''.svn'' --ignore ''.git'' --ignore ''.bzr''' -endif - -let g:unite_source_history_yank_enable = 1 -call unite#filters#matcher_default#use(['matcher_fuzzy']) -nnoremap t :Unite -no-split -buffer-name=files -start-insert file_mru file_rec/async:. -nnoremap r :Unite -no-split -buffer-name=mru -start-insert file_rec/git -nnoremap O :Unite -no-split -buffer-name=outline outline -nnoremap y :Unite -no-split -buffer-name=yank history/yank -nnoremap b :Unite -no-split -buffer-name=buffer buffer bookmark -nnoremap g :Unite -no-split -buffer-name=grep -start-insert grep:. - -" map t :CtrlP -" map b :CtrlPBuffer -" map r :CtrlPMRU - -set wildignore+=*.class,target/*,project/* - -"set guifont=DroidSansMono\ 10 -set guifont="Source Code Pro 10" -set guioptions-=m -set guioptions-=M -set guioptions-=T -set guioptions-=r -set guioptions-=L - -set colorcolumn=81 - -map R :source ~/.vimrc - -function! GetFileBase() - return substitute(expand("%"), - \ '\(.\{-}\)\(_test\|_unittest\)\?\.\(h\|cc\)$', '\1', "") -endfunction - -" Switch between cc, h, test/unittest files. -function! EditCc() - exec "edit " . fnameescape(GetFileBase() . ".cc") -endfunction -map cc :silent :call EditCc() - -function! EditH() - exec "edit " . fnameescape(GetFileBase() . ".h") -endfunction -map h :silent :call EditH() - -function! EditTest() - let file_base = GetFileBase() - if (filereadable(file_base . "_unittest.cc")) - exec "edit " . fnameescape(file_base . "_unittest.cc") - else - exec "edit " . fnameescape(file_base . "_test.cc") - endif -endfunction -map te :silent :call EditTest() - -source ~/.vimrc.local -- cgit v1.2.3