mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
modificación de basic.vim
This commit is contained in:
parent
690a8e40ce
commit
096e24660b
@ -4,19 +4,19 @@
|
|||||||
" facundolaffont@gmail.com
|
" facundolaffont@gmail.com
|
||||||
"
|
"
|
||||||
" Secciones:
|
" Secciones:
|
||||||
" -> General
|
" -> general
|
||||||
" -> VIM user interface
|
" -> interfaz de usuario de Vim
|
||||||
" -> Colors and Fonts
|
" -> colores y fuentes tipográficas
|
||||||
" -> Files and backups
|
" -> archivos, backups y deshacer
|
||||||
" -> Text, tab and indent related
|
" -> texto, tabulación e indentación
|
||||||
" -> Visual mode related
|
" -> relacionado con el modo visual
|
||||||
" -> Moving around, tabs and buffers
|
" -> sobre movimiento, pestañas, ventanas y buffers
|
||||||
" -> Status line
|
" -> línea de estado
|
||||||
" -> Editing mappings
|
" -> mapeos para edición
|
||||||
" -> vimgrep searching and cope displaying
|
" -> vimgrep searching and cope displaying <¡>falta traducir y modificar sección<!>
|
||||||
" -> Spell checking
|
" -> chequeo de gramática
|
||||||
" -> Misc
|
" -> misceláneo
|
||||||
" -> Helper functions
|
" -> sección de definición de funciones
|
||||||
"
|
"
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
@ -42,7 +42,10 @@ let g:mapleader = ","
|
|||||||
" guardado rápido
|
" guardado rápido
|
||||||
nmap <leader>w :w!<cr>
|
nmap <leader>w :w!<cr>
|
||||||
|
|
||||||
" <?>
|
" volver al modo normal casi sin esfuerzo ;)
|
||||||
|
ino ñjaf <esc>
|
||||||
|
|
||||||
|
" <¿?>
|
||||||
" :W sudo saves the file (useful for handling the permission-denied error)
|
" :W sudo saves the file (useful for handling the permission-denied error)
|
||||||
command W w !sudo tee % > /dev/null
|
command W w !sudo tee % > /dev/null
|
||||||
|
|
||||||
@ -96,7 +99,7 @@ set magic
|
|||||||
" muestra el paréntesis opuesto cuando el cursor está sobre uno
|
" muestra el paréntesis opuesto cuando el cursor está sobre uno
|
||||||
set showmatch
|
set showmatch
|
||||||
|
|
||||||
" cuántas decenas de segundos tarda en parpadear el cursor cuando se indica el paréntesis opuesto
|
" cuántas décimas de segundos tarda en parpadear el cursor cuando se indica el paréntesis opuesto
|
||||||
set mat=2
|
set mat=2
|
||||||
|
|
||||||
" quita el sonido y el flash en los errores
|
" quita el sonido y el flash en los errores
|
||||||
@ -106,7 +109,7 @@ set t_vb=
|
|||||||
set tm=500
|
set tm=500
|
||||||
|
|
||||||
" agrega un poco de margen a la izquierda
|
" agrega un poco de margen a la izquierda
|
||||||
set foldcolumn=1
|
set foldcolumn=3
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@ -134,7 +137,7 @@ set ffs=unix,mac,dos
|
|||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => archivos, back-ups y deshacer
|
" => archivos, backups y deshacer
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
" Turn backup off, since most stuff is in SVN, git et.c anyway...
|
" Turn backup off, since most stuff is in SVN, git et.c anyway...
|
||||||
@ -208,7 +211,7 @@ map <leader>tn :tabnew<cr>
|
|||||||
map <leader>to :tabonly<cr>
|
map <leader>to :tabonly<cr>
|
||||||
map <leader>tc :tabclose<cr>
|
map <leader>tc :tabclose<cr>
|
||||||
map <leader>tm :tabmove
|
map <leader>tm :tabmove
|
||||||
map <leader>t<leader> :tabnext<cr>
|
map <leader>t<leader> :tabnext
|
||||||
|
|
||||||
" 'tl' salta entre la pestaña actual y la última a la que se accedió
|
" 'tl' salta entre la pestaña actual y la última a la que se accedió
|
||||||
let g:lasttab = 1
|
let g:lasttab = 1
|
||||||
@ -250,7 +253,23 @@ set statusline=\ %{HasPaste()}%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\
|
|||||||
" remapea '0' para que posicione el cursor en el primer carácter no blanco
|
" remapea '0' para que posicione el cursor en el primer carácter no blanco
|
||||||
map 0 ^
|
map 0 ^
|
||||||
|
|
||||||
" <¿>no funciona correctamente<?>
|
" colocación de espacios sin tener que entrar en modo INSERT
|
||||||
|
nn <space>k<space> O<esc>j
|
||||||
|
nn <space>kk O<esc>
|
||||||
|
nn <space><space>k O<esc>k
|
||||||
|
nn <space>kj O<esc>jo<esc>k
|
||||||
|
nn <space>j<space> o<esc>k
|
||||||
|
nn <space>jj o<esc>
|
||||||
|
nn <space><space>j o<esc>j
|
||||||
|
nn <space>h<space> i<space><esc>l
|
||||||
|
nn <space>hh i<space><esc>
|
||||||
|
nn <space><space>h i<space><esc>h
|
||||||
|
nn <space>hl i<space><esc>la<space><esc>h
|
||||||
|
nn <space>l<space> a<space><esc>h
|
||||||
|
nn <space>ll a<space><esc>
|
||||||
|
nn <space><space>l a<space><esc>l
|
||||||
|
|
||||||
|
" <¡>no funciona correctamente<!>
|
||||||
" mueve una línea de texto hacia arriba o hacia abajo
|
" mueve una línea de texto hacia arriba o hacia abajo
|
||||||
nmap <D-j> mz:m+<cr>`z
|
nmap <D-j> mz:m+<cr>`z
|
||||||
nmap <D-k> mz:m-2<cr>`z
|
nmap <D-k> mz:m-2<cr>`z
|
||||||
|
Loading…
Reference in New Issue
Block a user