vimrc: Mac terminal improvements, dark mode example
This commit is contained in:
parent
3ea67602fb
commit
948ab4f2c3
1 changed files with 11 additions and 17 deletions
24
.vimrc
24
.vimrc
|
|
@ -202,6 +202,10 @@ set ruler
|
|||
set number
|
||||
"set autoindent
|
||||
set cursorline
|
||||
"set background=dark
|
||||
|
||||
" For login terminals on Macs
|
||||
set shell=bash\ -l
|
||||
|
||||
" Filetype auto-indent
|
||||
if has("autocmd")
|
||||
|
|
@ -209,23 +213,13 @@ if has("autocmd")
|
|||
filetype plugin indent on
|
||||
endif
|
||||
|
||||
" Mac-specific stuffs
|
||||
if has('macunix')
|
||||
" Hacks for MacPorts Bash to actually work.
|
||||
function! Terminal()
|
||||
execute 'ter bash --rcfile /etc/bashrc -i'
|
||||
endfunction
|
||||
function! VertTerminal()
|
||||
execute 'vert ter bash --rcfile /etc/bashrc -i'
|
||||
endfunction
|
||||
else
|
||||
function! Terminal()
|
||||
function! Terminal()
|
||||
execute 'ter'
|
||||
endfunction
|
||||
function! VertTerminal()
|
||||
endfunction
|
||||
function! VertTerminal()
|
||||
execute 'vert ter'
|
||||
endfunction
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Super special mappings
|
||||
map <F1> :call Terminal()<cr>
|
||||
map <S-F1> :call VertTerminal()<cr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue