mirror of
https://github.com/danbee/dotfiles-local
synced 2025-03-04 08:49:07 +00:00
Refactored vim config a bunch
This commit is contained in:
parent
da69682d68
commit
aa848b6ad5
@ -1,7 +1,8 @@
|
|||||||
set noshowmode
|
set noshowmode
|
||||||
|
|
||||||
if has("gui_running") || has("gui_vimr")
|
if has("gui_running") || has("gui_vimr")
|
||||||
|
let g:airline_solarized_bg = 'dark'
|
||||||
let g:airline_theme = 'solarized'
|
let g:airline_theme = 'solarized'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 0
|
||||||
|
|||||||
6
vim/vimrc.d/colorscheme.vim
Normal file
6
vim/vimrc.d/colorscheme.vim
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
set background=dark
|
||||||
|
colorscheme Tomorrow-Night
|
||||||
|
|
||||||
|
if has("gui_running") || has("gui_vimr")
|
||||||
|
colorscheme solarized8_dark_high
|
||||||
|
endif
|
||||||
8
vim/vimrc.d/fonts.vim
Normal file
8
vim/vimrc.d/fonts.vim
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
if has("gui_running") || has("gui_vimr")
|
||||||
|
" Set GUI font according to OS
|
||||||
|
if has("gui_macvim")
|
||||||
|
set guifont=Sauce\ Code\ Pro\ Nerd\ Font\ Complete\ Mono:h13
|
||||||
|
elseif has("gui_gtk2")
|
||||||
|
set guifont=DejaVu\ Sans\ Mono\ 15
|
||||||
|
endif
|
||||||
|
endif
|
||||||
7
vim/vimrc.d/gui.vim
Normal file
7
vim/vimrc.d/gui.vim
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
if has("gui_running") || has("gui_vimr")
|
||||||
|
" Remove scrollbars
|
||||||
|
set guioptions-=R
|
||||||
|
set guioptions-=r
|
||||||
|
set guioptions-=L
|
||||||
|
set guioptions-=l
|
||||||
|
endif
|
||||||
1
vim/vimrc.d/markdown.vim
Normal file
1
vim/vimrc.d/markdown.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
let g:markdown_fenced_languages = ['coffee', 'css', 'elixir', 'erb=eruby', 'javascript', 'js=javascript', 'json=javascript', 'ruby', 'sass', 'xml']
|
||||||
2
vim/vimrc.d/nerdcommenter.vim
Normal file
2
vim/vimrc.d/nerdcommenter.vim
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
" Tell NERDCommenter to put spaces in
|
||||||
|
let NERDSpaceDelims=1
|
||||||
1
vim/vimrc.d/nerdtree.vim
Normal file
1
vim/vimrc.d/nerdtree.vim
Normal file
@ -0,0 +1 @@
|
|||||||
|
map \ :NERDTreeToggle<CR>
|
||||||
@ -28,12 +28,13 @@ Plug 'scrooloose/nerdcommenter'
|
|||||||
Plug 'tpope/vim-haml'
|
Plug 'tpope/vim-haml'
|
||||||
Plug 'vim-ruby/vim-ruby'
|
Plug 'vim-ruby/vim-ruby'
|
||||||
Plug 'keith/swift.vim'
|
Plug 'keith/swift.vim'
|
||||||
|
Plug 'tpope/vim-markdown'
|
||||||
|
|
||||||
Plug 'junegunn/goyo.vim'
|
Plug 'junegunn/goyo.vim'
|
||||||
Plug 'reedes/vim-pencil'
|
Plug 'reedes/vim-pencil'
|
||||||
|
|
||||||
" Todo
|
" Todo
|
||||||
Plug 'davidoc/taskpaper.vim'
|
Plug 'tbabej/taskwiki'
|
||||||
|
|
||||||
" Colors
|
" Colors
|
||||||
Plug 'altercation/vim-colors-solarized'
|
Plug 'altercation/vim-colors-solarized'
|
||||||
|
|||||||
24
vimrc.local
24
vimrc.local
@ -2,26 +2,6 @@
|
|||||||
set background=dark
|
set background=dark
|
||||||
colorscheme Tomorrow-Night
|
colorscheme Tomorrow-Night
|
||||||
|
|
||||||
" Color scheme
|
|
||||||
if has("gui_running") || has("gui_vimr")
|
|
||||||
" Set GUI font according to OS
|
|
||||||
if has("gui_macvim")
|
|
||||||
set guifont=Sauce\ Code\ Pro\ Nerd\ Font\ Complete\ Mono:h13
|
|
||||||
elseif has("gui_gtk2")
|
|
||||||
set guifont=DejaVu\ Sans\ Mono\ 15
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Color scheme
|
|
||||||
set background=dark
|
|
||||||
colorscheme solarized8_dark_high
|
|
||||||
|
|
||||||
" Remove scrollbars
|
|
||||||
set guioptions-=R
|
|
||||||
set guioptions-=r
|
|
||||||
set guioptions-=L
|
|
||||||
set guioptions-=l
|
|
||||||
endif
|
|
||||||
|
|
||||||
" Display extra whitespace
|
" Display extra whitespace
|
||||||
set list listchars=tab:»·,trail:·
|
set list listchars=tab:»·,trail:·
|
||||||
|
|
||||||
@ -39,9 +19,5 @@ if $TERM == "xterm-256color" || $TERM == "screen-256color" || $COLORTERM == "gno
|
|||||||
set t_Co=256
|
set t_Co=256
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Tell NERDCommenter to put spaces in
|
|
||||||
let NERDSpaceDelims=1
|
|
||||||
|
|
||||||
|
|
||||||
" Extend plugins
|
" Extend plugins
|
||||||
source $HOME/.vim/vimrc.d.vim
|
source $HOME/.vim/vimrc.d.vim
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user