Explorar el Código

Remove indentLine, create colorscheme commands

Unfortunately, the indent line plugin causes wide (many-column) files,
particularly CSVs to be really, really slow. It is possible to use `let
g:indentLine_faster = 1`, but unfortunately, this results in
syntax-breaking in some files e.g. vim and js files.
Weiyi Lou hace 10 años
padre
commit
7906d3f9c7
Se han modificado 2 ficheros con 13 adiciones y 18 borrados
  1. 1 1
      vim/plugins.vim
  2. 12 17
      vim/settings/colorscheme-statusline.vim

+ 1 - 1
vim/plugins.vim

@@ -30,7 +30,6 @@ Plug 'vim-scripts/visualrepeat'
 " Visual {{{
 Plug 'Sclarki/airline-surarken'
 Plug 'Sclarki/neonwave.vim'
-Plug 'Yggdroot/indentLine'
 Plug 'altercation/vim-colors-solarized'
 Plug 'bling/vim-airline'
 Plug 'junegunn/goyo.vim'
@@ -83,6 +82,7 @@ Plug 'vim-scripts/yaml.vim'
 "Plug 'scrooloose/nerdtree' - moved away from drawer-style browser to netrw.
 "Plug 'terryma/vim-expand-region' - cool, but often slower than text objects.
 "Plug 'kshenoy/vim-signature' - nice, but mostly unused.
+"Plug 'Yggdroot/indentLine' - performance issues in larger files.
 "
 "Plug 'MarcWeber/vim-addon-mw-utils' -\
 "Plug 'ervandew/supertab' ------------|

+ 12 - 17
vim/settings/colorscheme-statusline.vim

@@ -19,24 +19,18 @@ set laststatus=2 " always show the status line.
 set noshowmode   " hide modes e.g. --INSERT-- with themed status lines.
 set showcmd      " display partial commands on the last line
 
-function! Dark()
-  set background=dark
-  colorscheme solarized
-  call SetTheme('powerlineish')
-  highlight SignColumn ctermbg=235
-endfunction
+command! Dark set background=dark
+      \| colorscheme solarized
+      \| call SetTheme('powerlineish')
+      \| highlight SignColumn ctermbg=235
 
-function! Light()
-  set background=light
-  colorscheme solarized
-  call SetTheme('powerlineish')
-endfunction
+command! Light set background=light
+      \| colorscheme solarized
+      \| call SetTheme('powerlineish')
 
-function! Neon()
-  set background=light
-  colorscheme neonwave
-  call SetTheme('surarken')
-endfunction
+command! Neon set background=light
+      \| colorscheme neonwave
+      \| call SetTheme('surarken')
 
 function! SetTheme(name)
   " Airline functions are not available at vim start.
@@ -59,4 +53,5 @@ function! CustomHighlights()
   highlight clear SpellRare  | highlight link SpellRare SpellBad
 endfunction
 
-call Dark()
+" Set starting colorscheme
+Dark