Advertisement
elhackerlibre

vimrc

Sep 19th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. set ai "Permite la indentación
  2. syntax on "Resaltador de sintaxis
  3. set autoindent "autoindentación
  4. set nocompatible "Permite funciones que VIM no soporta
  5. set mouse=a "Activar el uso del ratón.
  6. set ruler "Indicador de fila y columna en la barra de estado
  7. set expandtab "Expand tabs into spaces
  8. set ts=4 "Establecer 4 espacio en un tabulador
  9. set shiftwidth=4 "Establecer 4 espacio la autoindentación
  10. set cursorline "Mostrar una línea visual bajo la línea actual del cursor
  11. set showmatch "mostrar la parte coincidente del par de [] {} y ()
  12. set nu "Mostrar los numeros
  13. set cindent "Indenta con la forma de C
  14. set runtimepath^=~/.vim/bundle/ctrlp.vim "Buscador de archivos
  15.  
  16. let python_highlight_all = 1 "habilitar todas las características de resaltado de sintaxis de Python
  17. let g:airline#extensions#tabline#enabled = 1
  18.  
  19. autocmd FileType python set omnifunc=pythoncomplete#Complete
  20. autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
  21. autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
  22.  
  23. nmap :setlocal spell spelllang=es_es<cr> "Corrector Ortografico
  24. nmap :setlocal spell spelllang=en_en<cr>
  25.  
  26. map <F2> :NERDTreeToggle<cr> " Buscador de Archivo NerdTree
  27. map <F3> :TlistToggle<cr>
  28. map <F4> : call CompileGcc()<CR> " Compilar y ejecutar en C
  29.  
  30. func! CompileGcc()
  31. exec "w"
  32. exec "!gcc % -o %<"
  33. endfunc
  34.  
  35. map <F5> :call CompileRunGcc()<CR>
  36. func! CompileRunGcc()
  37. exec "w"
  38. exec "!gcc % -o %<"
  39. exec "! ./%<"
  40. endfunc
  41.  
  42. map :w\|!python% "Ejecutar programas python
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement