aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhumphreylin <[email protected]>2019-07-29 07:52:36 +0000
committerhumphreylin <[email protected]>2019-07-29 07:52:36 +0000
commit5dc27c47e06ec0367a1a93f0c6195d00e776bff6 (patch)
tree9fb0fd075189d9d41c84fdc6abe5905157eac304
downloaddotfiles-5dc27c47e06ec0367a1a93f0c6195d00e776bff6.tar.gz
dotfiles-5dc27c47e06ec0367a1a93f0c6195d00e776bff6.tar.bz2
dotfiles-5dc27c47e06ec0367a1a93f0c6195d00e776bff6.zip
add .vimrc
-rw-r--r--.vimrc53
1 files changed, 53 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..1d2f8c1
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,53 @@
+set number
+syntax on
+set showcmd
+set encoding=utf-8
+set t_Co=256
+filetype indent on
+
+set autoindent
+set tabstop=4
+set shiftwidth=4
+set expandtab
+set softtabstop=4
+
+set textwidth=80
+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
+
+set undofile
+
+set autoread
+
+set wildmenu
+set wildmode=longest:list,full
+
+" Plugin
+if empty(glob('~/.vim/autoload/plug.vim'))
+ silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
+ \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+ autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
+endif
+
+call plug#begin('~/.vim/plugged')
+Plug 'Valloric/YouCompleteMe', {'do': 'python3 ./install.py --clang-completer'}
+Plug 'vim-airline/vim-airline'
+Plug 'vim-airline/vim-airline-themes'
+Plug 'flazz/vim-colorschemes'
+Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'}
+Plug 'scrooloose/nerdtree'
+call plug#end()
+
+" Plugin config
+colorscheme molokai
+let g:airline='molokai'