Skip to content

Instantly share code, notes, and snippets.

@denisb411
Created April 13, 2018 19:27
Show Gist options
  • Save denisb411/41a2cdb20689b704684807b3905e5491 to your computer and use it in GitHub Desktop.
Save denisb411/41a2cdb20689b704684807b3905e5491 to your computer and use it in GitHub Desktop.
Configured vimrc mainly for python development
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
" ...
Plugin 'Shougo/vimproc.vim'
Plugin 'Shougo/vimshell.vim'
syntax on
colorscheme monokai
let g:monokai_term_italic = 1
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
"split navigations
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap <S-Down> <C-d>
nnoremap <S-Up> <C-u>
" Enable folding
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
au BufNewFile,BufRead *.py
\ set tabstop=4
\ set softtabstop=4
\ set shiftwidth=4
\ set textwidth=79
\ set expandtab
\ set autoindent
\ set fileformat=unix
au BufNewFile,BufRead *.js, *.html, *.css
\ set tabstop=2
\ set softtabstop=2
\ set shiftwidth=2
set encoding=utf-8
Plugin 'scrooloose/nerdtree'
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'kien/ctrlp.vim'
set nu
Plugin 'tpope/vim-fugitive'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
set hlsearch " disable search highlighting
set ignorecase " ignore case when using a search pattern
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment