diff --git a/home/vimrc b/home/vimrc index eacfaf0..6aba49c 100644 --- a/home/vimrc +++ b/home/vimrc @@ -55,6 +55,7 @@ if has('syntax') syntax enable " required for folding as well set hlsearch " highlight search results endif +let g:python_highlight_builtin_funcs=1 if has('gui_running') set guioptions-=M " skip loading $VIMRUNTIME/menu.vim @@ -138,7 +139,7 @@ endf if has('autocmd') augroup tabs " 4 spaces as tabs for various languages au! - au FileType bash,sh,zsh,mk,awk,python,pyrex,lua,vim call TabFour() + au FileType bash,sh,zsh,mk,awk,python,pyrex,lua,vim,autohotkey call TabFour() au BufRead,BufNewFile *.json call TabFour() au BufRead,BufNewFile PKGBUILD call TabTwo() au FileType ruby call TabTwo() @@ -223,13 +224,14 @@ Inn :nohls " rebind annoying things " reflow text nn Q gq +vn Q gq " split lines (opposite of J) nn K ik$ vn K " follow tag nn " delete line -nn D dd +"nn D dd " this frees up x and X for use if you like set =[3;2~ @@ -237,6 +239,8 @@ Inn X " unfollow your leaders let leader="\\" +" no-op +nn : "ino " this doesn't workkkkkkkkk nn p "0p nn P "0P @@ -247,12 +251,23 @@ nn . @: "nn ? :exec getline(".") nn , :Tab /,\zs "nn x :system('chmod +x %') | e -" + +" messing around with colors +" a la https://github.com/xolox/vim-colorscheme-switcher/blob/master/autoload/xolox/colorscheme_switcher.vim +fu! HiDump() + redir => out + silent hi + redir END + let @a = out + put a +endf + nn s :call SyntaxAttr() nn 1 :colo property nn 2 :colo clearance nn 3 :colo Tomorrow-Night nn 4 :colo jellybeans +nn h :tabe:call HiDump() " misc {{{1