vim (Vi IMproved) is a text editor supporting different editing modes.

learn more… | top users | synonyms

4
votes
1answer
263 views

vim auto complete custom list

I had these two questions about this function " how do I load a file into a list here? " set some variable func! CustomComplete() " and then read the variable here so that b:list = a \n split ...
3
votes
1answer
59 views

Expanding functionality of case switching commands in Vim

In my current work of refactoring a fairly large codebase, I find myself wanting to replace apostrophes and quotes with each other from time to time. Up until now I've been applying s/"/'/g for ...
2
votes
1answer
43 views

How to update a date in a file if applicable and increment the last digit by one if one writes to the file using Vim?

Aim The aim is to update a number in a file if one writes to a file using Vim. If the date resides in the file the date part should be left unchanged, but the last digit needs to be incremented by ...
2
votes
1answer
669 views

vim: hide status line in the bottom

Sometimes I work with really small terminal windows and need every piece of space available. So I want to hide the vim status line. I already set laststatus=0 this hides one of the status lines. But ...
2
votes
1answer
256 views

Auto indent C++11 lambda functions Vim

Is there any way to get Vim to auto indent C++11 lambda functions correctly? I have tried many different permutations of smartindent, cindent, etc. in .vimrc.
2
votes
1answer
339 views

How can I see moved lines in a file comparison with vimdiff / diff?

Moved lines are frequently annotated as deletes and adds but they can be shown as moved-from and moved-to instead. Like in this screenshot of Notepad++.
2
votes
1answer
331 views

Launch R code from within vim-r-plugin as separate window instead of inside tmux/screen?

I use the vim-r-plugin to write R code in vim. It is a nice plugin and I love that the plugin lets me run code directly from within vim. However, the R prompt is opened in a console which is ...
1
vote
1answer
22 views

Installing vim locally on a cluster: can't find syntax

Unfortunately, the school I currently work at has one of the wonkiest, worst-configured clusters I've ever used. And the IT department is totally incompetent and blames the users for basic issues. ...
1
vote
1answer
44 views

Vim auto line-breaking not working as expected (update: problem with neocomplete)

I'm trying to configure vim so that the text breaks automatically at 80 characters. I know the way to do this is with set textwidth=80 However, the lines don't automatically break when I typed ...
1
vote
1answer
57 views

My terminal is pure white // removal of the things spf13 has done to my Ubuntu

I have installed spf13 by using the command: curl http://j.mp/spf13-vim3 -L -o - | sh I didn't liked what I got, so I tried to get rid of it. I managed to get to my previous VIM configuration, but ...
1
vote
1answer
149 views

tcsh/vi-mode behavior difference between Solaris and Linux

We have both Solaris and Linux environments at work. We use tcsh as the standard shell for hundreds of users. My question is about vi-mode in tcsh: In Solaris, while I'm typing, I can backspace ...
1
vote
1answer
622 views

Vim colorscheme background not filling terminal

I am using vim with lxterminal, and the colorscheme kolor, and I am experiencing an issue where vim's background color does not fill the entire terminal. It can be seen clearly at the bottom of ...
1
vote
1answer
150 views

Vim paste string with non-ASCII characters

I am trying to paste a string from a register in VIM which contains non-ASCII characters such as Ctrlr, how can I paste this string into a file, but escape the non-ASCII characters automatically? ...
1
vote
1answer
87 views

Vim key binding to cycle through windows

How do I bind one single key to cycle through the windows? For example, each time I want to switch a window, I have to click ctrl-a (default was ctrl-c) then use arrow key up/down/left/right to ...
1
vote
1answer
120 views

Why is this copy/paste in vim configuration not working properly?

I have the following in my .vimrc vmap <C-c> y imap <C-p> <esc>P So that I can do my classic sortcut for copy/paste. It works fine on Cygwin but not in my ssh session to ...
1
vote
1answer
228 views

Modify .inputrc to fix Mac Terminal bug with vi mode

I currently have a bug in my Mac's Terminal (I actually use iTerm2 but it's still there), where once I press left arrow after typing, I can't go past the last character. Is there a way I can modify ...
3
votes
0answers
210 views

How do I use ctags functionality in vim with cscope installed?

When I install cscope by adding the line Bundle 'chazy/cscope_maps to my .vimrc file, my tags menu (g+[) is replaced with a cscope list, which seems to contain a list of files where the tag is called, ...
3
votes
0answers
1k views

ls and vim color on SunOS 5.8/Solaris 8

I want to use ls and vim with color on Sunos 5.8 SunOS 5.8 Generic_117350-11 sun4u sparc SUNW,Sun-Blade-2500 I have installed ls (GNU coreutils) 6.9 and vim 7.2 In ~/.cshrc: setenv TERM sun-color ...
2
votes
0answers
27 views

vim arrow keys insert mode mapping

I want to move the cursor without using arrow keys in insert mode too. I've tried the following: :imap <A-h> <Left> but after moving cursor left by Alt-H from insert mode I get back to ...
2
votes
0answers
33 views

Problem using Ctrl+Arrow keys in Vim when using Byobu with tmux

In Vim, I had set the Ctrl+Arrow keys to skip words. This works just fine when running Vim inside the gnome-terminal. However, when using byobu (tmux), it shows weird behavior : it deletes ...
2
votes
0answers
20 views

command-t plugin not working in vim

The command-t plugin is not working. When I press the <leather> + t, it gives me the error from the picture. Please help with this error. Thank you.
2
votes
0answers
146 views

Supress standard output in vim-latex-suite

I use Vim Latex-Suite together with the PDF reader Zathura. In the last versions of Zathura they decided to output the following warning: "warning: Failed to loads bookmarks" whenever a document ...
2
votes
0answers
139 views

Tmux is not able to distinguish between insert and shift-insert

Insert when in xterm, gives ^[[2~ and, Shift+Insert gives ^[[2;1~ All this is good until I start tmux. Note that the $TERM variable remains the same, so this issue should not be related to ...
2
votes
0answers
183 views

Vim - Cursorline turns on after saving a remote file

Using vim scp://.... I open a remote file. cursorline is not shown until I save the file(:w). When I type :w and enter password, cursorline appears.If I type :set nocursorline it disappears but again ...
1
vote
0answers
28 views

Neocomplete conflict with auto line-breaking in vim

I've found a conflict between automatic line breaks in vim and the neocomplete Vundle plugin. When neocomplete is off, then my set textwidth=80 option works correctly in that the a line break is ...
1
vote
0answers
39 views

visual mode/highlighting/selecting text on uzbl?

Is there a way to do a vim-like visual mode to select text with uzbl? Or any way to select text in uzbl with the keyboard? I installed arch-linux recently, and I haven't gotten my touchpad working. ...
1
vote
0answers
43 views

How to map emacs multi-modifier keys in vim?

I want to be able to map the multi-modifier keys of emacs in vim. I am trying this for exiting vim: imap <C-x><C-c> <ESC>ZZ However, this does not work.
1
vote
0answers
72 views

NERDTree don't create window on open when file is not saved

Is there a way to convince NERDTree to always hide editor window? Because when I open file and I have unsaved changes in previous one, NERDTree will open new window, so it is opened in split. I don't ...
1
vote
0answers
1k views

Terminal colors for Vim Airline and Tmux Tmuxline

When using Vim on its own with Vundle and Airline the theme appears normally: When I have loaded it up in Tmuxline, the theme uses different colors and even Vim looks different: Here's my Tmux ...
1
vote
0answers
2k views

YouCompleteMe not working after default install

I was trying to install YouCompleteMe with Vundle and it installed fine (it downloaded the git repository I pointed it to). I went into the folder and ran install.sh with the clang semantics and ...
1
vote
0answers
45 views

Open to specific gvim tabs

I have a working environment that I'd like to save via a script. -EDIT: I don't need to save it's state, I just want my script to define it. Though saving state would work too I guess. Currently it ...
1
vote
0answers
65 views

Blank lines of unknown origin when running vim after tput clear

I have a rather bizarre issue with terminal behaviour. If I execute tput clear to clear the screen, my cursor (as expected) goes to the top of the terminal. If I run vi after that (vim actually), ...
1
vote
0answers
106 views

Vim R plugin installation problem on Ubuntu in Android phone

There was another thread on vim-R-plugin but since it was bit old, I started this new thread. Also my situation is kind of different, since I am trying this on a mobile device, Samsung vibrate. I ...
1
vote
0answers
87 views

Using VIM, how do I remap directional keys from right hand to left hand?

This is the best solution I've seen so far: " Map Right Directionals to Left Commands noremap s h noremap d k noremap f j noremap g l " Map Left Commands to Right Directionals noremap h s noremap k ...
1
vote
0answers
293 views

how to focus different `regions`(Ctrl-a S) via mouse-click in `screen`?

When I start vim in a screen session, and activate the mouse: :set mouse=a the mouse remains disabled. I cannot switch tabs via mouse click. How can I configure screen so that mouse support in vim ...
0
votes
0answers
14 views

Glitch with auto chmod line in .vimrc

I found a useful line for my .vimrc file from here that makes any file beginning with #! on line 1 executable when I save it. Here's the line: au BufWritePost * if getline(1) =~ "^#!" | silent !chmod ...
0
votes
0answers
19 views

Where can I find good vim synonym-antonym dictionary?

Today I learnt that by using CTRL-X CTRL-T I can find a related word of current word from vim Thesaurus dictionary, which is amazing to me. I used the famous moby thesaurus from ...
0
votes
0answers
49 views

How to stop vim from inserting a new line when entering insert mode

Vim inserts a new line when entering insert mode. Obviously I find this frustrating. It happens in remote servers and locally on OSX in iTerm2. Here's my .vimrc: " Use the monokai theme set ...
0
votes
0answers
24 views

Syntastic, Vim & Android: get them play well together

I've got a problem configuring my development environment for android. I'm migrating away from Android Studio due to continious issues that I have no desire to solve anymore. I'm a long-time VIM ...
0
votes
0answers
32 views

How to generete allegro5 tags for vim with ctags?

I was recently working on project with GTK2 in vim (with OmniCppComplete plugin). so I generated tags with ctags -R --c++-kinds=+p --fields=+iaS --extra=+q --sort=yes /usr/include/gkt-2.0/ I did so ...
0
votes
0answers
37 views

Open an existing file in another tab/window while using gvim --remote-tab filename in one vim file.(Using Vim plugin script))

I am writing a vim plugin which maps a key to the function which opens and highlights the text in another file with the same text (if present) at the current cursor position in the current file. But ...
0
votes
0answers
48 views

Set Environment Variable for Ranger File Manager

I've recently stumbled across ranger file manager and immediately took a liking to it. However, there is still a problem I couldn't figure out the solution to: How is it possible to change environment ...
0
votes
0answers
91 views

Gvim terribly slow redraw

I am on the last Arch Linux distribution using gnome desktop. And it is nearly impossible to work with gvim. For example, using opening python files make a mess on a screen when I start opening ...
0
votes
0answers
37 views

View .deb package files in vim

vim is capable of reading compressed files (for common methods, at least). However, it sees Debian package files as binary gibberish. The Archive Manager tool can, however, open package files and show ...
0
votes
0answers
190 views

Folding in vimrc does not work as expected

I added these to my vimrc: set foldenable set foldmethod=syntax set foldlevelstart=1 let javaScript_fold=1 " JavaScript let perl_fold=1 " Perl let php_folding=1 ...
0
votes
0answers
156 views

Vim FoldColumn color different on Debian / Ubuntu

I sync my .vimrc file between two machines, one running Debian testing and the other Ubuntu. On Debian everything works fine. On Ubuntu, the fold column is gray instead of black, even though black is ...
0
votes
0answers
95 views

Disable mouse scrolling in vim with tmux

I'm experiencing the same problem as in this Q&A titled: disabling mouse support in vim in a gnome-terminal environment, where it was found (in the comments for the top answer) the problem wasn't ...
0
votes
0answers
114 views

How can I enable mouse in Vim?

How can I use mouse with panes in vim? I tried :set mouse=a but it does not seem to work when doing :sp or :vsp or vim -O
0
votes
0answers
93 views

Installing cppman

I've tried to install cppman in Fedora 19 or Linux mint 15 and it installs successfully. But when I try to use it I get the error: Python IOError: [Errno 13] Permission denied I've installed it in ...
0
votes
0answers
40 views

screen flashes when I press ^S in gvim

I bind ^S in gvim, by: map <C-S> :w<CR> Now if I press the ^S combination, althrough file is saved (I saw the XXX written message), but gvim window flashes, is there a way to avoid that? ...