Questions tagged [vim]

Vim is an open-source text editor with a steep learning curve that leads to high efficiency in many tasks related to text edition. If you wish to start with vim, try to run “vimtutor”, which will teach you basic commands.

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

Can't find font as regular user

As a root, I can run gvim with my font selected as 'Ubuntu mono 14' and have everything work correctly. But as a regular user using the exact same config file selecting the exact same font, I get this:...
  • 111
0 votes
1 answer
478 views

Mobaxterm vs vim text copy

Can I somehow copy text between two vim sessions in 2 different terminals? I use mobaxterm and can not scroll while marking text that I want to copy. How can I do it? Edit 2 files on 2 different ...
0 votes
1 answer
113 views

Why can't I edit IIS XML configuration files with gvim on Windows 10?

When I try to open C:\Windows\system32\inetsrv\config\schema\IIS_schema.xml for example on Windows 10 Pro, build 20H2, I can always open it in notepad, but if I open it in gvim (a real editor) it ...
  • 4,859
0 votes
1 answer
119 views

Always hung on Vi, vim, but not nano when using company VPN

I have a strange problem. IT changed the VPN to a newer Cisco device. After connecting to the VPN, I can ssh to one of our corporate server. I can ls, cd, cat, sudo. BUT if I tried any editing using ...
1 vote
1 answer
425 views

When root opens crontab Vim is used although Nano is set as the default editor. Why might this be?

Environment: CentOS 8 Question: When I enter sudo crontab -e it opens in Vim. However Nano is set as the default editor and for every other type of file it is used as expected. Why might this be? ...
2 votes
0 answers
91 views

how changing the default editor via puppet

I'm trying to find the best way with Puppet to change the default editor on all machines(Ubuntu & RedHat) so that any user is constrained to use a type of editor. And to keep it possible to change ...
  • 21
0 votes
2 answers
3k views

Debian 10 Unable to install vim, terminator

Today I noticed that Debian 10 is released, however, I am unable to install terminator and vim as the packages are not found. sources.list was set to cdrom, but I changed it to network http://deb....
0 votes
1 answer
667 views

How to instal vim using salt stack?

I have salt-stack maser and minion servers which running on centos7. I want to install vim package in minion server. For that I have created srv directory and vim.sls file under etc. My vim.sls file ...
  • 223
2 votes
1 answer
60 views

FreeNAS prevents writing to VIMs .swp file

Our developers recently updated to the latest version of vim and sense then when they edit files from the network share hosted on a FreeNAS server, they eventually cannot write the file, as the .swp ...
  • 3,871
2 votes
3 answers
1k views

SSH access denied when 'authorized_keys' file is created with Vim

I created an ec2 instance with an Ubuntu 16.04 AMI. I created a sudo user for this AMI with: sudo adduser myuser sudo usermod -aG sudo myuser Then I attempted to give the user ssh access with an rsa ...
user avatar
0 votes
2 answers
2k views

Can't open file /usr/share/vim/vim73/syntax/syntax.vim

Whenever I use vim command, I get this error: Error detected while processing /Users/boss/.vimrc: line 6: E484: Can't open file /usr/share/vim/vim73/syntax/syntax.vim Press ENTER or type command ...
0 votes
2 answers
999 views

Installing blowfish2 for use in VIM on CentOS 7

I'm moving from a Debian-based distro to CentOS 7. I have files encrypted with blowfish that I edit transparently in VIM with this setting in ~/.vimrc: :set cryptmethod=blowfish2 This is the error ...
  • 2,510
3 votes
1 answer
447 views

Vim hangs on one specific file?

My putty session keeps on hanging when I'm in the middle of editing a file in vim. This has happened three times this morning. Hopefully it's nothing, just a glitch in the matrix somewhere, but I ...
  • 1,046
1 vote
1 answer
273 views

cannot access .log file in Ubuntu

pertinent parts of python script that creates/writes log files def kill(fullpath,typ): #add check to assure .recycle!!!! if any(check for check in requiredChecks if check in fullpath) and typ=...
  • 279
0 votes
1 answer
422 views

Is it possible to remove the SSH delay in order to work with VIM through it?

I'm trying to write programs using VIM on a remote server. The server is necessary because I'm in a system without VIM (iOS). When I connect through SSH, there is a visible delay of 200~600ms, which ...
  • 1
0 votes
2 answers
727 views

Edit a remote file in Vim with sudo when ssh root login is disabled

I am trying to determine a way to edit remote files in Vim that require sudo, but still use my local vim config and plugins. Currently I can open vim and :e scp://me@server//some/root/file and make ...
1 vote
0 answers
129 views

CentOS-Like configuration of Vim on Ubuntu

Whenever I use a CentOS System, there's always a pleasant configuration of vim which mainly does the following: Remembering position of closed files Colour mode (!!!) Bash has colours There's lots ...
1 vote
1 answer
840 views

How to prevent users from renaming files while providing write permissions on Linux [closed]

For some special purpose, I want to prevent non-root users of the Linux Server from changing/renaming the filenames. However, they can modify and write to the contents of the file. How to do this from ...
  • 123
3 votes
1 answer
2k views

Creating a global Vim configuration, including separate configuration files for plugins?

I use Arch Linux (ARM, but irrelevant) on a server machine, and I want to create a global configuration for Vim, based on my current personal configuration. I have already moved my ~/.vimrc to /etc/...
0 votes
1 answer
432 views

Nerdtree, Rake 'require' cannot load file error

Gents, When trying to install NERDTree, I get the following error, suggestions? Running from an AWS Amazon linux ami: drwxrwxr-x 2 ec2-user ec2-user 4096 Apr 2 10:33 autoload drwxrwxr-x 2 ec2-...
  • 707
2 votes
2 answers
1k views

Puppet and Vim fighting over Ruby version

I have installed puppet 3.0.1 from the .dmg from puppetlabs. If I remove ruby 1.9.3, puppet works, but other things like my vim install (dependant plugins) do not. According to http://docs.puppetlabs....
  • 223
6 votes
1 answer
3k views

Vim SCP parameter with private public key pair

Currently, I am trying to edit a file on a remote server using Vim's built-in netrw plugin. I can SSH fine into my Amazon EC2 server using a command like this: ssh -i <keyfile> bitname@<ec2-...
1 vote
2 answers
5k views

Why can't I change the mode of /proc/sys/kernel/pty/max even when I am root?

Since pty is limited, I want to modify the content of /proc/sys/kernel/pty/max. The original value in max is 4096, and now I want to modify it to 10000. [root@home pty]# pwd /proc/sys/kernel/pty [...
1 vote
1 answer
151 views

Vim Doesn't Source All Commands In auto-command Group

I have a vim auto-command group that looks like this: augroup filetypedetect_wiki au! au! FileType vimwiki iabbrev cfo %% TODO {{{1<esc>hhhhhhhhveh au! FileType vimwiki iabbrev cfc %...
  • 549
0 votes
1 answer
573 views

How do I detect and possibly change the encryption algorithm used by Vim's "encrypt" mode? [closed]

I'd like to start using "vim -X" to store encrypted text files. This is a nice introduction on how to do it: http://www.techrepublic.com/blog/security/vim-offers-strong-file-encryption-with-blowfish/...
3 votes
2 answers
1k views

Setting a default vim filetype for syntax highlighting

How do I tell vim to automatically use a particular filetype (usually for syntax highlighting) when none is detected?
  • 39k
24 votes
5 answers
14k views

How to set vim filetype when editing nginx config files

When I open vim for a file like /etc/nginx/sites-available/default, syntax highlighting works fine. But then if I create my own file /etc/nginx/sites-available/myapp, vim does not highlight its syntax....
2 votes
1 answer
1k views

strftime returning time for wrong timezone

I'm trying to get "dts" to echo the current local time in vim (cygwin under Windows 7) byt the output is GMT+1 instead of the localtime (GMT-7). My abbreviation works fine on other machines, but I can'...
  • 141
-1 votes
2 answers
105 views

I need a popup help file for Vim [closed]

Is there some kind of plugin or mode that can be used to display some help for commands? I am increasingly finding nano inadequate. I want to be come a hardcore Vim and Emacs user.
  • 1,592
3 votes
1 answer
3k views

disabling specific byobu/screen keybindings that conflict with vim keybindings

ctrl + a under byobu has either emacs mode or screen mode. However, I need keybindings like ctrl + a for vim's "increment value" method. How would I prevent byobu/screen from blocking certain keyboard ...
  • 31
1 vote
2 answers
1k views

Split large sql file by location of string OR start sql from last fail

I have a 15GB sql file which is a backup of a database. The problem I have is that half way through it, it failed. Luckily, I know which table to pick up from. Is there a way I can split this SQL ...
  • 829
-1 votes
2 answers
130 views

vim create one's own syntax configuration file [closed]

I'm trying to create my own syntax configuration file for vim. I have then created a ~/.vim/filetype.vim file with the following content: augroup filetypedetect autocmd BufNewFile,BufRead *....
  • 2,233
3 votes
1 answer
1k views

Linode Lish Shell Vim and Nano rendering troubles: lines not appearing / cursor positions wrong

I'm using a linode VPS and I just cloned one of my servers to my development server as I've done many times before. As usual SSH is inaccessible until /etc/network/interfaces is correctly updated. I ...
1 vote
1 answer
1k views

Automate user quotas for edquota to bypass vim [duplicate]

Possible Duplicate: Setting up disk quota on ubuntu for multiple users When assigning user quotas, one has to use edquota. However, this brings up the vim editor. Is there any way to bypass this. ...
  • 285
2 votes
2 answers
9k views

How do I enable characters like [Æ, Ø, Å] in PuTTY/Debian?

I'm using VIM through PuTTY to work on my development server, but it gets rather difficult when I have to work on files containing characters like those mentioned in the title. Not only does it make ...
  • 1,118
10 votes
5 answers
22k views

How to enable color in Vim over SSH? [closed]

I have two remote servers: Server 1: Linux 2.6.18-238.12.1.el5PAE i686 / VIM - Vi IMproved - version 7.0.237 Server 2: Linux 2.6.18-338.19.1.el5.lve0.8.36 x86_64 / VIM - Vi IMproved version 7.0.237 ...
  • 2,733
0 votes
3 answers
919 views

Vim and Solaris Express 11 - Unable to Backspace

I've just installed Solaris 11 Express, and I can't for the life of me work out how to get vim to backspace correctly. The backspace key works fine at the normal console. However, under vim, it ...
1 vote
1 answer
155 views

vim uses /tmp for shell functions

When vim uses the shell given a colon !command, it does so through the /tmp filesystem. How do you force vim to use ~/.vim/tmp/ instead? It also uses /tmp for help files when zcat is required to read ...
  • 1,281
0 votes
2 answers
1k views

256 Color Issue when using GNU Screen inside GNU Screen

When I have a SSH session in GNU Screen to another machine on which I'm also using GNU Screen, 256 colors don't seem to work. The $TERM is still set correctly. However, if I run Vim, the theme does ...
  • 3,093
1 vote
2 answers
123 views

Some copied files have additional blank lines

In the process of comparing files between 2 versions of an application i've noticed that a number of files seem to have gained additional blank lines throughout the file. These files were never ...
  • 990
2 votes
3 answers
1k views

How paste text from firefox to GVIM on ubuntu11?

I found that I can not paste text to GVIM from firefox or other editor, anyone can tell me how to set my GVIM(GNOME) on Ubuntu11 ?
  • 4,017
12 votes
2 answers
7k views

How to tell Vim to extend the background color to the whole screen?

I have an issue with the Vim color schemes: The background color does not fill the whole screen. For example, in the "blue" color scheme the whole screen should turn blue. Instead, the blue background ...
  • 1,063
19 votes
12 answers
2k views

What language for starting on Linux? [closed]

I am about to begin a 4-year information security degree at Purdue. The degree does not call for any programming courses. So the only time I will be able to take one is the occasional elective. So ...
  • 191
3 votes
1 answer
397 views

Command output in vi editor

I open a text file using vi editor in linux and want to insert date command output without exiting vi editor. What is the trick? Thanks
  • 866
1 vote
2 answers
2k views

Lighttpd broken when serving from Virtualbox shared folder [closed]

I've got a lighttpd web server set up on a Debian 6 guest in Virtualbox 4. I've got the www directory in a virtualbox shared folder, so that I can develop a website in the Windows host. My problem is ...
1 vote
1 answer
251 views

Some keys not working under screen in vim

When using vim under screen, some keys are not working. Namely, Pressing Alt-Left produces '3D' and Alt-Right produces '3C' Also, pressing Up/Down when scrolling list of files in Command-T plugin ...
  • 297
1 vote
1 answer
557 views

Telnet hangs with vim [closed]

I'm starting to use telnet for remote access and control of others windows pc. The problem that I'm facing is that when i start the VIM program the telnet session hangs and it doesn't respond to any ...
  • 181
0 votes
4 answers
9k views

Vim how to change the cursor from char block to pre pipe/line [closed]

Not sure what the terminology is for it but on Vim the 'cursor' is always like an insert/replace cursor instead of the blinking line cursor I'm used to in other gui editors. Is there any way to change ...
1 vote
2 answers
465 views

Remote editing with diff / patch?

I do most of my work in vim. I much prefer to edit files using vim locally rather than sshing into a server and running vim there, for many reasons, one of the most important being UI responsiveness ...
  • 425
8 votes
2 answers
1k views

When using vim with screen the keys ctrl + right and ctrl + left don't work

In the last days i became very addicted of using the combination terminator (in full screen) + screen + vim. But i'm having problems with the ctrl + right and ctrl + left key mappings, they are ...