Skip to content

Instantly share code, notes, and snippets.

@soardex
Created March 13, 2017 05:07
Show Gist options
  • Save soardex/27d598fc149d734807f415cc320df7d4 to your computer and use it in GitHub Desktop.
Save soardex/27d598fc149d734807f415cc320df7d4 to your computer and use it in GitHub Desktop.
Light .vimrc Configuration
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'scrooloose/nerdcommenter'
Plug 'easymotion/vim-easymotion'
Plug 'raimondi/delimitmate'
Plug 'mileszs/ack.vim'
Plug 'kien/ctrlp.vim'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-rails'
Plug 'majutsushi/tagbar'
Plug 'godlygeek/tabular'
Plug 'ternjs/tern_for_vim'
Plug 'vim-perl/vim-perl', { 'for': 'perl', 'do': 'make clean carp dancer highlight-all-pragmas moose test-more try-tiny' }
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
call plug#end()
set shortmess=at
set cmdheight=1
set pastetoggle=<F3>
set nobackup
set nowb
set noswapfile
set shiftwidth=2
set tabstop=2
set softtabstop=2
set expandtab
set cursorline
set laststatus=2
set showcmd
set wildmenu
set lazyredraw
set showmatch
set incsearch
set hlsearch
set number
let mapleader=','
set foldenable
set foldlevelstart=10
set foldnestmax=10
set foldmethod=indent
nmap <C-E> :NERDTreeToggle<CR>
nmap <C-T> :TagbarToggle<CR>
nmap <silent> <F2> :w<CR>
nmap <silent> <F4> :q<CR>
nmap s <Plug>(easymotion-s2)
nmap t <Plug>(easymotion-t2)
nnoremap <space> za
nnoremap <leader>a :Ack
nnoremap <leader><space> :nohlsearch<CR>
vnoremap < <gv
vnoremap > >gv
vnoremap . :normal .<CR>
let g:netrw_liststyle=3
let g:netrw_banner=0
let g:netrw_browse_split=4
let g:netrw_altv=1
let g:netrw_winsize=25
let g:ctrlp_match_window='bottom,order:ttb'
let g:ctrlp_switch_buffer=0
let g:ctrlp_working_path_mode=0
let g:ctrlp_user_command='ag %s -l --nocolor -g ""'
let g:ctrlp_use_caching=0
let g:ackprg='ag --vimgrep --smart-case'
let g:gitgutter_sign_column_always=1
let g:gitgutter_max_signs=420
let g:NERDTreeDirArrowExpandable='+'
let g:NERDTreeDirArrowCollapsible='-'
if !has('gui_running')
set t_Co=256
colorscheme slate
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment