Last active
October 25, 2019 17:35
-
-
Save RichardJTorres/f0cb35ce3346ee9e746b5b56d4b96008 to your computer and use it in GitHub Desktop.
vimrc
This file contains 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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" ---------------------- | |
" VIM configuration file | |
" ---------------------- | |
" | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Vundle required settings | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set nocompatible " be iMproved | |
filetype off "disable file type detection for loading specific options | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
"My bundles: | |
"""""""""""" | |
Plugin 'ekalinin/Dockerfile.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'flazz/vim-colorschemes' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'vim-scripts/indentpython.vim' | |
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
Plugin 'scrooloose/syntastic' | |
Plugin 'nvie/vim-flake8' | |
Plugin 'kien/ctrlp.vim' | |
call vundle#end() | |
filetype plugin indent on "enable loading plugins and indents based on file type (required for Vundle) | |
"=> General Settings | |
"""""""""""""""""""" | |
set nocompatible "drop compatibility for Vi | |
let python_highlight_all=1 | |
syntax enable "turn on syntax highlighting | |
set t_Co=256 | |
colorscheme zenburn "set colorscheme | |
set backspace=indent,eol,start "intuitive backspacing in insert mode | |
set number | |
set encoding=utf-8 | |
" Python formatting | |
au BufNewFile,BufRead *.py: | |
\ set tabstop=4 | |
\ set softtabstop=4 | |
\ set shiftwidth=4 | |
\ set textwidth=79 | |
\ set expandtab | |
\ set autoindent | |
\ set fileformat=unix | |
" Full stack formatting | |
au BufNewFile,BufRead *.js, *.html, *.css: | |
\ set tabstop=2 | |
\ set softtabstop=2 | |
\ set shiftwidth=2 | |
"=> Custom Mappings | |
"""""""""""""""""""" | |
"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> | |
"=> NERDTree Settings | |
""""""""""""""""""""" | |
autocmd vimenter * NERDTree | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif | |
autocmd VimEnter * wincmd w | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment