mirror of
https://github.com/akelge/vim
synced 2025-07-12 01:22:10 +00:00
Colors fixed
This commit is contained in:
36
gvimrc
36
gvimrc
@ -19,10 +19,9 @@ set mousefocus
|
||||
set errorbells
|
||||
set visualbell
|
||||
set showtabline=2
|
||||
set number
|
||||
set guicursor=a:block-blinkon0
|
||||
set showtabline=2
|
||||
set guitablabel=%!GuiTabLabel()
|
||||
set guitabtooltip=%!GuiTabToolTip()
|
||||
set background=dark
|
||||
set cpoptions=+$
|
||||
|
||||
@ -35,6 +34,26 @@ endif
|
||||
|
||||
colorscheme Tomorrow-Night-Eighties
|
||||
|
||||
" Start NERDTree and leave the cursor in it.
|
||||
autocmd VimEnter * NERDTree | wincmd p
|
||||
" Start NERDTree when Vim is started without file arguments.
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
|
||||
" If a file is specified, move the cursor to its window.
|
||||
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif
|
||||
" Start NERDTree when Vim starts with a directory argument.
|
||||
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists('s:std_in') |
|
||||
\ execute 'NERDTree' argv()[0] | wincmd p | enew | execute 'cd '.argv()[0] | endif
|
||||
" If another buffer tries to replace NERDTree, put it in the other window, and bring back NERDTree.
|
||||
autocmd BufEnter * if bufname('#') =~ 'NERD_tree_\d\+' && bufname('%') !~ 'NERD_tree_\d\+' && winnr('$') > 1 |
|
||||
\ let buf=bufnr() | buffer# | execute "normal! \<C-W>w" | execute 'buffer'.buf | endif
|
||||
" Open the existing NERDTree on each new tab.
|
||||
autocmd BufWinEnter * silent NERDTreeMirror
|
||||
" Exit Vim if NERDTree is the only window left.
|
||||
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() |
|
||||
\ quit | endif
|
||||
|
||||
|
||||
" Line/block move up/down
|
||||
if (has('mac') || has('macunix'))
|
||||
" set clipboard=unnamedplus
|
||||
@ -75,14 +94,11 @@ endif
|
||||
autocmd BufWritePost ~/.gvimrc so ~/.gvimrc
|
||||
autocmd BufWritePost ~/.vim/gvimrc so ~/.vim/gvimrc
|
||||
|
||||
let g:terminal_ansi_colors = ['#073642', '#dc322f', \
|
||||
'#859900', '#b58900', \
|
||||
'#268bd2', '#d33682', \
|
||||
'#2aa198', '#eee8d5', \
|
||||
'#002b36', '#cb4b16', \
|
||||
'#93a1a1', '#839496', \
|
||||
'#657b83', '#6c71c4', \
|
||||
'#586e75', '#fdf6e3']
|
||||
let g:terminal_ansi_colors = ['#073642', '#dc322f',
|
||||
\ '#859900', '#b58900', '#268bd2', '#d33682',
|
||||
\ '#2aa198', '#eee8d5', '#002b36', '#cb4b16',
|
||||
\ '#93a1a1', '#839496', '#657b83', '#6c71c4',
|
||||
\ '#586e75', '#fdf6e3']
|
||||
|
||||
" User customizations are held in file ~/.vim/gvimrc.local
|
||||
if filereadable($HOME."/.vim/gvimrc.local")
|
||||
|
Reference in New Issue
Block a user