link | source | for |
---|---|---|
~/vimfiles\ | -> c:\w\settings_for_sync\my.vimfiles |
gvim |
~/.vim | -> c:\w\settings_for_sync\my.vimfiles |
vim-console (git) |
%localappdata%\nvim | -> c:\w\settings_for_sync\my.vimfiles |
nvim, nvim-qt |
~/vimfiles/vimrc
- Define a enviroment-viable and set its value to the same vimrc which is used by both nvim and gvim
myProcessEnv( "MYVIMRC" ) = myFsObj.BuildPath(myProcessEnv( "userprofile" ), "vimfiles/vimrc")
var arg0 = " -u " + myProcessEnv( "MYVIMRC" )
- define
NVIM_QT
in nvim.js, to let vimrc know that now it's nvim
myProcessEnv( "NVIM_QT" ) = 1
- nvim-qt, set window size
link.Arguments = " -qwindowgeometry 1200x700+50+50 -- " + arg0 + arg
- nvim-qt, set font at ginit.vim
Guifont! Fira Code Medium:h13
" VO - view output of vim command in new buffer
command! -narg=+ VO :call ViewOutput(<q-args>) "use a !bang, to 'redefine' the command
command! -narg=+ OO :call ViewOutput(<q-args>)
settings | for |
---|---|
~/vimfiles/vimrc | gvim, neovide |
~/vimfiles/ginit.vim | nvim-qt |
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;33m' # begin reverse video
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
start /b lemonade.exe server -allow 127.0.0.1 2>nul 1>nul && c:\Windows\System32\OpenSSH\ssh.exe -R 2489:127.0.0.1:2489 user@remote