Last active
January 17, 2018 15:46
-
-
Save PabTorre/fc0410819ccc19b21f424309b4c260c6 to your computer and use it in GitHub Desktop.
vim config
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
syntax on | |
set nocompatible | |
set smartindent | |
set shiftwidth=4 | |
set backspace=indent,eol,start | |
set ruler | |
set number | |
set showcmd | |
set incsearch | |
set hlsearch | |
set mouse=a | |
filetype off | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
"-------------- PLUGINS STARTS ----------------- | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'jistr/vim-nerdtree-tabs' | |
Plugin 'xolox/vim-misc' | |
Plugin 'xolox/vim-easytags' | |
Plugin 'majutsushi/tagbar' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'vim-scripts/a.vim' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'Raimondi/delimitMate' | |
Plugin 'christoomey/vim-tmux-navigator' | |
Plugin 'jez/vim-c0' | |
Plugin 'jez/vim-ispc' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'flazz/vim-colorschemes' | |
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
"---- PYTHON Plugins --- | |
" indents | |
Plugin 'vim-scripts/indentpython.vim' | |
" syntax highlights | |
Plugin 'vim-syntastic/syntastic' | |
" pep8 checks | |
Plugin 'nvie/vim-flake8' | |
call vundle#end() | |
"--------------SPLIT--------------------------- | |
set splitbelow | |
set splitright | |
"---------------UTF8 | |
set encoding=utf-8 | |
"--------------Use system clipboard | |
set clipboard=unnamed | |
"---------------SPLIT NAVIGATION -------------- | |
noremap <C-j> <C-w><C-j> | |
noremap <C-k> <C-w><C-k> | |
noremap <C-l> <C-w><C-l> | |
noremap <C-h> <C-w><C-h> | |
noremap <C-z> u | |
noremap <C-y> <C-r> | |
"-------------- PLUGINS END -------------------- | |
filetype plugin indent on | |
"----- GENERAL SETTINGS------- | |
set laststatus=2 | |
let g:airline_powerline_fonts = 1 | |
let g:airline_detect_paste=1 | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_theme='solarized' | |
set background=dark | |
let g:solarized_termcolors=256 | |
colorscheme ron | |
"---------NERD-TREE SETTINGS---------- | |
nmap <silent> <leader>t :NERDTreeTabsToggle<CR> | |
let g:nerdtree_tabs_open_on_console_startup = 1 | |
"-------- SYNTASTIC SETTINGS--------- | |
let g:syntastic_error_symbol = '✘' | |
let g:syntastic_warning_symbol = "▲" | |
augroup mySyntastic | |
au! | |
au FileType tex let b:syntastic_mode = "passive" | |
augroup END | |
"-------- TAGS SETTINGS -------------------------------- | |
let g:easytags_events = ['BufReadPost', 'BufWritePost'] | |
let g:easytags_async = 1 | |
let g:easytags_dynamic_files = 2 | |
let g:easytags_resolve_links = 1 | |
let g:easytags_suppress_ctags_warning = 1 | |
let g:tagbar_autoclose=2 | |
nmap <silent> <leader>b :TagbarToggle<CR> | |
"autocmd BufEnter * nested :call tagbar#autoopen(0) | |
"---------GIT SETTINGS-------------- | |
hi clear SignColumn | |
let g:airline#extensions#hunks#non_zero_only = 1 | |
"----------DELIMITEMATE SETTINGS----------------- | |
let delimitMate_expand_cr = 1 | |
augroup mydelimitMate | |
au! | |
au FileType markdown let b:delimitMate_nesting_quotes = ["`"] | |
au FileType tex let b:delimitMate_quotes = "" | |
au FileType tex let b:delimitMate_matchpairs = "(:),[:],{:},`:'" | |
au FileType python let b:delimitMate_nesting_quotes = ['"', "'"] | |
augroup END | |
"--------------------PYTHON PEP8 ---------------- | |
au BufNewFile,BufRead *.py | |
\ set tabstop=4 | |
\ set softtabstop=4 | |
\ set shiftwidth=4 | |
\ set textwidth=79 | |
\ set expandtab | |
\ set autoindent | |
\ set fileformat=unix | |
"----------------------PYTHON AUTOCOMPLETE ------ | |
Bundle 'Valloric/YouCompleteMe' | |
let g:ycm_autoclose_preview_window_after_completion=1 | |
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR> | |
"------------------- PYTHON VIRTUALENV ----------- | |
py << EOF | |
import os | |
import sys | |
if 'VIRTUAL_ENV' in os.environ: | |
project_base_dir = os.environ['VIRTUAL_ENV'] | |
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py') | |
execfile(activate_this, dict(__file__=activate_this)) | |
EOF | |
let python_highlight_all=1 | |
syntax on | |
" hide .pyc files | |
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment