From 1b9f2802039a7fb72e6cbdb7a1e5271a94f8ac69 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Thu, 10 Aug 2017 11:48:33 -0400 Subject: [PATCH] Stop cursor jump that can happen when removing trailing spaces during a vim save --- vim/spell/en.utf-8.add | 22 ++++++++++++++++++++++ vim/spell/en.utf-8.add.spl | Bin 1314 -> 1540 bytes vimrc | 14 ++++++++++---- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/vim/spell/en.utf-8.add b/vim/spell/en.utf-8.add index 5676400..733ed79 100644 --- a/vim/spell/en.utf-8.add +++ b/vim/spell/en.utf-8.add @@ -105,3 +105,25 @@ ethernet Cancelled indie etc +texel +Subpixel +texels +subpixel +blitting +shaders +rasterizer +subsampled +downsample +performant +devs +LUT +realtime +tradeoff +params +param +toolset +bootsector +bootable +virtualized +VM +multithreading diff --git a/vim/spell/en.utf-8.add.spl b/vim/spell/en.utf-8.add.spl index 059111d451412496a291ff42ee79767b068d63cd..c9558aa395de4b3db6cb83b1a2f2871da3f58e6a 100644 GIT binary patch literal 1540 zcmYLJ&5GPc5biE%oj1rWVCEuX7#4D00*)_E2pe!>VvG+hsYmKvNiFMVXU8WW3^~l* zPvB?B#mC^YU%?Q+fgd3GzUo=bGTqzNUwu{eRjHpo{&gOG*ZuIHG1$Xv^(MF+nw}_i<2|u1ZqEyPn(*&N*)?jt8(sF&~x;QU(IOWp;Ut5tZTt$(*ve$$? zb7E#OrCpVPj=~kYH^$ZhUt^fT_9*!rJ?{OGK;)9UMCq}meP=$PRep5Y(R8?Ui8upz$FzS5 zs@(aYeL1#06x!ie!EM2g>cxm4Ra&)O$5i{Ov6%(vpEo(yqV|zu#MF@EszQ~pXg-@g zC;{7!8P*Rqmh*ndY77GfdlBp{fHnSbdS4Q&u^E3NA=&wluj#^Jq z(yv&~JoK_(y0{{&11l@S&Bh5sZwHvD&>j~IG$}+&+!nY&`Ru~yo}Fe13cDZ=`#+xs z)Qcf$4FmS#_8aHhE>5)F!VTaAm~q&NiP-u?^@+V15GTTNMep~Vl>=gj#PEx4zmvA(b*;*dE%!Ff6PyrQ-7_we2ChEZyw>_^s%{f_`o z++Q#gicNtNTWW`TJIbj&eX9eHnMR;^l3=`7wP9Hg(!%=B44@AB)`9Zmww;jj-Doyi zG8N?)WglR+WtwnJ@dN&sS{5ATQ#qko`lU#>E-V>E9n!`1ZsmC)<9vSih}FE&<~<|fyjH6IMrb; z19(=&Q@ZToD|Swws!c$@t`UwztZlKj(TCG^ z&>#xRh~I%|Qt~HI8ftj6d$PPAGw;25JM;0;w+Fjtr|-H}8T0C26ve0O-So(>Dh$?%eKhP`LZFYQj^{ljfl8@s?gy$mJN zDXVk)s`Mv=>h6WUApc2uV;G)PuHy#$+za zFjXF&4jnv@=ogbkTgN$2nGU`554)G(8hjSseR0!+sW55ocQ6o5w9uQWr5fQGO+5wP NiVILtzStripTrailingWhitespaces() + let l = line(".") + let c = col(".") + %s/\s\+$//e + call cursor(l, c) + endfun + autocmd BufWritePre * :call StripTrailingWhitespaces() + "//////////////////////////////////////////////////////////////// " FILE TEMPLATES "////////////////////////////////////////////////////////////////