From d4e1469e4b0c5aaf5c23be555e8b224f9254d781 Mon Sep 17 00:00:00 2001 From: gxlin Date: Thu, 15 Jul 2021 21:28:06 +0800 Subject: A usable boostrap config --- .vim/init.vim | 105 ---------------------------------------------------------- 1 file changed, 105 deletions(-) delete mode 100644 .vim/init.vim (limited to '.vim/init.vim') diff --git a/.vim/init.vim b/.vim/init.vim deleted file mode 100644 index 73c025b..0000000 --- a/.vim/init.vim +++ /dev/null @@ -1,105 +0,0 @@ -" General Config - -set nocompatible -set number -set backspace=indent,eol,start -syntax on -set fileencodings=ucs=bom,utf-8,utf-16,gbk,big5,gb18030,latin1 -set t_Co=256 -set showcmd -set autoread -set mouse=a -filetype indent on -set modeline -set textwidth=72 -set formatoptions+=mB -set formatoptions-=tc -set secure - -set hidden - -set completeopt=menu,menuone - -if $COLORTERM is 'truecolor' - set termguicolors -endif - -" Correct background rendering in some terminal -let &t_ut='' - -" MacVim - -if has("gui_running") - if has("gui_macvim") - set guifont=Monaco:h15 - set transparency=10 - set noimdisable - - noremap :tabn 1 - noremap :tabn 2 - noremap :tabn 3 - noremap :tabn 4 - noremap :tabn 5 - noremap :tabn 6 - noremap :tabn 7 - noremap :tabn 8 - noremap :tabn 9 - noremap :tablat - endif -endif - -" Identation - -set autoindent -set tabstop=4 -set shiftwidth=4 -set expandtab -set softtabstop=4 - -autocmd FileType html setlocal shiftwidth=2 softtabstop=2 expandtab -autocmd FileType css setlocal shiftwidth=2 softtabstop=2 expandtab -autocmd FileType javascript setlocal shiftwidth=2 softtabstop=2 expandtab - -set wrap -"set nowrap -"set wrapmargin=4 -set scrolloff=5 -"set sidescrolloff=5 -set laststatus=2 -set ruler - -set hlsearch -set incsearch -set ignorecase -set smartcase - -" Completion - -set wildmenu -set wildmode=longest:list,full -set wildignore=*.o,*.obj,*~ -set wildignore+=*DS_Store* -set wildignore+=*.gem -set wildignore+=*.png,*.jpg,*.gif - -" change default directory -let s:vim_swapfiles_dir = expand('~/.vim/.swp/') -if !isdirectory(s:vim_swapfiles_dir) - silent! call mkdir(s:vim_swapfiles_dir, 'p') -endif -set directory=~/.vim/.swp// - -" tags -set tags=./.tags;,.tags - -" mapping -let mapleader=',' " change the key -nnoremap cd :cd %:p:h :pwd - -source ~/.dotfiles/.vim/plugins/init.vim -source ~/.dotfiles/.vim/keybindings.vim - -silent colorscheme onedark - -highlight Pmenu ctermbg=grey -set exrc -- cgit v1.2.3