New answers tagged

0

This is most probably not a text file, so no text editor can display it correctly. You need a viewer program for its file-type. If the file-name contains a suffix, search for the meaning of that suffix and may find what the file-type is.


0

Looking at the tmux man page, it seems that if your EDITOR or VISUAL environment variable has the string "vi" in it anywhere, it may set your tmux to use vi key bindings. You probably need to be in "copy mode" for the scrolling to work. That's what the Ctrl-b then [ does for emacs bindings. Try entering copy mode (maybe "[" for ...


0

Try awk "as an external command" like this: :%!awk '{print $1,$NF,$2,$3,$NF}' % ................... current file ! ................... filter $NF ................. last field on awk


0

I saw this answer on an other post, I had the same problem and it wasn't due to the listchars option. This solved everything : Add autocmd VimEnter * set t_ut= to your vimrc file .


0

This works on my AntiX 4.9 using keyboard (not numpad) keys. It is the zoom feature of Vim 8.1 and it provides me more view of text in vertical split screen mode. [Ctrl][-] decrease font size [Ctrl][Shift][+] increase font size [Ctrl][0] restore font size Some additional info, because I am using a Debianized, small version of vim. You can ...


0

Most answers here ignore that match is WINDOW LOCAL ONLY! Highly commented code below to explain how to add match for a certain filetypes only. The question asked is "In Vim how I can set a local match only for a specific filetype?" Below answers that, but for the case of trailing whitespace instead of colour column. " Create a highlight group ...


0

This workaround seems help In top menu -> Help -> Edit Custom VM Options... add this 2 lines at bottom -Drecreate.x11.input.method=true -Dawt.ime.disabled=true then restart IDE P/S: My environment: Ubuntu 20.04, PhpStorm 2019.1


1

The issue stems from how vim writes files in two stages by default. When inotify (which entr is based on) sees these events they're interpreted as two saves. On my machine, this fixes the issue: :set backupcopy=yes You can add that to your .vimrc to make it permanent.


0

Personally I use: map g1 :call cursor(0, virtcol('$')/0)<CR> map g2 :call cursor(0, virtcol('$')/4)<CR> map g3 :call cursor(0, virtcol('$')/2)<CR> map g4 :call cursor(0, virtcol('$')/3*2)<CR> map g5 :call cursor(0, virtcol('$'))<CR> To center vertically 0% - 25% - 50% - 75% - 100% Lorem ipsum dolor sit amet, consectetur ...


0

I learnt this neat automation from coderwall, write the following into your .vimrc file let &t_SI .= "\<Esc>[?2004h" let &t_EI .= "\<Esc>[?2004l" inoremap <special> <expr> <Esc>[200~ XTermPasteBegin() function! XTermPasteBegin() set pastetoggle=<Esc>[201~ set paste return "" ...


0

I've been having similar issues... I found switching browsers helped. My usual browser is Chrome, but Edge worked for me to access the admin interface.


0

Solution for GNU Screen 4.5.0 and newer GNU Screen 4.5.0 and newer does have an option to stop terminal content from changing window titles, see this bug ticket (via, formatting mine): Since v.4.5.0 there is defdynamictitle [on|off] for global setting and dynamictitle [on|off] for per window settings. Partial Solution for older GNU Screen versions As I ...


1

As far as I'm aware, there is no option other than :execute echo "hello" " same as let greeting = "hello" execute "echo '" . greeting . "'" However, as you've noticed, if the variable contains certain bad characters, that causes an issue: let greeting = "hel'lo" execute "echo '" . greeting . ...


0

Actually you can just press "f" to show short symbols in page, then you'll see your input box has symbol like link, and type it inside input box


0

You could use xclip or win32yank.exe. For some reason sometimes in WSL1 my clip.exe and win32yank.exe seem to have some runtime error so I am using mainly local xclip with an xserver running. Modified from a few other examples including a neovim clipboard .vim You could just use top section to add ctrl-c ctrl-x (no ctrl-v yet!) without affecting how vim ...


0

Here's my solution for installing plugins with vundle quietly in the background and then printing a message upon completion in the same shell: Make sure the vundle repo is downloaded: git clone https://github.com/VundleVim/Vundle.vim.git $HOME/.vim/bundle/Vundle.vim Set up a .vimrc file to work with vundle. Run this command in your bash shell. It will ...


Top 50 recent answers are included