vimrc: Mac terminal improvements, dark mode example

This commit is contained in:
Andrea Rogers 2024-01-06 04:58:50 -06:00
commit 948ab4f2c3

28
.vimrc
View file

@ -202,6 +202,10 @@ set ruler
set number set number
"set autoindent "set autoindent
set cursorline set cursorline
"set background=dark
" For login terminals on Macs
set shell=bash\ -l
" Filetype auto-indent " Filetype auto-indent
if has("autocmd") if has("autocmd")
@ -209,23 +213,13 @@ if has("autocmd")
filetype plugin indent on filetype plugin indent on
endif endif
" Mac-specific stuffs function! Terminal()
if has('macunix') execute 'ter'
" Hacks for MacPorts Bash to actually work. endfunction
function! Terminal() function! VertTerminal()
execute 'ter bash --rcfile /etc/bashrc -i' execute 'vert ter'
endfunction endfunction
function! VertTerminal()
execute 'vert ter bash --rcfile /etc/bashrc -i'
endfunction
else
function! Terminal()
execute 'ter'
endfunction
function! VertTerminal()
execute 'vert ter'
endfunction
endif
" Super special mappings " Super special mappings
map <F1> :call Terminal()<cr> map <F1> :call Terminal()<cr>
map <S-F1> :call VertTerminal()<cr> map <S-F1> :call VertTerminal()<cr>