Questions tagged [terminal]

A terminal emulator (or terminal, for short) displays characters, colours, and the cursor on the screen. Vi & Vim are run inside of a terminal, gVim is not.

Filter by
Sorted by
Tagged with
1
vote
0answers
312 views

terminal color interferes with vim colors

The following screenshot displays the sorcerer colorscheme displayed in mintty on cygwin windows with the following minttyrc: # CursorColour=191,191,191 # ForegroundColour=220,220,204 # ...
3
votes
0answers
563 views

Why does `set t_ve=' hide cursor in terminal

Vim's documentation lists t_vi as "cursor invisible" and t_ve as "cursor visible", but provides no hints on usage. Naively, I would have guessed that Vim would send the t_vi sequence when you somehow ...
3
votes
2answers
986 views

Is there a way that I can identify which window is a terminal after calling the `:term` command in neovim?

Is there way I can identify a window by a number in neovim and then jump to it with a macro ? Or better yet...Is there a way that I can identify which window is a terminal after calling the :term ...
1
vote
1answer
435 views

How to change buffer name for NeoVim Terminal special buffer

If I execute a interactive command with :terminal, buffername will be something like: term://.//1234:command executed here with params. I want to be able to change it to something more meaningful to ...
1
vote
1answer
93 views

Why does this clipboard manipulation that works on Vim not work on GVIM?

In my .vimrc I have this piece of code: " Gist it to bl.ocks.org {{{ let g:gist_clip_command = 'xclip -selection clipboard' command! -range=% Blocks \ <line1>,<line2>Format format | f ...
0
votes
1answer
584 views

Vim doesn't refresh screen when going fullscreen

I've just upgraded to a new laptop with Ubuntu 16.04 and installed Vim 7.4 1-1952. I installed most of my plugins when I noticed that 80% of the time when I press F11 to go fullscreen, Vim doesn't "...
0
votes
1answer
839 views

Wrong colors inside tmux

In vim without tmux: In vim with tmux: Color in Vim is 'default' My .vimrc has nothing related to colors. My .tmux.conf is empty. My .bashrc is untouched. I am using gnome-terminal with a custom ...
1
vote
1answer
147 views

PyClewn Failed to start error

I have been trying to get PyClewn to work by following the instructions step by step without much luck. This is the error I get when I type :PyClewn into vim: Running nbstart, <C-C> to ...
10
votes
4answers
4k views

Use case for neovim terminal emulator?

One big difference of neovim and Vim is that neovim includes a terminal emulator that works asynchronously. However, I fail to see how can I profit from this feature. For what can I use it? Can you ...
4
votes
2answers
543 views

How do PuTTY/KiTTY ANSI colors affect Vim colorschemes?

I'm having a hard time understanding how the ANSI colors affect the named colors in Vim. My KiTTY terminal has "regular" and "bold" versions for the main 8 colors, plus foreground/background colors. ...
1
vote
1answer
142 views

Vim not displaying deleted text correctly in tiling WM

I'm sorry if the question doesn't make much sense, but I really don't know how else to describe it. I'll do my best to clarify. Let's say I have a text file containing the words here is some text ...
2
votes
2answers
1k views

Vimscript-python support not working in terminal

When starting vim in a mingw64 terminal emulator on windows, the command :py print(1) fails, saying Could not load library msys-python2.7.dll Sorry, this command is disabled, the Python library could ...
1
vote
1answer
823 views

Ethan Schoonover's Solarized color scheme does not work as expected

I'm trying to use this color scheme on my Ubuntu system. I installed the package using Option 1 in GitHub, and modified .vimrc as instructed. It turns out that the colors displayed are different as ...
2
votes
0answers
306 views

Changing background color of cursor during selection

Coming from Sublime, I find the following behaviour frustrating. When I select some text, the first (or last depending upon which way you select) character flashes between the text color and your ...
2
votes
1answer
47 views

Using '-c' when calling vim from terminal

My issue is with using the -c while calling vim from terminal like $ vim -c jk I want to be able to open the last session before quitting on typing viml in terminal For this I made a map to save ...
2
votes
1answer
47 views

What captures the <Shift>+<Ins> key combination?

When I press SHIFT+Ins in vim to paste text, who captures this key combination? Is it the terminal or Vim? How about in gVim?
1
vote
0answers
275 views

Visual selection in Nvim-R plugin sends one line too much to terminal

I have just set up the Nvim-R plugin for Neovim to send lines of code from an .R-file opened with Neovim to a terminal inside a tmux session. Previously, I have worked with its predecessor Vim-R, ...
1
vote
1answer
1k views

Problem with color, symbols and upper bar using airline with Vim in terminal

I noticed 3 problems with my Vim terminal setup on Ubuntu which can be illustrated by the following picture of my current Vim. I get the same look with a lot of airline-themes (e.g. molokai, ...
8
votes
2answers
3k views

Mapping Ctrl+s does not work

I am trying to map Ctrl+s to save my file however it does not work. My mappings: map <C-s> :w <CR> :echo "Saved" <CR> imap <C-s> <Esc> :w <CR> :echo "Saved" <...
6
votes
0answers
483 views

Patched font for devicons doesn't show up in terminal [closed]

I would like to install the Vim plugin "vim-devicons". But I am unable to install the patched font "Hack". I copied the following file into ~/.local/shared/fonts. The installation of the font seems ...
3
votes
0answers
71 views

Double SSH on Vim [closed]

I can edit remotely a file located on Machine_1 using vim name@Machine_1/file_1.txt It uses my .vimrc, plugins and everything is great. However, there is also a Machine_2 in the history, that can ...
3
votes
1answer
527 views

How does vim map keystrokes to hex values?

This question might be a little bit out of the ordinary for this site, but I want to better understand how vim works under the hood. I know that if I enter the hex value 0x01 vim will display it as ^A....
2
votes
0answers
228 views

Send SIGINT to iTerm from vim

I'm using vim-rspec on a mac with macvim and iterm. I'm using this command to clear the iTerm screen and run the test in iTerm. let g:rspec_command = "clear && rspec {spec}" let g:...
3
votes
2answers
831 views

When using bash or another shell from a buffer, how do I modify text?

Inside vim, I often use conque plugin, so I can run a bash shell inside a vim buffer. I also may try out VimShell soon. In conque, lets say I start typing some bash command, and before I enter it, I ...
13
votes
2answers
935 views

Detect neovim terminal from bash in bashrc

Does neovim set any environment variables that would let me detect from bash that the terminal is neovim? I want to change the behavior of my .bashrc if neovim is the terminal.
4
votes
1answer
322 views

Understanding :help set-termcap

I would like to define some mappings involving key combinations like <S-F1> or <A-d>. For example something like this: nnoremap <A-d> :echo "hello world!"<cr> However, on my ...
7
votes
1answer
431 views

Is it possible for Vim to output ANSI colors from the terminal, without a colorscheme?

Many terminal emulators allow you to define colors: Rather than trying to approximate (and duplicate!) the same theme in a Vim colorscheme, is there a way to tell terminal Vim to output ANSI escape ...
5
votes
0answers
241 views

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, the terminal title bar changes to show the ...
2
votes
0answers
56 views

How can I set tex filetypes to use plaintex solarized coloring

I use solarized for my terminal color. When I first create a new tex file and begin writing, I get the plaintex colorscheme, which I like. But once I save and reopen, I get the tex colorscheme, which ...
3
votes
1answer
508 views

How to read the exact command executed by the shell when sent from vim?

Sometimes, when I send a shell command from vim, I receive an error. For example, when I type the following command :!chmod +x shellescape("%"), zsh complains with : zsh:1: unknown sort specifier ...
3
votes
0answers
552 views

Wrong color-theme displayed

I recently saw this video about tmux and vim and instantly fell in love with the color theme used in the video. Luckily the presenter (Nick Nisi) provides a link in the video-description to his .vimrc ...
0
votes
0answers
247 views

Vim leaving behind character after saving with :w not sure why

I'm running into a weird behaviour where I'm editing a file and saving it with the :w command. The problem is it leaves behind the 'w' character after my line of edit. It doesn't do it all the time ...
2
votes
1answer
395 views

Can vimdiff show large files beyond screenful limits at once?

I'd like to diff large files in vim using the scrollback limit set in my terminal (which is available memory), so I can, if necessary, find and review previously applied changes. I use OS X's ...
0
votes
1answer
843 views

Why does vim create a new file when opening an existing file?

First and foremost, I'm using Arch Linux. I have a file dir/data.tex. I execute this command in terminal (when in the dir directory) $ vim data.tex I get the following output: "indent" [New File] ...
0
votes
1answer
334 views

Why is Vim echoing “Already only one window” when starting from terminal?

I am using Ubuntu 14.04. Recently I installed the solarized colorscheme for vim and the gnome terminal. After the installation I have noticed when I try to launch vim from the terminal, instead of ...
10
votes
2answers
286 views

Scrolling issues when the `wrap` option is set

I find myself dealing with this issue every time the wrap option is active (in my particular case whenever I'm working with markdown files). What happens is that, while scrolling up and down the ...
5
votes
1answer
2k views

What's the difference between the “clipboard” and “xterm_clipboard” features?

What is the difference between the clipboard and xterm_clipboard features? When do I need to enable one or the other at compilation time? As an aside, how do these features relate to the mouse ...
2
votes
1answer
106 views

Avoid junk in the console buffer on win32

When I run vim in a win32 console window, after I exit I end up with a bunch of junk on the screen - old command output, etc, because cmd doesn't clear line contents when scrolling down. I've included ...
1
vote
0answers
89 views

Molokai colors off in terminal [duplicate]

I've recently switched to the molokai color scheme and I've noticed that the colors look different than in gVim. I remember that I spent ages trying to get my terminal-vim to properly display the 256-...
1
vote
1answer
257 views

Compilation terminal output

When I compile and execute a c++ program in vim it outputs "command terminated" however when I compile it in geany (another ide) it outputs "segmentation fault". Is there a way to get vim to output ...
1
vote
1answer
622 views

vimrc contents selectively (i.e. highlight) ignored

This one beats me after 30 years of vi/vim usage... Context: I'm on FreeBSD using the latest vim (7.4.796). A month or so ago, syntax highlighting in xterm(318) started acting up. In particular, the ...
1
vote
1answer
598 views

Defining a custom rgb map for creating a color scheme?

Please excuse my ignorance, I'm probably missing something pretty fundamental here in regards to how 256 color terminals actually work with vim. I'm trying to create a custom color scheme for vim and ...
1
vote
1answer
378 views

Terminal in Mac OS X Yosemite gets messed up after exiting vim

This happens with either stock Yosemite terminal, or iterm2. When I exit vim, this is my terminal. As you can see, colors are messed up in my terminal after exiting vim and it doesn't come back ...
1
vote
1answer
4k views

How to set my terminal to use solarized palette? [closed]

I've set up cygwin on my PC, now I want to configure vim to use solarized color scheme. I'm following the github page: https://github.com/altercation/vim-colors-solarized. there's a section: ...
1
vote
1answer
1k views

solarized in xterm256(terminal.app) has wrong background

I using solarized in both terminal.app and vim, but in vim the background, airline and other things are not the color scheme's appearance which is different with MacVim. So how to deal with it? I ...
4
votes
1answer
929 views

Mapping control-H in insert mode doesn't work; it always works like backspace

I tried mapping control-H, J, K, and L respectively in insert mode to move around splits. inoremap <C-h> <ESC><C-W><C-h>i inoremap <C-l> <ESC><C-W><C-l&...
5
votes
1answer
748 views

:silent makes my vim go blank

When I used :silent to run a terminal command in the background, my vim screen goes blank, until I navigate through my code, at which point each line I move to reappears. What gives?
1
vote
1answer
489 views

Vim printing strange characters when hit “home”, “end” stc

Why vim keep printing strange characters when I hit non-characters key? Insert prints [2~ Delete prints [3~ Page Up prints [5~ Page Down prints [6~ Home prints OH End prints OF Arrow Up prints OA ...
2
votes
2answers
136 views

How to add a string to cursor point of gvim through a shell script

When gvim is opened it saves the cursor position whether it is minimized or not. So I'm curious whether it is possible to add a string starting from the cursor blinking position by running a shell ...
2
votes
2answers
91 views

How to map CMD+Alt alone to the command?

I am trying to map Cmd+Alt to start searching in vim (/). The only question is: how would I do this? I know to map Alt in vimscript is by typing <A> but I do not know how to do Cmd. I also want ...