From bd166c76b65006f2945d5072fe07e4777c085eff Mon Sep 17 00:00:00 2001 From: gxlin Date: Tue, 16 Mar 2021 19:47:31 +0800 Subject: More vim config --- .vimrc | 83 ------------------------------------------------------------------ 1 file changed, 83 deletions(-) delete mode 100644 .vimrc (limited to '.vimrc') diff --git a/.vimrc b/.vimrc deleted file mode 100644 index 092ea6b..0000000 --- a/.vimrc +++ /dev/null @@ -1,83 +0,0 @@ -" General Config - -set nocompatible -set number -set backspace=indent,eol,start -syntax on -set encoding=utf-8 -set t_Co=256 -set showcmd -set autoread -set mouse=a -filetype indent on - -set hidden - -set completeopt=menu,menuone - -" MacVim - -if has("gui_running") - if has("gui_macvim") - set guifont=Monaco:h16 - set transparency=10 - endif -endif - -if has("macunix") -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 n :bn -nnoremap p :bp -nnoremap d :bd - -if filereadable(expand('~/.dotfiles/.vim/init.vim')) - exec "source " . '~/.dotfiles/.vim/init.vim' -endif - -- cgit v1.2.3