shougo / cmdline.vim Goto Github PK
View Code? Open in Web Editor NEWDisplay command line text in floating window
License: MIT License
Display command line text in floating window
License: MIT License
When a Nerdfont character is passed as the first argument (prompt) of cmdline#input, the prompt is displayed even in the original command line that is not a Window created by cmdline.vim.
init.vim
" dein {{{
let $BASE_DIR = fnamemodify(expand('<sfile>'), ':h')
let $CACHE = expand('$BASE_DIR/cache')
if !isdirectory($CACHE)
call mkdir($CACHE, 'p')
endif
let s:dein_base_dir = expand('$CACHE/dein')
let s:dein_dir = expand(s:dein_base_dir .. '/repos/github.com/Shougo/dein.vim')
if &runtimepath !~# '/dein.vim'
if !isdirectory(s:dein_dir)
echo 'install dein.vim'
execute '!git clone https://github.com/Shougo/dein.vim' s:dein_dir
endif
execute 'set runtimepath^=' . substitute(fnamemodify(s:dein_dir, ':p'), '[/\\]$', '', '')
endif
if dein#min#load_state(s:dein_base_dir)
call dein#begin(s:dein_base_dir)
call dein#add('Shougo/dein.vim')
call dein#add('Shougo/cmdline.vim')
call dein#end()
call dein#save_state()
endif
if has('vim_starting') && dein#check_install()
call dein#install()
endif
" }}}
if has('syntax')
syntax on
endif
set title
set number
set background=light
set termguicolors
colorscheme shine
" colorscheme pablo
set backspace=indent,eol,start
Highlight for original cmdline window goes forcely black at specific light-system colorscheme (like the screenshot)
Clone catppuccin/nvim
colorschme (https://github.com/catppuccin/nvim) and use .vimrc
like bellow:
set runtimepath+=/path/to/Shougo/cmdline.vim/
set runtimepath+=/path/to/catppuccin/nvim/
call cmdline#set_option(#{
\ highlight_window: 'None',
\ })
lua <<EOF
require("catppuccin").setup({
flavour = "latte",
transparent_background = true,
})
vim.cmd.colorscheme("catppuccin")
EOF
autocmd CmdlineEnter * call cmdline#enable()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.