Skip to content

Instantly share code, notes, and snippets.

@josejaguirre
Created May 25, 2017 15:45
Show Gist options
  • Save josejaguirre/070246f39a001f66a4a7de80aa040e88 to your computer and use it in GitHub Desktop.
Save josejaguirre/070246f39a001f66a4a7de80aa040e88 to your computer and use it in GitHub Desktop.
Configuración customizable de vim
set t_Co=256
filetype plugin indent on
syntax enable
set splitbelow
set splitright
set showcmd
set showmatch
if !has("gui_running")
let g:solarized_termtrans=1
let g:solarized_termcolors=256
endif
set background=dark
let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
let g:solarized_termcolors=16
colorscheme solarized
let g:airline_theme="powerlineish"
let g:clang_user_options='|| exit 0'
imap <C-c> <CR><Esc>O
set laststatus=2
set number
set nocompatible " be iMproved, 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'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'bling/vim-airline'
" All of your Plugins must be added before the following line
call vundle#end() " required
" Brief help
" :PluginList - list configured plugins
" :PluginInstall(!) - install (update) plugins
" :PluginSearch(!) foo - search (or refresh cache first) for foo
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
let g:clang_complete_auto = 1
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
let g:used_javascript_libs = 'underscore,backbone,angularjs,requiredjs,jquery'
autocmd BufReadPre *.js let b:javascript_lib_use_jquery = 1
autocmd BufReadPre *.js let b:javascript_lib_use_underscore = 1
autocmd BufReadPre *.js let b:javascript_lib_use_backbone = 1
autocmd BufReadPre *.js let b:javascript_lib_use_angularjs = 1
let g:ycm_path_to_python_interpreter = '/usr/bin/python'
" Paquetes que son descargados e instalados en ~/.vim/
Bundle 'jelera/vim-javascript-syntax'
Bundle 'pangloss/vim-javascript'
Bundle 'nathanaelkane/vim-indent-guides'
Bundle 'Raimondi/delimitMate'
Bundle 'marijnh/tern_for_vim'
Bundle "Valloric/YouCompleteMe"
Bundle 'scrooloose/syntastic'
Bundle 'davidhalter/jedi-vim'
Bundle 'klen/python-mode'
Bundle 'scrooloose/nerdtree'
Bundle 'mklabs/vim-backbone'
let g:syntastic_check_on_open=1
let g:syntastic_python_checkers = ['pylint']
let g:ycm_add_preview_to_completeopt=0
let g:ycm_confirm_extra_conf=0
set completeopt-=preview
let g:tern_map_keys = 1
let g:tern_show_argument_hints = 'on_hold'
" Configuracion de python
filetype on " enables filetype detection
filetype plugin on " enables filetype specific plugins
let g:pymode_rope = 0
" Documentation
let g:pymode_doc = 1
let g:pymode_doc_key = 'K'
"
" Linting
let g:pymode_lint = 1
let g:pymode_lint_checker = "pylint, pep8"
" " Auto check on save
let g:pymode_lint_write = 1
"
" Soporte a virtualenv
let g:pymode_virtualenv = 1
"
" Habilitar el plugin breakpoints
let g:pymode_breakpoint = 1
let g:pymode_breakpoint_key = '<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
" Use <leader>l to toggle display of whitespace
nmap <leader>l :set list!<CR>
" automatically change window's cwd to file's dir
set autochdir
" I'm prefer spaces to tabs
set tabstop=4
set shiftwidth=4
set expandtab
" Configurar NERDTree para que se pueda visualizar con F2
map <F2> :NERDTreeToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment