aboutsummaryrefslogtreecommitdiff
path: root/Editor/vimrc
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2019-06-24 17:21:19 +0100
committerVasil Zlatanov <v@skozl.com>2019-06-24 17:21:43 +0100
commit15781e686a45cd1b71630c16e201981d29bcbe69 (patch)
treebfdb030bf79f99f328ae3fd2863b97930cdc4d56 /Editor/vimrc
parent54b70dce613fd1658331181f82a45e494db62abc (diff)
downloaddotfiles-15781e686a45cd1b71630c16e201981d29bcbe69.tar.gz
dotfiles-15781e686a45cd1b71630c16e201981d29bcbe69.tar.bz2
dotfiles-15781e686a45cd1b71630c16e201981d29bcbe69.zip
Update vimrc & remove fish folder
Diffstat (limited to 'Editor/vimrc')
-rw-r--r--Editor/vimrc46
1 files changed, 44 insertions, 2 deletions
diff --git a/Editor/vimrc b/Editor/vimrc
index 6dfebc8..e4a81cf 100644
--- a/Editor/vimrc
+++ b/Editor/vimrc
@@ -18,16 +18,20 @@ Plugin 'tpope/vim-repeat'
Plugin 'Shougo/deoplete.nvim'
Plugin 'bling/vim-airline'
Plugin 'tpope/vim-fugitive'
+Plugin 'vim-airline/vim-airline-themes'
"Plugin 'zchee/deoplete-clang'
""Plugin 'Valloric/YouCompleteMe'
"Plugin 'SirVer/ultisnips'
"Plugin 'honza/vim-snippets'
"" make it look good
-"Plugin 'junegunn/goyo.vim'
"" neomutt support
Plugin 'neomutt/neomutt.vim'
"" dissaprove indented code to far
""Plugin 'dodie/vim-disapprove-deep-indentation'
+" Syntax hilighting for base16 style themes
+"Plugin 'plasticboy/vim-markdown'
+Plugin 'rhysd/vim-grammarous'
+Plugin 'chriskempson/base16-vim'
call vundle#end() " required
filetype plugin indent on " required
@@ -35,7 +39,6 @@ filetype plugin on
"General
syntax on
-
set showcmd " Show (partial) command in status line.
"set showmatch " Show matching brackets.
"set gdefault
@@ -86,6 +89,9 @@ nnoremap <leader>m :.!~/bin/calc<Enter>
nnoremap <leader>i :read !latestimage<Enter>
nnoremap <leader>v :!open '<cfile>'<CR>
+noremap! <C-BS> <C-w>
+noremap! <C-h> <C-w>
+
"read spaces in path's
set isfname+=32
@@ -158,3 +164,39 @@ autocmd BufWinLeave * call clearmatches()
"Airline symbols
let g:airline_powerline_fonts = 1
+
+let g:vim_markdown_folding_disabled = 1
+
+let g:airline_theme='base16'
+
+
+" Modify The ColorScheme to show Italic and Bold in Markdown.
+" Italicise comments and Type's
+" And make Line numbers same as background
+
+function! s:base16_customize() abort
+ call Base16hi("htmlBold", g:base16_gui0A, "", g:base16_cterm06, "", "bold", "")
+ call Base16hi("markdownBold", g:base16_gui0A, "", g:base16_cterm06, "", "bold", "")
+ call Base16hi("markdownHeadingDelimiter", g:base16_gui0A, "", g:base16_cterm08, "", "bold", "")
+ call Base16hi("markdownH1", g:base16_gui0A, "", g:base16_cterm08, "", "bold", "")
+ call Base16hi("markdownH2", g:base16_gui0A, "", g:base16_cterm08, "", "bold", "")
+ call Base16hi("htmlItalic", g:base16_gui0E, "", g:base16_cterm06, "", "italic", "")
+ call Base16hi("markdownItalic", g:base16_gui0E, "", g:base16_cterm06, "", "italic", "")
+ call Base16hi("htmlUnderline", g:base16_gui0E, "", g:base16_cterm06, "", "underline", "")
+ call Base16hi("Italic", "", "", "", "", "italic", "")
+ call Base16hi("Comment", g:base16_gui04, "", g:base16_cterm04, "", "italic", "")
+
+ call Base16hi("Type", g:base16_gui0A, "", g:base16_cterm0A, "", "italic", "")
+ call Base16hi("htmlArg", "", "", "", "", "italic", "")
+ call Base16hi("LineNr", g:base16_gui03, g:base16_cterm00, g:base16_cterm03, g:base16_cterm00, "", "")
+ call Base16hi("CursorLineNr", g:base16_gui04, g:base16_gui00, g:base16_cterm04, g:base16_cterm00, "", "")
+endfunction
+augroup on_change_colorschema
+ autocmd!
+ autocmd ColorScheme * call s:base16_customize()
+augroup END
+
+if filereadable(expand("~/.vimrc_background"))
+ let base16colorspace=256
+ source ~/.vimrc_background
+endif