Created
February 9, 2018 14:19
-
-
Save wandy-dev/0ecf2ea58671cc20b7360013e43234fa to your computer and use it in GitHub Desktop.
basic vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
"---- Plugins ----" | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'tpope/vim-surround' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'godlygeek/tabular' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'dylanaraps/wal.vim' | |
Plugin 'mileszs/ack.vim' | |
Plugin 'vim-airline/vim-airline' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
"---- Plugin configs ----" | |
" nerdtree | |
map <C-n> :NERDTreeToggle<CR> | |
"---- Color scheme ----" | |
colorscheme peachpuff | |
set t_Co=256 | |
syntax on | |
"---- Basic configs ----" | |
set background=dark | |
set tabstop=2 | |
set shiftwidth=2 | |
set laststatus=2 | |
set number | |
"---- Vim Scripts ----" | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
nnoremap <leader>s :Ack | |
if executable('ag') | |
let g:ackprg = 'ag --vimgrep' | |
endif | |
"---- View changes ----" | |
" 80 column highlight | |
:set colorcolumn=80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment