diff --git a/.vim/bundle/vim-expand-region b/.vim/bundle/vim-expand-region new file mode 160000 index 0000000..9665135 --- /dev/null +++ b/.vim/bundle/vim-expand-region @@ -0,0 +1 @@ +Subproject commit 966513543de0ddc2d673b5528a056269e7917276 diff --git a/.vim/ftplugin/go.vim b/.vim/ftplugin/go.vim new file mode 100644 index 0000000..e69de29 diff --git a/home/.vimrc b/home/.vimrc index 0b2c49c..2593171 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -55,3 +55,13 @@ let g:ctrlp_custom_ignore = { nmap sc :Scratch nmap cc :Sscratch " }} + +let g:netrw_sort_sequence='[\/]$,\.[a-np-z]$,main.go$,[^main]\.go$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$' + + +" now set it up to change the status line based on mode +au InsertEnter * hi StatusLine term=reverse ctermbg=5 gui=undercurl guisp=Magenta +au InsertLeave * hi StatusLine term=reverse ctermfg=0 ctermbg=2 gui=bold,reverse + +vmap v (expand_region_expand) +vmap (expand_region_shrink)