enforce 256 colours (kinda tired of default and elflord themes everywhere on old machines) + fix indentation and some other tweaks
This commit is contained in:
parent
1ac60219ba
commit
cc00f4a783
1 changed files with 38 additions and 33 deletions
27
vimrc
27
vimrc
|
@ -26,6 +26,11 @@ set foldmethod=marker
|
|||
" disable bell
|
||||
set noerrorbells visualbell t_vb=
|
||||
|
||||
" enforce 256 colours for ssh connections and VTE
|
||||
if $TERM == 'xterm' || exists("$SSH_CLIENT")
|
||||
let &t_Co=256
|
||||
endif
|
||||
|
||||
" set indentation options for specific file types
|
||||
autocmd FileType ruby setlocal sts=2 sw=2 expandtab
|
||||
autocmd FileType eruby setlocal sts=2 sw=2 expandtab
|
||||
|
@ -60,6 +65,7 @@ if v:version >= 703
|
|||
" from github.com
|
||||
Plugin 'bling/vim-airline' "stylish info display
|
||||
Plugin 'bling/vim-bufferline' "stylish buffer display
|
||||
Plugin 'bhiestand/vcscommand' "shortcuts for vcs
|
||||
Plugin 'jeetsukumaran/vim-buffergator' "buffer management
|
||||
Plugin 'kien/ctrlp.vim' "some quick file accessiong goodness
|
||||
Plugin 'mbbill/undotree' "undo buffer manager
|
||||
|
@ -71,9 +77,9 @@ if v:version >= 703
|
|||
Plugin 'tpope/vim-fugitive' "git awesomeness
|
||||
Plugin 'tpope/vim-surround' "quotes replacement made easy
|
||||
Plugin 'tpope/vim-tbone' "tmux support
|
||||
|
||||
" from vim.sf.net
|
||||
Plugin 'directionalWindowResizer' "resize windows with simple hotkeys
|
||||
Plugin 'vcscommand.vim' "shortcuts for vcs
|
||||
|
||||
" colorscheme ...
|
||||
Plugin 'vdrandom/forked-solarized.vim' "solarized
|
||||
|
@ -87,9 +93,6 @@ if v:version >= 703
|
|||
silent! call vundle#end()
|
||||
|
||||
" airline options
|
||||
if &t_Co > 88 || has("gui_running")
|
||||
let g:airline_powerline_fonts = 1
|
||||
endif
|
||||
let g:airline_symbols = {}
|
||||
let g:airline_symbols.whitespace = '!'
|
||||
|
||||
|
@ -106,14 +109,13 @@ if v:version >= 703
|
|||
|
||||
" buffergator options
|
||||
map <C-W>, :BuffergatorToggle<cr>
|
||||
endif
|
||||
endif
|
||||
|
||||
" set color scheme depending on the terminal capabilities
|
||||
if &t_Co > 88 || has("gui_running")
|
||||
" check before setting
|
||||
if &t_Co > 88
|
||||
let g:airline_powerline_fonts = 1
|
||||
colorscheme solarized
|
||||
else
|
||||
colorscheme elflord
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
" gvim stuff
|
||||
|
@ -123,10 +125,13 @@ if has("gui_running")
|
|||
let NERDTreeDirArrows=1
|
||||
set guioptions=aegimLl
|
||||
set mouse=a
|
||||
set guifont=Terminus\ 11
|
||||
set guifont=Monofur\ 11
|
||||
set novb
|
||||
map <S-Insert> <MiddleMouse>
|
||||
map! <S-Insert> <MiddleMouse>
|
||||
colorscheme jellybeans
|
||||
elseif &t_Co < 88
|
||||
colorscheme elflord
|
||||
endif
|
||||
|
||||
syntax on
|
||||
|
|
Loading…
Reference in a new issue