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
6 votes
1 answer
5k views

Change cursor shape in different terminals

At home I use iTerm2 on MacOS X, and at work, I have a laptop with CygWin. I have another PC where I use gnome-terminal or terminator, and sometimes I use tmux. I'm looking to configure the cursor ...
Aaron Shen's user avatar
  • 2,439
1 vote
1 answer
512 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 ...
gemantzu's user avatar
  • 163
1 vote
1 answer
2k 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 ...
Vonfry's user avatar
  • 195
2 votes
1 answer
168 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 ...
Random832's user avatar
  • 1,192
8 votes
1 answer
2k 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&...
matts1's user avatar
  • 181
7 votes
2 answers
1k views

Clipboard sharing broke under MacOS X

I'm using (roughly) the same config for my mac and my ubuntu machine. I use set clipboard=unnamed,unnamedplus To conveniently share vim's clipboard with the system clipboard. However, lately the ...
DeX3's user avatar
  • 393
28 votes
3 answers
15k views

Can the split separator in vim be less than a full column wide?

I use a tiling window manager (awesome) + a terminal multiplexer (tmux) + splits inside of vim. I have no window decorations at all, so there is no visual split between them at all if the content of ...
Caleb's user avatar
  • 2,215
8 votes
2 answers
1k 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?
Costa Michailidis's user avatar
1 vote
1 answer
808 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 ...
Mas Bagol's user avatar
  • 507
4 votes
2 answers
1k 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 ...
still_dreaming_1's user avatar
2 votes
2 answers
148 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 ...
ikisuru's user avatar
  • 23
2 votes
1 answer
5k 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: ...
Aaron Shen's user avatar
  • 2,439
12 votes
3 answers
4k 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" <...
iProgram's user avatar
  • 1,569
3 votes
3 answers
170 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 ...
iProgram's user avatar
  • 1,569
79 votes
8 answers
80k views

How to map Alt key?

I'm trying to map Alt key in the following way: :map <A-j> j :map <A-k> k but it doesn't work (bell is rang on Alt + j/Alt + k). What am I missing? I'm using Terminal on OSX, the same ...
kenorb's user avatar
  • 17.7k
1 vote
1 answer
2k views

Linespace in Vim using iTerm2

I am using Vim 7.4.488 in iTerm2. Currently I've configured the 'linespace' setting in iTerm2's preferences. However, I would like to set a different linespace for Vim. I know that :set linespace=1 ...
Jeroen's user avatar
  • 13
4 votes
2 answers
4k views

I can't get 256 colours to work with Vim in iTerm2 on MacOS X

I am having a rough time getting the colors right with my vim setup and the color scheme I want to use. Using: OSX 10.10.2 Vim 7.4 iTerm2 (Set to report terminal type as "xterm-256color") gruvbox ...
Scott's user avatar
  • 143
13 votes
9 answers
33k views

Colorscheme's background not correct in terminal

I imported the solarized colorscheme and palette. My terminal has the correct colors and background, gvim has the correct colors and background, but vim has an incorrectly colored background. The text ...
Oberdiear's user avatar
  • 191
42 votes
3 answers
14k views

Can I use a non-monospaced font in either Vim or gVim?

Is there any way to use a non-monospace font in either vim or gvim? I tried changing the font for gVim with: :set guifont=Dejavu\ Serif\ 12 But this gives me some rather ugly results: I get the ...
Martin Tournoij's user avatar
53 votes
5 answers
21k views

Can Vim interpret terminal color escape codes?

Many CLI programs output nicely-highlighted text. While most of them check if the output is going to a file, some include the terminal escape codes. I like the output with the escape codes, but ...
beatgammit's user avatar
  • 1,213
24 votes
2 answers
8k views

Prevent Vim from clearing the terminal after exit

If I do: $ less file And press q to exit less, I stil see the same text as I had on the screen when less was still running. However, if I do $ vim file And :q, my terminal is blanked... ...
Martin Tournoij's user avatar
40 votes
5 answers
5k views

Terminal borked after invoking Vim with xargs

I've sometimes tried invoking Vim using xargs, like this: find . -name '*.java' | xargs vim … which kind of works: As Vim launches, I see the following warning flash briefly: Vim: Warning: Input ...
200_success's user avatar
  • 9,209
16 votes
2 answers
4k views

Tmux is changing part of the background in vim

This only seems to happens when using vim inside of tmux. I'm also using iTerm 2. If I create a new tmux pane or resize a tmux pane, it immediately looks like the this: And then the only way to fix ...
aharris88's user avatar
  • 1,817
23 votes
3 answers
14k views

Scroll the screen, not the cursor, when using scrollwheel

I'm using Vim in a terminal, so scrolling with the scroll wheel uses the \e[A and \e[B syntax (where \e symbolizes \x1b, or escape). However, Vim interprets this by moving the cursor up or down a ...
Doorknob's user avatar
  • 14.6k

1
5 6 7 8
9