Find answers to your questions about Vi and Vim or help others by answering their Vi and Vim questions.
I have a script written in vimscript-python, e.g.:function! MyFunction()python3 << EOF# if <condition>:# returnprint('Hello world')EOFendfunctionI want to add a check in the beginning of the...
Asked on 08/31/2021 by niekas
0 answerThe ergodox keyboard I use has two dedicated modifier keys ( Alt - Shift - Ctrl ) and( Alt - Shift - Ctrl - Windows) I would like to...
Asked on 08/31/2021 by Dylan Plummer
1 answerVim has two options to represent non-printable characters - as a single char or using key-notation: ^J or <C-J>. By default, vim uses a single-char representation for :reg command:"q...
Asked on 08/31/2021 by Feedforward
0 answerI want to use different config files for different directories. For example, if I want to use different plugins(via a plugin manager) or use different color themes. Is there a...
Asked on 08/31/2021 by ygy
1 answerI quite often use the :registers command to show the contents of all the registers (I forget what I put where, exactly what the role of "*, "., "%, etc....
Asked on 08/31/2021
4 answerSuppose you run the following piece of vimscript:let @z = system("date")This will put a string version of the current date into the z register, but the string will end...
Asked on 08/31/2021 by bdesham
4 answerI'm using Vim 7.3 on OS X Terminal version 2.6.1 (OS X version 10.11.2). If it's relevant, my version is compiled without X11. When I open a file in Vim,...
Asked on 08/31/2021 by ravron
2 answerGenerally you can select a visual block for the first n characters of a range of lines, and just press c, insert characters, and press Esc to have it apply...
Asked on 08/31/2021
4 answerI need to set cursor position when opening quickfix window. I have triedautocmd BufEnter * call cursor(2, 2)It doesn't set cursor for quickfix buffer immediately after I have opened...
Asked on 08/31/2021 by Kirill Bugaev
2 answerUsing following .vimrc" Just to see tab/spaces/endline clearly:set encoding=utf-8set listset listchars=tab:▸ ,eol:¬nnoremap <F5> :set list!<cr>" Tab to spaces settingsset tabstop=4set softtabstop=4set shiftwidth=4set shiftroundset expandtab" paste and pastetoggle settingsset nopasteset...
Asked on 08/31/2021 by aldwinaldwin
1 answerGet help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP