Herramientas de usuario

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
nexrc [2023/03/21 16:10] – creado peronnexrc [2026/04/21 16:07] (actual) – editor externo 127.0.0.1
Línea 1: Línea 1:
 <code bash> <code bash>
 set autoindent set autoindent
-" el editor de comandos se abre con (Ctrl+V, Ctrl+R) +set ignorecase 
-set cedit=^R +set nolist 
-" expresiones regulares extendidas +set magic 
-set extended +set mesg 
-" completa ficheros con tab (Ctr+V, Ctrl+V, Ctrl+V <tab>) +"set number
-set filec=^V  +
-set noflash +
-búsquedas insensibles a mayúsculas a no ser que se realicen en mayúsculas +
-set iclower +
-set matchtime=1 +
-" no traba en solo lectura +
-set nolock +
-set path=.+
 set ruler set ruler
-set searchincr 
 set showmatch set showmatch
-set tags=./TAGS+set showmode
 set tildeop set tildeop
 set windowname set windowname
-" Divide a través del final del fichero cuando busca+set leftright 
 +set extended 
 +set iclower 
 +set searchincr 
 +set verbose
 set wrapscan set wrapscan
-" Opciones de personalización para que parezca VIM +set wraplen=80
-set shell=/bin/sh +
-set shiftwidth=4+
 set tabstop=4 set tabstop=4
-set wrapmargin=4+set shiftwidth=4 
 +set para=BlBdPpIt 
 +set sections=SeAhBhChDh 
 +set cedit=\^[ 
 +set filec=\  
 + 
 +map ZZ :wq!^M 
 +map Y y$ 
 +map gg 1G 
 +map G G 
 +map R :ex^M 
 + 
 +""File operations 
 +"open with fzf 
 +"map ␖ f :␒:!env FZF_DEFAULT_COMMAND='git ls-files' fzf >> % 
 +":edit 
 +"GIEdit ␛ 
 +"␗:bg 
 + 
 +" search and replace 
 +map \s :%s/ *$//g 
 + 
 +""Formatting 
 + 
 +" indent lines 
 +map gi :%!indent -i4 
 + 
 +" reformat, wrap text at 80ch 
 +map gf :%!fmt -w 80 % 
 + 
 +"paragraph wrapping 
 +map Q {j!}par P+. Q+__* g1 w80 
 + 
 +" reformat paragraph 
 +map gp :?^$?,//!fmt -w 80 
 + 
 +" sort lines alphabetically 
 +map gs :%!sort -u 
 + 
 +" substitute patterns up to current position 
 +map gr :^,.s///g 
 + 
 +" remove leading tabs 
 +map gl :%s/^[ \t]*// 
 + 
 +" double space, whole file 
 +map gd :%!sed G 
 + 
 +" expand TABS out in buffer 
 +map ge 'a!'bexpand 
 + 
 +"comment lines in buffer 
 +map gc :'a,'bs/^/#/ 
 + 
 +" uncomment lines in buffer 
 +map gu :'a,'bs/# *// 
 + 
 +" remove trailing spaces 
 +map gt :%s/ *$// 
 + 
 +" XA_CLIPBOARD 
 +map rc +:r!xclip -o -sel clip^M 
 + 
 +" process file with hunspell 
 +map gh :!hunspell -d es_AR % 
 + 
 + 
 +""Manipulating Buffers 
 + 
 +" display vi buffers 
 +map K :display buffers 
 + 
 +" cut current line to buffer '1' 
 +map C  "1Y$dd 
 + 
 +" paste '1' after current position 
 +map V  "1PASTE 
 + 
 +" mark current position as begin of new buffer 
 +map # ma 
 + 
 +" mark current position as end of new buffer 
 +map * mb 
 + 
 +" append new buffer to next line 
 +map bv :'a,'b co . 
 + 
 +" delete marked buffer 
 +map be :'a,'b del . 
 + 
 +" move marked buffer to 'n' line 
 +map bm :'a,'b mo . 
 + 
 +" convert marked buffer to UPPERCASE 
 +map bc :'a,'bs/.*/\U&/ 
 + 
 +" convert marked buffer to LOWERCASE 
 +map bl :'a,'bs/.*/\L&/ 
 + 
 +" trim white space from marked buffer 
 +map bt :'a,'bs/[ ^I][ ^I]*$//g 
 + 
 +" write marked buffer to file 
 +map bw :'a;'bw
 </code> </code>

Este sitio web utiliza cookies para guardar datos esenciales de su actividad, como su autenticación. Al entrar acepta el uso de cookies.

Más información