"filetype plugin indent on "set backspace=indent,eol,start "let g:go_fmt_command = "goimports" "let g:go_auto_type_info = 1 nnoremap :NERDTreeToggle let g:NERDTreeWinSize=20 set undofile " Maintain undo history between sessions set undodir=~/.vim/undodir command T execute "vertical term" set tabstop=2 set softtabstop=0 noexpandtab set shiftwidth=2 set foldmethod=indent set foldlevelstart=99 nnoremap za nnoremap zA autocmd FileType tex,md,html setlocal spell spelllang=en nnoremap U vmap v (expand_region_expand) vmap (expand_region_shrink) filetype on syntax on set hlsearch " used to dark background, use cyan instead of blue for comments :highlight darkComment ctermfg=6 :highlight cComment ctermfg=6 :highlight texComment ctermfg=6 :highlight shComment ctermfg=6 :highlight cshComment ctermfg=6 :highlight makeComment ctermfg=2 :highlight gnuplotComment ctermfg=6 "//#:imap ` :highlight awkComment ctermfg=2 au BufRead,BufNewFile *.hac set filetype=hackt au BufRead,BufNewFile *.actmx set filetype=hackt au BufRead,BufNewFile *.act set filetype=hackt au! Syntax hackt source ~/.vim/syntax/hackt.vim imap gj imap gk nmap gj nmap gk command C execute "set splitbelow | 20new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile | r ! hseenc # -c" command CU execute "set splitbelow | 20new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile | r ! hseenc # -cu" command CD execute "set splitbelow | 20new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile | r ! hseenc # -cd" command S execute "set splitbelow | 20new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile | r ! hseenc # -s" command SU execute "set splitbelow | 20new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile | r ! hseenc # -su" command SD execute "set splitbelow | 20new | setlocal buftype=nofile | setlocal bufhidden=hide | setlocal noswapfile | r ! hseenc # -sd" command HSE execute "exe \"ConqueTermVSplit hsesim \" . expand(\"%\")"