diff options
Diffstat (limited to 'exrc')
-rw-r--r-- | exrc | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -6,41 +6,44 @@ set magic set mesg set number set ruler -set shiftwidth=4 set showmatch set showmode -set tabstop=4 set tildeop set windowname -set wraplen=80 set leftright set extended set iclower set searchincr set verbose set redraw +set wrapscan +set wraplen=80 +set tabstop=4 +set shiftwidth=4 set para=BlBdPpIt set sections=SeAhBhChDh set fileencoding=UTF-8 +set dir=/tmp/run/1000 +set cedit=\^[ +set filec=\ -map ZZ m -map ) 0 -map 0 ^ -map - $ -map W b -map m ' -map M ` +map ZZ :wq!^M map Y y$ map gg 1G map G GA -map Q :wq! -map R :ex +map R :ex^M + +""File operations +"open with fzf +map f ::!env FZF_DEFAULT_COMMAND='git ls-files' fzf >> %
:edit
GIEdit
:bg
""Formatting " indent lines map gi :%!indent -i4 " reformat, wrap text at 72ch 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 @@ -59,6 +62,10 @@ map gc :'a,'bs/^/#/ 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 en_US % ""Manipulating Buffers " display vi buffers |