Last active
September 25, 2021 16:26
-
-
Save javieroot/39ee892b3b69492d20284a95c86e0923 to your computer and use it in GitHub Desktop.
Mismo .vimrc pero con menos opciones
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
" Resaltar la línea actual | |
set cursorline | |
hi CursorLine term=bold cterm=bold guibg=Grey40 | |
"highlight CursorLine guibg=#303000 ctermbg=234 | |
highlight CursorLine ctermbg=0 guibg=lightgrey | |
hi cursorlinenr ctermfg=red | |
" Poner línea para no pasar los 80 caracteres | |
" set colorcolumn=81 | |
highlight ColorColumn ctermbg=0 guibg=lightgrey | |
" Hacer línea más gruesa | |
" let &colorcolumn=join(range(81,82),",") | |
" Agregar números de línea | |
set number | |
" Para cambiar espacios por tabulaciones: | |
set expandtab | |
set tabstop=4 | |
" También para cambiar el número de espacios que se crean automáticamente | |
" a la hora de hacer una función, un bucle o una estructura selectiva | |
set shiftwidth=4 | |
" Guardar replegado de código | |
au BufWinLeave ?* mkview | |
au BufWinEnter ?* silent loadview | |
" Deje que los cambios de configuración de vimrc surtan efecto de inmediato | |
autocmd BufWritePost $MYVIMRC source $MYVIMRC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment