TransWikia.com
  1. All Categories
  2. Vi and Vim

Vi and Vim : Recent Questions and Answers (Page 5)

Find answers to your questions about Vi and Vim or help others by answering their Vi and Vim questions.

How to return from vimscript.python?

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 answer

Is there a way to map (Alt - Shift - Control - Any key) in vimrc?

The 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 answer

Presentation of non-printable characters in messages

Vim 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 answer

Is there a way to use different vimrc file for different directory?

I 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 answer

How can I clear a register/multiple registers completely?

I 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 answer

How do you “chomp” a string in Vim?

Suppose 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 answer

Properly restore terminal title after suspending vim

I'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 answer

How do you change the last n characters for a range of lines?

Generally 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 answer

Set cursor in quickfix on autocmd event

I 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 answer

tabs after pastetoggle instead of spaces

Using 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 answer

Warning: Undefined variable $additional_loop in /home/w/11tr/wp-content/themes/dazfix/category.php on line 78

Warning: Attempt to read property "max_num_pages" on null in /home/w/11tr/wp-content/themes/dazfix/category.php on line 78

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP