Tag Info

Hot answers tagged


Since the -exec {} arguments must come after the -iname (since find 'executes' its arguments from left to right), you can't do what you want using an alias. Instead let your alias invoke a script containing for instance: #!/bin/sh find . -iname "$1" -exec vi {} \; Note that this will invoke vi once for each file found. If there are many such files, you'll ...


The problem is that xmodmap is deprecated, and the keyboard layout is resetted at strange times. See if http://askubuntu.com/a/464618/16395 can help you. In gnome-shell you can achieve this thing by setting, in gnome-tweak-tool, one of these options: You should be able to find an equivalent thing for Elementary. See also ...


... or use a dirty hack to use alias as if it took parameters ... As several answers have pointed out, aliases do not support parameters the way shell scripts and functions do. Invoking an alias amounts to expanding the alias to its value, then executing the resulting command line with all arguments still in place. No parameter substitution takes place. ...


X-server-1.5.-support is only available from Virtualbox >= 4.2.28. So the error we see is related to Ubuntu using a newer XServer version which is not yet supported in older releases of the VirtualBox guest additions (also see this bug report). This is why guest additions version 4.2.12 refuse to compile in Ubuntu 14.04.


If you really need an alias, than you could use this answer. An alias in the bash doesn't accept parameters. Therefore you need a function and an alias and a slightly changed find command: Edit your .bashrc nano ~/.bashrc and add the lines below at the end of the file myfvi() { find . -type f -iname "$1" -exec vi -o {} + } alias fvi=myfvi ...


Another approach is to specify an extra source file just for mutt with vim's -S cli flag: Here is the value of editor in my .muttrc: set editor="vim -S ~/.mutt/vimrc" And then here is my ~/.mutt/vimrc: set textwidth=0 set wrapmargin=0


As Bartleby pointed out this is a terminal restriction, because vi sees the keycodes as being the same. For terminals such as xterm you can change that. For gnome-terminal which ignores the X resources settings I don't know how to do the following: This SO question covers the same topic, and this example shows this in use for mapping multiple keys in the ...


After some troubleshooting with Timur Fayzrakhmanov (see comments on OP) we found the following solution: Ubuntu comes by default with a stripped down version of vim. In order to get the whole vim functionality, package vim-nox should be installed.

Only top voted, non community-wiki answers of a minimum length are eligible