From 48e810632c302f8e9fd02b1b5057fc5c68f20a98 Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Wed, 11 Apr 2018 11:12:59 -0400 Subject: [PATCH] Minor changes to theme + pythonSelf syntax --- vim/pluginsettings.vim | 1 - vim/syntax/python.vim | 2 ++ vim/theme.vim | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 vim/syntax/python.vim diff --git a/vim/pluginsettings.vim b/vim/pluginsettings.vim index 4b1e472..b18ee0c 100644 --- a/vim/pluginsettings.vim +++ b/vim/pluginsettings.vim @@ -2,7 +2,6 @@ set statusline+=%#warningmsg# "set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* -let g:airline#extensions#tabline#enabled = 1 "let g:syntastic_always_populate_loc_list = 1 "let g:syntastic_auto_loc_list = 1 diff --git a/vim/syntax/python.vim b/vim/syntax/python.vim new file mode 100644 index 0000000..8118c3c --- /dev/null +++ b/vim/syntax/python.vim @@ -0,0 +1,2 @@ +" Highlight the self keyword red +syn keyword pythonSelf self diff --git a/vim/theme.vim b/vim/theme.vim index ebbc0b3..f25fc5d 100644 --- a/vim/theme.vim +++ b/vim/theme.vim @@ -28,6 +28,8 @@ if (has("termguicolors")) colorscheme one " reverse one-dark's fold colors highlight Folded guibg=#282c34 guifg=#5c6370 + " make pythonSelf red not grey + highlight pythonSelf ctermfg=168 guifg=#e06c75 endif " Needed for termgui in tmux--&term begins w screen-... @@ -38,3 +40,8 @@ if (has("termguicolors")) let &t_8b = "\[48;2;%lu;%lu;%lum" endif endif + +" Allow cursor to change shape +" https://stackoverflow.com/questions/6488683/how-do-i-change-the-vim-cursor-in-insert-normal-mode/42118416#42118416 +let &t_SI = "\e[6 q" +let &t_EI = "\e[2 q" -- libgit2 0.28.4