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.

Vim is a highly configurable text editor built to enable efficient text editing. It is an improved version of the vi editor distributed with most UNIX systems.

Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.

Visit the home page of vim or visit the Official Vim Tips Wiki.

95 questions
3
votes
2 answers

Languages in vim editor

How to insert copy-paste a hindi language word from web pages to vim editor.When i do it now it says "..... . ....." What is the settings that has to be changed in vim editor to do this Thanks..
Hulk
  • 391
  • 1
  • 6
  • 17
2
votes
0 answers

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 editor for its own use. The goal, avoid the message…
nerabis
  • 21
  • 2
2
votes
1 answer

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 file throws them a read only type of error. I…
Jason
  • 3,931
  • 19
  • 66
  • 107
2
votes
3 answers

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 keypair that I already had. I created an .ssh…
user393947
2
votes
3 answers

VI Editor on Ubuntu using VIM Short Cuts?

I installed Ubuntu and I tried to use the terminal's vi editor. The editor is using a different set of short cut keys that I'm not familiar with. Someone told me it's probably using the VIM short cut keys. How do I make it use the normal vi short…
John
  • 7,343
  • 23
  • 63
  • 87
2
votes
2 answers

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.com/guides/platforms.html#ruby-versions 1.9.3 is…
devians
  • 223
  • 2
  • 7
2
votes
1 answer

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't get it to work on this one. The abbreviation…
Logan
  • 141
  • 7
2
votes
2 answers

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 VIM look like this Denne applikasjonen krever…
Hubro
  • 1,138
  • 4
  • 16
  • 35
2
votes
3 answers

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 ?
larry
  • 4,037
  • 9
  • 36
  • 42
2
votes
2 answers

Scrolling? ~ Vim ex mode

Feel free to point me to the appropriate documentation for this. When in ex mode ( Q ) and entering numerous commands, the file scrolls up to where you can't see what you're working on. Are there key bindings for scrolling the visible file while in…
Bubnoff
  • 415
  • 7
  • 18
2
votes
3 answers

Most elegant way of ssh copying a file to a remote host, then executing it

I find myself performing this REPL-like action quite often: vim foo.sh scp foo.sh host:/tmp/foo.sh ssh host /tmp/foo.sh # realizing it wasn't quite right vim foo.sh scp foo.sh host:/tmp/foo.sh ssh host /tmp/foo.sh # repeat many times I was about to…
mbac32768
  • 858
  • 1
  • 7
  • 13
1
vote
1 answer

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=='file': os.remove(fullpath) …
dan
  • 279
  • 1
  • 4
  • 15
1
vote
3 answers

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 changes, but when I try to write it, I of course…
1
vote
0 answers

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 more, just not something i can recall on the…
code ninja
  • 187
  • 1
  • 8
1
vote
5 answers

Vim Configuration for Server-Side Editing

I always use Vim on our servers (mostly Ubuntu based) and I always lack a good configuration that suits vim over SSH without too much frills. I'd like to gather as much as possible configuration settings for someone who writes mostly bash, zsh and…
kolrie
  • 235
  • 3
  • 12