Browse Source

updated vim configs

bananicorn 5 years ago
parent
commit
92e42ed217
3 changed files with 30 additions and 3 deletions
  1. 2 0
      .vim/ftplugin/plan.vim
  2. 24 3
      .vimrc
  3. 4 0
      setup-vim.sh

+ 2 - 0
.vim/ftplugin/plan.vim

@@ -2,6 +2,8 @@
 highlight Checked ctermfg=White ctermbg=DarkGreen
 highlight Unchecked ctermfg=White ctermbg=DarkRed
 highlight Optional ctermfg=Black ctermbg=Yellow
+highlight Started ctermfg=Black ctermbg=LightBlue
 syn match Unchecked /\[ \]/
 syn match Checked /\[x\]/
 syn match Optional /\[?\]/
+syn match Started /\[-\]/

+ 24 - 3
.vimrc

@@ -16,6 +16,7 @@ set guioptions-=m
 
 "a bit more readable
 set guifont=Lucida_Console:h10
+"set guifont=font-3270
 
 "make backspace behave normally in insert mode
 set backspace=indent,eol,start
@@ -44,20 +45,30 @@ set fileencoding=utf-8
 syntax on
 filetype indent plugin on
 
+"ignore whitespace when diffing
+set diffopt+=iwhite
+
 "Akin to intellisense
 "I should set this up to work with <C-N>
 filetype plugin on
 set omnifunc=syntaxcomplete#Complete
 
 "colorscheme zellner
-colorscheme gentooish "available in the void-package vim-colorschemes
-"colorscheme holokai "available in the void-package vim-colorschemes
+"available in the void-package vim-colorschemes
+"colorscheme gentooish
+"colorscheme holokai
+"colorscheme maui "the line numbers here are terribly faint
+colorscheme elda
 
 "always underline spelling errors instead of making their background red
 hi clear SpellBad
 hi SpellBad cterm=underline ctermfg=red
 
-"for indentating html - otherwise these tags are not recognized
+"warn me when I get over 140 columns
+"highlight OverLength ctermbg=red ctermfg=white guibg=#592929
+"match OverLength /\%141v.\+/
+
+"for indenting html - otherwise these tags are not recognized
 let g:html_indent_inctags = "html,body,head,tbody,table,td,tr,th,canvas"
 
 "whitespace
@@ -125,3 +136,13 @@ nnoremap <silent> <esc><esc> :noh<CR>
 "add custom/unknown filetypes
 autocmd BufNewFile,BufRead *.plan set filetype=plan
 autocmd BufNewFile,BufRead *.tsv set filetype=tsv
+
+"config of ale for linting and stuff
+let g:ale_linters = {
+	\   'javascript': ['eslint'],
+\}
+let g:ale_lint_on_text_changed = 'never'
+let g:ale_lintdelay = 1000
+"FINALLY YES
+nnoremap gd :ALEGoToDefinition<CR>
+nnoremap gfr :ALEFindReferences<CR>

+ 4 - 0
setup-vim.sh

@@ -13,3 +13,7 @@ cd ~/.vim/plugin
 git clone "https://github.com/scrooloose/nerdcommenter"
 git clone "https://github.com/wesQ3/vim-windowswap"
 git clone "https://github.com/editorconfig/editorconfig-vim"
+
+#Plugin for language-server protocol and linting
+#mkdir -p ~/.vim/pack/git-plugins/start
+#git clone --depth 1 https://github.com/dense-analysis/ale.git ~/.vim/pack/git-plugins/start/ale