Skip to content

Instantly share code, notes, and snippets.

@cuongnv23
Created September 19, 2017 01:39
Show Gist options
  • Select an option

  • Save cuongnv23/4bb771df80dd7c76dfd6fcfb131564c7 to your computer and use it in GitHub Desktop.

Select an option

Save cuongnv23/4bb771df80dd7c76dfd6fcfb131564c7 to your computer and use it in GitHub Desktop.
set nocompatible
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"call vundle#begin('~/some/path/here')
Plugin 'VundleVim/Vundle.vim'
" python mode
Plugin 'klen/python-mode'
"" PowerLine
Plugin 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'}
""" Solarized powerline
Plugin 'stephenmckinney/vim-solarized-powerline'
"" File browser
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
"" Code hinting for Python (Yes, Python only)
Plugin 'davidhalter/jedi-vim'
"" Color skin for vim
Plugin 'jnurmine/Zenburn'
"" Solarized color scheme for GVim
Plugin 'altercation/vim-colors-solarized'
"" Fucking awesome ctrlp
Plugin 'kien/ctrlp.vim'
"" Ansible
""Plugin 'chase/vim-ansible-yaml'
Plugin 'pearofducks/ansible-vim'
"" Quote complete
Plugin 'Raimondi/delimitMate'
"" Vim-jinja
Plugin 'mitsuhiko/vim-jinja'
"" whitespace
Plugin 'ntpeters/vim-better-whitespace'
"" dracular color
Plugin 'dracula/vim'
"" vim-tmux
"Plugin 'christoomey/vim-tmux-navigator'
"" terraform
Plugin 'hashivim/vim-terraform'
" Plugins must be added before the following line
call vundle#end()
filetype plugin indent on
au BufNewFile,BufRead *.py set tabstop=4 softtabstop=4 shiftwidth=4 textwidth=119 expandtab autoindent fileformat=unix
""" python-mode settings
augroup vimrc_autocmds
autocmd!
autocmd BufNewFile *.py 0put =\"# -*- coding: utf-8 -*-\<nl>\"|$
autocmd BufNewFile *.py 0put =\"#!/usr/bin/env python\<nl>\"|$
autocmd BufNewFile *.sh 0put =\"#!/usr/bin/env bash\<nl>\"|$
augroup END
""" python-mode
let g:pymode_rope = 1
" Documentation
let g:pymode_doc = 1
let g:pymode_doc_key = 'K'
"Linting
let g:pymode_lint = 1
let g:pymode_lint_checker = "pyflakes,pep8"
" Auto check on save
let g:pymode_lint_write = 1
" Support virtualenv
let g:pymode_virtualenv = 1
" Enable breakpoints plugin
let g:pymode_breakpoint = 1
let g:pymode_breakpoint_bind = '<leader>b'
" syntax highlighting
let g:pymode_syntax = 1
let g:pymode_syntax_all = 1
let g:pymode_syntax_indent_errors = g:pymode_syntax_all
let g:pymode_syntax_space_errors = g:pymode_syntax_all
" Don't autofold code
let g:pymode_folding = 0
"""
" Powerline setup
let g:airline_powerline_fonts = 1
let g:Powerline_symbols = 'fancy'
""" Nerdtree
" Activate NerdTree by F2
map <F2> :NERDTreeToggle<CR>
" Ignore files displayed
let NERDTreeIgnore = ['\.pyc', '__pycache__', '\.retry']
let g:nerdtree_tabs_open_on_console_startup=0
let g:solarized_termcolors=256
""" Terraform
let g:terraform_align=1
""" Jinja
au BufNewFile,BufRead *.j2 set ft=jinja
" Gvim
if has('gui_running')
set guifont=Menlo\ For\ Powerline\ 10
colorscheme solarized
set background=dark
endif
""" General settings
" always show end of line
set list
" custom end of line character
set listchars=eol:¬
set encoding=utf-8
set autoindent
set number
set expandtab
set backspace=indent,eol,start
set cursorline
set ruler
set showcmd
syntax on
" highlight all matched searches
set hlsearch
" incremental search when start typing
set incsearch
set showmatch
" search case insensitive
set ignorecase
set smartcase
set background=dark
filetype off
set guifont=Menlo\ For\ Powerline\ 10
set laststatus=2
set t_Co=256
set directory=/tmp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment