Skip to content

Commit

Permalink
Standalone vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoshi committed Dec 5, 2018
1 parent 1588f03 commit 71dce6a
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions vim/vimrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
set nocompatible " be iMproved, required
" Indentation
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab

"Plug plugins
call plug#begin('~/.vim/plugged')
Expand All @@ -15,6 +23,10 @@ Plug 'zenbro/mirror.vim'
Plug 'chriskempson/base16-vim'
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/nerdcommenter'
Plug 'mileszs/ack.vim'
Plug 'rstacruz/sparkup'
Plug 'morhetz/gruvbox'
"Plug 'w0rp/ale'
"Completion

call plug#end()
Expand Down Expand Up @@ -55,6 +67,9 @@ nnoremap ; :
nnoremap : :
inoremap jj <Esc>
nnoremap <silent><Leader><C-]> <C-w><C-]><C-w>T
nnoremap Y y$
set wrap
"autocmd BufEnter * silent! lcd %:p:h
set autochdir
Expand Down Expand Up @@ -106,7 +121,8 @@ if has('gui_running')
" colo Tomorrow-Night
colo base16-tomorrow-night
"colo base16-grayscale-dark

"colo gruvbox


"let g:hybrid_custom_term_colors = 1
"let g:hybrid_reduced_contrast = 1 " Remove this line if using the default palette.
Expand Down Expand Up @@ -142,13 +158,17 @@ set laststatus=0

" In absence of spf13,
" for tabswitching
"nnoremap L gt<CR>
"noremap H gT<CR>
nnoremap L gt<CR>
noremap H gT<CR>
"let g:AutoPairs = {}

" Adding this because for just for one py file tagbar isn't working
autocmd BufEnter *.py :setlocal filetype=python
set autoread

" Search related
set ignorecase
set smartcase
set incsearch

0 comments on commit 71dce6a

Please sign in to comment.