Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor.
2
votes
0answers
56 views
Vim upside down question marks on whitespace
I've installed spf13-vim on my Vagrant machine with Ubuntu.
The issue is that when I log into Vagrant with vagrant ssh and run Vim then I get all these upside down question marks on either making a ...
2
votes
0answers
67 views
Vim noremap still causes old mappings to be active
This is my .vimrc
set mouse=a
set ttymouse=xterm2
set number
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
inoremap { {}<Left>
inoremap {<CR> {<CR>}<Esc>O
...
2
votes
0answers
66 views
Abort a vim paste
Sometimes I paste a lot of data into vim (>5000 rows) and forget to enable paste mode. In that case, vim is busy for several minutes, trying to correctly indent all the text (which gets REALLY bad ...
2
votes
0answers
212 views
Why is my tcp window size going to zero when using VIM over VPN
I use a mac os laptop over a typical (i.e. crappy) wireless home network and connect to work over a VPN. I ssh into the linux (ubuntu) desktop I have in my office at work. (When I say, "I ssh": I ...
2
votes
0answers
124 views
VIM reverse wildignore
Is there a way to specify a reverse 'wildignore' parameter in vim?
Basically, I want to ignore every folder except 'x', 'y', and 'z'. My use case requires me to be in a folder with many many ...
2
votes
0answers
208 views
Vim cursorshape in OS X Terminal
I compiled vim 7.3 with +cursorshape and added the following to my ~/.vimrc:
set t_SI = "\<Esc>]12;purple\x7"
set t_EI = "\<Esc>]12;blue\x7"
but Terminal.app still displays the same ...
1
vote
0answers
27 views
vim fortran indentexpr issue
Strange issue here with getting indentexpr=FortranGetFreeIndent() to be set correctly.
The first time I open a file (free form, of course), say new.f90, :set gives
:set
--- Options ---
autoindent ...
1
vote
0answers
33 views
Vim, how to avoid :set cuc side effect of setting column number
Possibly this is a bug, but I'm not sure. Through user fow in #vim on freenode, I've confirmed no side effect in 7.3.409, but there is a side effect in 7.3.547 (the version on my computer.)
The ...
1
vote
0answers
55 views
backspace not working properly inside vim comEmu
When I start vim from inside conEmu, then backspace is not working properly. I know its not a conEmu issue. It's a vim problem with console. I tried all things like
stty erase ^H, stty erase '^?', ...
1
vote
0answers
30 views
Is it possible to use Vim plugin CSExact with iTerm2?
I'm a bit anal about my color schemes, and in order to get really nice colors in Vim, I'm trying the CSExact plugin. I'm not sure if it's supposed to work at all in iTerm2 though? My terminal is set ...
1
vote
0answers
113 views
opening vim in tmux, i've got fonts in bold
So I've got a problem, when opening vim in tmux, all fonts become in bold.
my in configuration i have: set t_Co=256. Even when this being set to 8, some bolding disappears, on some keywords. I'm ...
1
vote
0answers
63 views
Vim PHP ctags for $['array'] C+]
So far I have this (Which is sufficient enough for me at the moment):
ctags -R --languages=php --langmap=PHP:+.tpl --tag-relative=yes --PHP-kinds=+cf
However, I still can't press "C-]" when I want ...
1
vote
0answers
116 views
Make vim plugin Syntastic mark more than the first error in php
I'm using vim on mac (both command line & MacVim) and installed the syntastic plugin for syntax error checking. I'm now using it and its standard php syntax_checker for php coding, but if there's ...
1
vote
0answers
35 views
How to make vim change a date when a section of a file was edited?
I'm using latex as a diary with sections for each subject. I manually add date of creation and modification to each element of text (section, subsection, subsubsection, ...). Is there a way to make it ...
1
vote
0answers
127 views
Vim digraphs is not working
I've tried to input digraphs in Vim (without vi compatibility), and unfortunately I can't. After using ControlKP * it should input big greek pi letter. I've also tried using PBS * with :set digraph, ...
1
vote
0answers
87 views
Convert vim syntax highlighting for use with gedit
Is there an easy way to convert vim syntax highlighting definitions for use with GtkSourceView/gedit?
1
vote
0answers
170 views
Weird rendering artefact in vim (terminal, not MacVim)
Running Mac OS X, using either Terminal.app or iTerm2, there is a strange artefact with the character rendering that I have a hard time explaining and an even harder time understanding. I'll start ...
1
vote
0answers
47 views
How do I edit files in the console when connecting to windows 7 via ssh?
I am using tunnelier client and server to connect to a windows machine. I can get in and have access to all of the files on the computer. I have vim installed on that windows machine, but I can't seem ...
1
vote
0answers
309 views
Encoding over SSH Issues
I have a Linux machine and a Windows machine, both using Vim with the Powerline plugin. They both work great with patched fonts. Next, I want to SSH onto an OSX 10.6 machine and also use the Powerline ...
1
vote
0answers
160 views
bash vi key bindings: Can I map keys? Display mode (insert vs command)?
I am a long time vi(m) user and recently made the switch to using vi key binding in bash. I can already tell that this will be an improvement, but I would like to customize a few things to really ...
1
vote
0answers
70 views
MacVim crash with Gundo
Every time I invoke gundo MacVim crashes with the following error.
Vim: Caught deadly signal SEGV
Vim: Finished.
It works fine in Normal vim but I am not sure what the problem is I built the app ...
1
vote
0answers
44 views
Vim creates strange output when navigating up or down in Amazon EC2 Ubuntu
When navigating up or down in Vim whilst ssh-ed into an Amazon EC2 Ubuntu instance, strange output appears at the bottom of the screen.
-I think the right-most info (e.g. 2,0-) is indicating cursor ...
1
vote
0answers
63 views
MacVim does not open new windows
This happened right after I removed some folders on my system ruby, the more I have reinstalled the xcode. But even so, it opens new windows, only the icon appears and the toolbar of the software. I ...
1
vote
0answers
338 views
Why does git difftool not work with vimdiff?
I just set up git and set git mergetool to vimdiff and it works as expected.
If I set git config --global diff.tool vimdiff
it behaves strangely:
git diff x y will open less and display the changes ...
1
vote
0answers
162 views
How can I set a particular shortcut key for an item in the Windows 7 Explorer right-click context menu?
For me, this issue is specific to opening files through the context menu with gVIm, but it probably applies to more general situations too.
In particular, I want to get gVim to open a file with a ...
1
vote
0answers
404 views
Snipmate + Pathogen + Git - Custom Snippets don't work on Windows
Here is my setup:
My .vim directory is under source control with git
I use Pathogen for managing my plugins
My SnipMate plugin is a git submodule under .vim/bundle/snipmate
This means I can't ...
1
vote
0answers
71 views
GNU screen session dies when I open vim or vi
Sometimes it dies in the moment a file is opened. Sometimes it allows me to browse the same file and dies on tenth PageDown, for example. I set "term xterm" in .screenrc.
1
vote
0answers
254 views
Is anyone using pysmell for vim with luck?
I'm trying to get pysmell (https://github.com/orestis/pysmell) to work - looks like a nice code completion tool for django development in vim.
I'm on Mac OS X 1.7.1 (Lion) with MacVim 7.3 (snapshot ...
1
vote
0answers
223 views
How do I enable word wrap in all open splits?
I am using vimdiff to compare three files side by side. How do I enable word wrap inside all three splits without having to switch to each and issue :set wrap three times? I would rather not have word ...
1
vote
0answers
428 views
vim does not preserve symlink over sshfs
I'm having some trouble with symlinks and sshfs. I use the '-o follow_symlinks' option to follow symlinks on the server side, but whenever I edit a symlinked file on the client side with vim, a copy ...
1
vote
0answers
345 views
Vim mapping acts different when switching between Mac OS X/Linux
I've been working with Vim on two different machines, one running Ubuntu 10.04 (gVim) and the other Snow Leopard (MacVim). I copied my .vimrc file and .vim folder to both, and noticed a few minor ...
0
votes
0answers
31 views
SQL Completion Tutorial on vim
I'm attempting(!) to start the sql completion tutorial on vim:
I've created the empty file tutorial.sql
I enter insert mode ok (press i).
Then I need to hit <C-C>s which I assume is ...
0
votes
0answers
10 views
Open file as administrator using NERDTree
If I ever need to play around with any read-only files in C:\Program Files\ then currently I open gvim in administrator mode and then make the changes and then leave (quickly).
Is it possible to not ...
0
votes
0answers
18 views
Vimscript: Unable to run python script that imports win32 library
I am writing a vim plugin in python that fails when importing the python library "win32com.client". The following reproduces it:
myplugin.vim:
pyfile [path to python file]
python file:
import ...
0
votes
0answers
25 views
Use zsh completion in vim instead of vim one
I like zsh completion where for example I can write f/o/fTab and get folder/other_folder/file.txt (I'm not sure, it's possible feature of oh-my-zsh, not zsh, but it seems that it doesn't matter)
Also ...
0
votes
0answers
31 views
Vim display invisible characters
I am trying to display invisible characters in Vim by the following in my vimrc
set list
set listchars=tab:▒░,trail:▓
But every time it shows me the wrong characters. I have encoding=utf-8. I set ...
0
votes
0answers
32 views
VIM - Only last line updates with scroll?
Searched around and couldn't find anything but cheat sheets for commands, perhaps my Google-fu is lacking these days.
Any guidance here is much appreciated. I've never seen this before, not sure what ...
0
votes
0answers
43 views
Vim only takes up half the screen in tmux
When I run vim in tmux, it only takes up half the screen (usually the left half). I would like vim to use up the whole screen, but don't know how. Tmux still seems to consider the entire screen as ...
0
votes
0answers
28 views
How can you view source and keep Vim commands enabled in Vimium?
When I view source using Vimium, it disables the Vim commands.
Ideally would like to keep the commands active so that I can search the source code using regex and avoid having to switch back to the ...
0
votes
0answers
41 views
vim: error searching large tags file
I have a rather large tags file (over 800M) generated from a code tree. When I do ":tj /bla", vim always give me
E431: Format error in tag file
followed by
E426: tag not found
If I use the ...
0
votes
0answers
35 views
Make Notepad++ break lines like vim, with lf and comment continuation
I was trying to use notepad++ to edit a Perl file, after working with vim (in Windows but under the Cygwin environment). Now, vim has a pretty useful feature: If I set a wrap-margin (e.g. :set wm=1) ...
0
votes
0answers
64 views
Can not bring a background running vim to foreground?
If I have a vim running in the background, it seems that I can not bring it back to foreground. Do you have any idea, why?
0
votes
0answers
23 views
Vim “:set cindent” filters commas from the document
With or without a specific document language, whenever "cindent" is set on vim, no comma can be typed or even pasted on the document.
I got a "non-us-standard" keyboard (pt-latin).
0
votes
0answers
56 views
Vimdiff functionality in Sublime Text 2
I wanted to know if it is possible to have a vimdiff like functionality to check for diff and have synchronized scrolling of two (or more) files in Sublime Text 2 just like vimdiff?
Thanks
0
votes
0answers
74 views
vimperator j/k different scroll?
Like Vim, vimperator use j/k to scroll up and down. It's too slow by default so I need to remap them.
nnoremap k 5k
nnoremap j 5j
What surprises me is that the lines that are scrolled are not ...
0
votes
0answers
83 views
ubuntu:terminal+ssh+vim, resize
Background:
OS:ubuntu 12.04
Display: two, one is laptop, and another is a extended monitor, which is bigger.
Problem:
Open a gnome-terminal in the bigger display, and log on the remote Linux ...
0
votes
0answers
123 views
Home and End keys doesn't work in vim inside tmux
I can't use home and end keys in vim, when in Tmux. I've got this strange stuff:
H
F
H
sample text
my .tmux.conf:
set-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g ...
0
votes
0answers
72 views
fix terminal vim colours (on focus lost)
When setting up Ubuntu 12.10 64bit (with gnome-terminal 3.6.0) I noticed that my vim colours mess up in the terminal as soon as the terminal loses focus. Everything is fine when using < C-z> and ...
0
votes
0answers
41 views
Bad results using hunspell with vim
I'm having the same problem as someone asking on a mailing list here.
When using hunspell with vim :mkspell, I get quite bad results, since it does not recognize composed words.
Is there any trick I ...
0
votes
0answers
57 views
Vim plugins not working on Mac OS X in terminal?
I am trying to use the EasyMotion plugin in vim but for some reason it's not working. I remapped my leader key to , but whenever I press ,w, it just moves forward one word i.e. it seems like it's not ...