diff --git a/home/vimrc b/home/vimrc index 36c442b..00c0e52 100644 --- a/home/vimrc +++ b/home/vimrc @@ -313,30 +313,33 @@ nn " execute vim code in visual selection vmap "xy:@x +" open a shell (override suspend behavior that just breaks everything) +nn :sh + " this frees up x and X for use if you like exec "set =\[3;2~" Inn X -" unfollow your leaders let leader="\\" -" no-op -nn : "ino " this doesn't workkkkkkkkk -nm i i?r nm a a?r -nn p "0p -nn P "0P -nn e :e **/* -nn b :ls:b -nn d :cd %:p:h:pwd -nn . @: -"nn ? :exec getline(".") +nm i i?r nn , :Tab /,\zs -"nn x :system('chmod +x %') | e - -" via bit101 -nn f :E +nn . @: +nn : +nn :call StripTrailingWhitespace() +"nn ? :exec getline(".") nn F :E . +nn P "0P +nn b :ls:b +nn e :e **/* +nn f :E +nn p "0p +"nn x :system('chmod +x %') | e +nn d :cd %:p:h:pwd + +vn & :call GlobalReplace() + " alias :W to :w, via https://stackoverflow.com/a/3879737 cnoreabbrev W ((getcmdtype() is# ':' && getcmdline() is# 'W')?('w'):('W'))