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
28
.vimrc
28
.vimrc
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue