From 5f62505fcabb05d90d776ef2bb3c49a7e76f17e7 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sat, 4 Feb 2023 17:21:59 -0500 Subject: [PATCH 1/7] improve themes --- .vimrc | 2 +- .vimrc.bundles | 57 +++++++++++++++++++++++++++++--------------------- 2 files changed, 34 insertions(+), 25 deletions(-) diff --git a/.vimrc b/.vimrc index f83df56..be3ba9f 100644 --- a/.vimrc +++ b/.vimrc @@ -7,7 +7,7 @@ let g:vim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*') else let g:vim_type = 'vim' - let g:vim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*') + let g:vim_version = matchstr(execute('version'), 'Vi IMproved \zs[^\n]*') endif let g:vim_version = str2float(g:vim_version) let g:dotfile_path = '~/.dotfiles/' diff --git a/.vimrc.bundles b/.vimrc.bundles index bd6a0d6..20dcf46 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -321,9 +321,9 @@ endif " dark or light if filereadable(expand(g:vim_dir . '.light_theme.signal')) - let g:theme_color = 'light' + let g:dark_or_white_theme = 'light' else - let g:theme_color = 'dark' + let g:dark_or_white_theme = 'dark' endif " what to use for dark theme @@ -350,20 +350,20 @@ endif set background=dark hi clear execute("colorscheme " . g:dark_theme) - let g:theme_color = 'dark' + let g:dark_or_white_theme = 'dark' endfunction function! SetLightTheme() set background=light hi clear execute("colorscheme " . g:light_theme) - let g:theme_color = 'light' + let g:dark_or_white_theme = 'light' endfunction " Change bottom airline/lualine theme " Currently only support airline function! SetAirlineTheme(theme) - if has('nvim') && g:vim_version >= 0.5 + if g:vim_type == 'nvim' && g:vim_version >= 0.5 execute('AirlineTheme ' . a:theme) else execute('AirlineTheme ' . a:theme) @@ -375,6 +375,7 @@ endif function! TransparentBackgroundFix() "if !has('nvim') || g:vim_version < 0.5 if v:true + "if v:false highlight SignColumn ctermbg=none "highlight CursorLineNr ctermbg=none highlight CocWarningHighlight ctermbg=none @@ -385,7 +386,7 @@ endif highlight CocWarningSign ctermbg=none highlight CocInfoSign ctermbg=none highlight CocHintSign ctermbg=none - if g:theme_color == 'dark' + if g:dark_or_white_theme == 'dark' highlight! link TempColor Visual highlight! link CocFloating TempColor highlight! link CocErrorFloat TempColor @@ -399,7 +400,7 @@ endif function! EnableTransparent() if g:vim_type == 'nvim' && g:vim_version > 0.5 :TransparentEnable - elseif g:theme_color == 'dark' + elseif g:dark_or_white_theme == 'dark' let g:PaperColor_Theme_Options = { \ 'theme': { \ 'default.dark': { @@ -408,7 +409,7 @@ endif \ } \ } execute("colorscheme " . g:dark_theme) - elseif g:theme_color == 'light' + elseif g:dark_or_white_theme == 'light' let g:PaperColor_Theme_Options = { \ 'theme': { \ 'default.light': { @@ -423,7 +424,7 @@ endif function! DisableTransparent() if g:vim_type == 'nvim' && g:vim_version > 0.5 :TransparentDisable - elseif g:theme_color == 'dark' + elseif g:dark_or_white_theme == 'dark' let g:PaperColor_Theme_Options = { \ 'theme': { \ 'default.dark': { @@ -432,7 +433,7 @@ endif \ } \ } execute("colorscheme " . g:dark_theme) - elseif g:theme_color == 'light' + elseif g:dark_or_white_theme == 'light' let g:PaperColor_Theme_Options = { \ 'theme': { \ 'default.light': { @@ -459,17 +460,17 @@ endif " ToggleTransparent background " only works in dark theme function! ToggleTransparent() - if g:transparent_dark_theme && g:theme_color == 'dark' + if g:transparent_dark_theme && g:dark_or_white_theme == 'dark' call DisableTransparent() let g:transparent_dark_theme = v:false call DeleteSignalFile('.transparent_dark_theme.signal') - elseif g:transparent_light_theme && g:theme_color == 'light' + elseif g:transparent_light_theme && g:dark_or_white_theme == 'light' call DisableTransparent() let g:transparent_light_theme = v:false call DeleteSignalFile('.transparent_light_theme.signal') else call EnableTransparent() - if g:theme_color == 'dark' + if g:dark_or_white_theme == 'dark' let g:transparent_dark_theme = v:true call CreateSignalFile('.transparent_dark_theme.signal') else @@ -482,22 +483,30 @@ endif " vim theme - if isdirectory(expand(plugin_dir . "/papercolor-theme")) - " improve coc color in this theme - let g:light_theme = 'PaperColor' - let g:dark_theme = 'PaperColor' - endif + if !has('nvim') && isdirectory(expand(plugin_dir . "/papercolor-theme")) + set t_Co=256 + " improve coc color in this theme + let g:light_theme = 'PaperColor' + let g:dark_theme = 'PaperColor' + "let g:airline_dark_theme = "papercolor" + "let g:airline_light_theme = "papercolor" + endif " nvim only theme - if isdirectory(expand(plugin_dir . "/nightfox.nvim")) && isdirectory(expand(plugin_dir . "/github-nvim-theme")) && has('nvim') && g:vim_version >= 0.5 + if has('nvim') + if g:vim_version >= 0.8 && isdirectory(expand(plugin_dir . "/nightfox.nvim")) let g:light_theme = 'dawnfox' "let g:dark_theme = 'nightfox' + end + + if g:vim_version >= 0.5 && isdirectory(expand(plugin_dir . "/github-nvim-theme")) let g:dark_theme = 'github_dark' let g:airline_dark_theme = "hybrid" - endif + end + endif - if g:theme_color == 'dark' + if g:dark_or_white_theme == 'dark' let g:airline_theme=g:airline_dark_theme call SetDarkTheme() else @@ -507,7 +516,7 @@ endif " Since in .vimrc we cannot call plugin function as they " are not loaded (:help startup) - if g:transparent_dark_theme && g:theme_color == 'dark' || g:transparent_light_theme && g:theme_color == 'light' + if g:transparent_dark_theme && g:dark_or_white_theme == 'dark' || g:transparent_light_theme && g:dark_or_white_theme == 'light' if g:vim_type == 'nvim' && g:vim_version > 0.5 let g:transparent_enabled = v:true else @@ -525,7 +534,7 @@ endif " Allow to trigger background function! ToggleBG() " Inversion - if g:theme_color == "dark" + if g:dark_or_white_theme == "dark" call SetLightTheme() call SetAirlineTheme(g:airline_light_theme) call CreateSignalFile('.light_theme.signal') @@ -536,7 +545,7 @@ endif call DeleteSignalFile(".light_theme.signal") endif - if g:transparent_dark_theme && g:theme_color == 'dark' || g:transparent_light_theme && g:theme_color == 'light' + if g:transparent_dark_theme && g:dark_or_white_theme == 'dark' || g:transparent_light_theme && g:dark_or_white_theme == 'light' call EnableTransparent() else call DisableTransparent() From b245b9b4d3b2af9e2751c0721e17378f8ad07f99 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sat, 4 Feb 2023 18:36:33 -0500 Subject: [PATCH 2/7] replace some plugins for nvim --- .vimrc.bundles | 34 +++++++++++++++++++---- .vimrc.lua | 74 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 101 insertions(+), 7 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index bd6a0d6..e3d3c0d 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -55,11 +55,6 @@ Plug 'jiangmiao/auto-pairs' Plug 'mg979/vim-visual-multi' - Plug 'vim-airline/vim-airline' - Plug 'vim-airline/vim-airline-themes' - - " The bottom buffer display - Plug 'bling/vim-bufferline' Plug 'easymotion/vim-easymotion' Plug 'vim-scripts/restore_view.vim' @@ -77,10 +72,19 @@ " put text in neibouring tmux pane into auto complete Plug 'wellle/tmux-complete.vim' + Plug 'NoahTheDuke/vim-just' Plug 'ludovicchabant/vim-gutentags', { 'for': ['c', 'cpp'] } Plug 'lambdalisue/readablefold.vim' + " only work with vim + if g:vim_type == 'vim' + Plug 'vim-airline/vim-airline' + Plug 'vim-airline/vim-airline-themes' + endif + + " The bottom buffer display + Plug 'bling/vim-bufferline' " only work with nvim > 0.5 " For other versions, just loading the plugin may " cause error @@ -92,12 +96,19 @@ Plug 'EdenEast/nightfox.nvim' Plug 'projekt0n/github-nvim-theme' + Plug 'nvim-lualine/lualine.nvim' + " If you want to have icons in your statusline choose one of these + Plug 'kyazdani42/nvim-web-devicons' + " partial code execution " Plug 'michaelb/sniprun', {'do': 'bash install.sh'} endif if g:vim_version >= 0.7 Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} endif + if g:vim_version >= 0.8 + Plug 'nvim-tree/nvim-tree.lua' + endif endif call plug#end() @@ -192,7 +203,7 @@ endif " } " NerdTree { - if isdirectory(expand(plugin_dir . "/nerdtree")) + if g:vim_type == 'vim' && isdirectory(expand(plugin_dir . "/nerdtree")) let g:NERDShutUp=1 " work around for nerdtree bug: https://github.com/preservim/nerdtree/issues/1321 @@ -211,6 +222,17 @@ endif let NERDTreeKeepTreeInNewTab = 1 endif " } + + " nvim-tree.lua { + if g:vim_type == 'nvim' && isdirectory(expand(plugin_dir . "/nvim-tree.lua")) + + + nnoremap e :NvimTreeFindFileToggle + nnoremap r :NvimTreeRefresh + " nnoremap e :NvimTreeFindFile + + endif + " } "if has('nvim') && str2float(g:nvim_version) >= 0.5 && isdirectory(expand(plugin_dir . "/lualine.nvim")) " nvim-lualine/lualine.nvim { diff --git a/.vimrc.lua b/.vimrc.lua index 8b2b7db..db50cb1 100644 --- a/.vimrc.lua +++ b/.vimrc.lua @@ -1,5 +1,5 @@ -require'nvim-treesitter.configs'.setup { +require('nvim-treesitter.configs').setup { -- ensure_installed = { "c", "bash", "lua" }, sync_install = false, auto_install = true, @@ -9,3 +9,75 @@ require'nvim-treesitter.configs'.setup { additional_vim_regex_highlighting = false, }, } + +require('lualine').setup { + sections = { + lualine_a = {'mode'}, + lualine_b = {}, + lualine_c = { + { + 'buffers', + mode = 4, + } + }, + -- lualine_x = {'encoding', 'fileformat', 'filetype'}, + lualine_x = {'encoding'}, + lualine_y = {}, + lualine_z = {'location'} + }, + -- tabline = { + -- lualine_a = { + -- { + -- 'buffers', + -- mode = 4, + -- } + -- }, + -- lualine_b = {}, + -- lualine_c = {}, + -- lualine_x = {}, + -- lualine_y = {}, + -- lualine_z = {'tabs'} + -- }, + -- winbar = { + -- lualine_a = {}, + -- lualine_b = {}, + -- lualine_c = {'filename'}, + -- lualine_x = {}, + -- lualine_y = {}, + -- lualine_z = {} + -- }, +} + +-- nvim-tree configuration +-- + +-- disable netrw at the very start of your init.lua (strongly advised) +vim.g.loaded_netrw = 1 +vim.g.loaded_netrwPlugin = 1 + +-- set termguicolors to enable highlight groups +vim.opt.termguicolors = true + +-- setup with some options +require("nvim-tree").setup({ + sort_by = "case_sensitive", + view = { + width = 30, + mappings = { + list = { + { key = "C-[", action = "dir_up" }, + { key = "C-]", action = "cd" }, + { key = "", action = "toggle_file_info" }, + }, + }, + }, + renderer = { + group_empty = true, + }, + filters = { + dotfiles = false, + }, +}) + +-- +-- nvim-tree configuration end From cd55da86b1f4185ddcaffd69aed9b34a7149ff83 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sat, 4 Feb 2023 19:16:54 -0500 Subject: [PATCH 3/7] replace some plugins for nvim --- .vimrc | 6 +++-- .vimrc.bundles | 9 ++++++-- .vimrc.lua | 60 ++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 55 insertions(+), 20 deletions(-) diff --git a/.vimrc b/.vimrc index be3ba9f..0c90f72 100644 --- a/.vimrc +++ b/.vimrc @@ -78,8 +78,8 @@ " Vim UI { " - set tabpagemax=15 " Only show 15 tabs - set showmode " Display the current mode + " set tabpagemax=15 " Only show 15 tabs + " set showmode " Display the current mode set cursorline " Highlight current line set cmdheight=1 " get rid of the extra useless line at the bottom(not working, probably a plugin is changing the value) @@ -91,6 +91,7 @@ set ruler " Show the ruler set rulerformat=%30(%=\:b%n%y%m%r%w\ %l,%c%V\ %P%) " A ruler on steroids set showcmd " Show partial commands in status line and + endif set backspace=indent,eol,start " Backspace for dummies @@ -109,6 +110,7 @@ set scrolloff=5 " Minimum lines to keep above and below cursor set sidescrolloff=5 " Minimum lines to keep at the left or right of the cursor + " } " Formatting { diff --git a/.vimrc.bundles b/.vimrc.bundles index 6d1a19d..aa83a22 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -229,8 +229,11 @@ endif nnoremap e :NvimTreeFindFileToggle nnoremap r :NvimTreeRefresh - " nnoremap e :NvimTreeFindFile + " Hide vim bottom statusline + " autocmd FileType NvimTree setlocal noshowmode noruler laststatus=0 noshowcmd + set noshowmode noruler laststatus=0 noshowcmd + " autocmd BufRead,BufNewFile NvimTree set laststatus=0 " This will work instead endif " } @@ -239,6 +242,7 @@ endif " } "else " vim-airline { + if g:vim_type == 'vim' && isdirectory(expand(plugin_dir . "/airline")) " Set configuration options for the statusline plugin vim-airline. " Use the powerline theme and optionally enable powerline symbols. let g:airline_section_b = '' @@ -276,6 +280,7 @@ endif if isdirectory(expand(plugin_dir . "/vim-airline-themes/")) "let g:airline_theme = 'solarized' endif + endif " } "endif @@ -386,7 +391,7 @@ endif " Currently only support airline function! SetAirlineTheme(theme) if g:vim_type == 'nvim' && g:vim_version >= 0.5 - execute('AirlineTheme ' . a:theme) + "execute('AirlineTheme ' . a:theme) else execute('AirlineTheme ' . a:theme) endif diff --git a/.vimrc.lua b/.vimrc.lua index db50cb1..b5ff333 100644 --- a/.vimrc.lua +++ b/.vimrc.lua @@ -11,6 +11,14 @@ require('nvim-treesitter.configs').setup { } require('lualine').setup { + options = { + theme = 'auto', -- lualine theme + disabled_filetypes = { -- Filetypes to disable lualine for. + statusline = {}, -- only ignores the ft for statusline. + winbar = {}, -- only ignores the ft for winbar. + 'NvimTree' + }, + }, sections = { lualine_a = {'mode'}, lualine_b = {}, @@ -18,6 +26,14 @@ require('lualine').setup { { 'buffers', mode = 4, + filetype_names = { + TelescopePrompt = 'Telescope', + dashboard = 'Dashboard', + packer = 'Packer', + fzf = 'FZF', + alpha = 'Alpha', + NvimTree = 'NvimTree' + }, } }, -- lualine_x = {'encoding', 'fileformat', 'filetype'}, @@ -60,23 +76,35 @@ vim.opt.termguicolors = true -- setup with some options require("nvim-tree").setup({ - sort_by = "case_sensitive", - view = { - width = 30, - mappings = { - list = { - { key = "C-[", action = "dir_up" }, - { key = "C-]", action = "cd" }, - { key = "", action = "toggle_file_info" }, - }, + sort_by = "case_sensitive", + view = { + width = 30, + mappings = { + list = { + { key = "C-[", action = "dir_up" }, + { key = "C-]", action = "cd" }, + { key = "", action = "toggle_file_info" }, + }, + }, + }, + renderer = { + group_empty = true, + }, + filters = { + dotfiles = false, + }, + actions = { + open_file = { + quit_on_open = true, + resize_window = true, + window_picker = { + exclude = { + filetype = { "notify", "packer", "qf", "diff", "fugitive", "fugitiveblame" }, + buftype = { "nofile", "terminal", "help" }, + }, + }, + }, }, - }, - renderer = { - group_empty = true, - }, - filters = { - dotfiles = false, - }, }) -- From 6e53504e473a8a35812a27c4a67aad6296588665 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sun, 5 Feb 2023 19:04:30 -0500 Subject: [PATCH 4/7] . --- .vimrc.bundles | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index aa83a22..6f354ae 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -97,14 +97,13 @@ Plug 'projekt0n/github-nvim-theme' Plug 'nvim-lualine/lualine.nvim' - " If you want to have icons in your statusline choose one of these - Plug 'kyazdani42/nvim-web-devicons' " partial code execution " Plug 'michaelb/sniprun', {'do': 'bash install.sh'} endif if g:vim_version >= 0.7 Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} + Plug 'nvim-tree/nvim-web-devicons' endif if g:vim_version >= 0.8 Plug 'nvim-tree/nvim-tree.lua' From dd1f2e107ab4bf5a17836f7def4443528bbbb32b Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sun, 5 Feb 2023 19:05:32 -0500 Subject: [PATCH 5/7] add java support --- .vimrc.bundles | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index da19fe2..3ade329 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -184,7 +184,7 @@ endif " airblade/vim-rooter { if isdirectory(expand(plugin_dir . "/vim-rooter")) - let g:rooter_patterns = ['.vscode', '.git', '*.sln'] + let g:rooter_patterns = ['.vscode', '.git', '*.sln', 'src'] let g:rooter_change_directory_for_non_project_files = 'current' let g:rooter_silent_chdir = 1 endif @@ -284,7 +284,7 @@ endif " coc-tsserver: javascript " coc-pyright: python " coc-clangd: c/c++, may need to install clangd seperatly - let g:coc_global_extensions = ['coc-pyright', 'coc-rls', 'coc-clangd', 'coc-tsserver', 'coc-html', 'coc-cmake', 'coc-json', 'coc-sh'] + let g:coc_global_extensions = ['coc-pyright', 'coc-rls', 'coc-clangd', 'coc-tsserver', 'coc-html', 'coc-cmake', 'coc-json', 'coc-sh', 'coc-java'] let g:coc_user_config = { \ 'suggest.noselect': v:true, From 2a6ef320ec2c0a0200b57556988c9efa48438848 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sun, 5 Feb 2023 19:30:27 -0500 Subject: [PATCH 6/7] . --- .vimrc.bundles | 6 +++++- bash_tools/fzf_file_seletor.sh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.vimrc.bundles b/.vimrc.bundles index 912d7eb..4438ec8 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -145,9 +145,13 @@ endif " } " ludovicchabant/vim-gutentags { - set statusline+=%{gutentags#statusline()} + if isdirectory(expand(plugin_dir . "/vim-gutentags")) + if exists("*gutentags#statusline()") + set statusline+=%{gutentags#statusline()} + endif let g:gutentags_cache_dir=g:vim_dir . '/.vimtags/' let g:gutentags_project_root=['.git', '.hg', '.svn', '.bzr', '_darcs', '_FOSSIL_', '.fslckout', 'src'] + endif "} " easymotion/vim-easymotion { diff --git a/bash_tools/fzf_file_seletor.sh b/bash_tools/fzf_file_seletor.sh index a6d9d05..7f13e42 100755 --- a/bash_tools/fzf_file_seletor.sh +++ b/bash_tools/fzf_file_seletor.sh @@ -12,8 +12,8 @@ fzf_command_list_all=(\ # fzf match files fzf_command_list_file=(\ cat \ -vim \ -nvim \ +#vim \ +#nvim \ set_wallpaper \ ) From f57e8ed6363a0ff29499974dc5bea705a12a5ecd Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Sun, 5 Feb 2023 20:02:39 -0500 Subject: [PATCH 7/7] . --- .vimrc | 8 +++++++- .vimrc.bundles | 22 ++++++++++------------ 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.vimrc b/.vimrc index 0c90f72..c9372c1 100644 --- a/.vimrc +++ b/.vimrc @@ -80,7 +80,13 @@ " " set tabpagemax=15 " Only show 15 tabs " set showmode " Display the current mode - set cursorline " Highlight current line + set cursorline " Highlight current line + + " get rid of current line highlight, instead just highlight the number column + augroup CLClear + autocmd! ColorScheme * hi clear CursorLine + augroup END + set cmdheight=1 " get rid of the extra useless line at the bottom(not working, probably a plugin is changing the value) "highlight clear SignColumn " SignColumn should match background diff --git a/.vimrc.bundles b/.vimrc.bundles index 4438ec8..d997746 100644 --- a/.vimrc.bundles +++ b/.vimrc.bundles @@ -36,18 +36,12 @@ let g:closetag_filenames = '*.html,*.xhtml,*.phtml, *.js' " } - Plug 'scrooloose/nerdtree' " for markdown{ Plug 'preservim/vim-markdown' "} - " for window resize{ - Plug 'simeji/winresizer' - let g:winresizer_start_key = '' - let g:winresizer_vert_resize = 2 - let g:winresizer_horiz_resize = 2 - " } + Plug 'simeji/winresizer' Plug 'tpope/vim-surround' Plug 'rhysd/conflict-marker.vim' @@ -55,7 +49,7 @@ Plug 'jiangmiao/auto-pairs' Plug 'mg979/vim-visual-multi' - Plug 'easymotion/vim-easymotion' + "Plug 'easymotion/vim-easymotion' Plug 'vim-scripts/restore_view.vim' if executable('fzf') @@ -79,6 +73,7 @@ " only work with vim if g:vim_type == 'vim' + Plug 'scrooloose/nerdtree' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' endif @@ -98,8 +93,6 @@ Plug 'nvim-lualine/lualine.nvim' - " partial code execution - " Plug 'michaelb/sniprun', {'do': 'bash install.sh'} endif if g:vim_version >= 0.7 Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} @@ -143,6 +136,12 @@ if g:vim_type == 'nvim' endif endif " } + " simeji/winresizer { + if isdirectory(expand(plugin_dir . "/winresizer")) + let g:winresizer_vert_resize = 2 + let g:winresizer_horiz_resize = 2 + nnoremap r :WinResizerStartResize + endif " ludovicchabant/vim-gutentags { if isdirectory(expand(plugin_dir . "/vim-gutentags")) @@ -245,7 +244,7 @@ endif " } "else " vim-airline { - if g:vim_type == 'vim' && isdirectory(expand(plugin_dir . "/airline")) + if g:vim_type == 'vim' && isdirectory(expand(plugin_dir . "/vim-airline")) " Set configuration options for the statusline plugin vim-airline. " Use the powerline theme and optionally enable powerline symbols. let g:airline_section_b = '' @@ -332,7 +331,6 @@ endif " Theme_Appearance " { " - " debug function print out highlight group of cursor position function! SynStack() if !exists("*synstack")