All questions with tag [unix: vim]


Indent numerous lines with VIM?

As an example, I'm editing and enhancing this code : <html> <body> <script> var a = 10; a += 100; </script> </body> </html> currently I require to indent the manuscript line : <html> <body> <script> ...
2019-12-06 14:37:53

How to transform vim vehicle - indent actions?

By default vim straightens lines inside LI tags on the very same placement as the placement of LI tag, yet I desire the materials of LI to have much deeper indentation. Existing practices : <LI> first line second line I desire : <UL> first line second line Is this feasible?
2019-12-06 14:00:10

The appropriate means to cover block of lines in personalized message in vim

I would love to have the ability to select numerous lines making use of vim when editing and enhancing an HTML documents, after that enter some hotkey and also get these lines covered in a django comment block. As an example, I have : one line another line I intend to get : {% comment %} one line another line {% endcomment %}
2019-12-06 13:57:03

Indenting numerous files

I intend to indent numerous files which are inadequately indented and also indent them effectively as would certainly vim do when I type gg=G. Exists someway to enter the = command or its pen names in the command setting? i.e after a :? If that is feasible I can make use of the bufdo command like in this inquiry.
2019-12-04 01:34:39

vim editing/switching in between numerous documents successfully in huge directory site frameworks

I am by no suggests a vim power customer, I am simply starting to realize the innovative activities and also commands with vim. Yet there is one downside that I can not appear to navigate. I matured with visual programs for creating code, yet I've simply lately begun making use of vim over ssh & screen to work with rather huge tasks with se...
2019-12-04 01:10:19

Fall - back for $VIM is void

I am functioning straight on a dev web server and also intend to construct my very own vim, for my objectives, except all system customers. The construct circumstance is : hg clone vim cd vim/src ./configure --enable-rubyinterp --enable-multibyte make The outcome of ./vim --version is : VIM - Vi IMproved 7.3 (20...
2019-12-04 01:05:27

How to map ALT key in.vimrc?

In order to be able add empty lines without entering into insertion setting, I'm attempting to map ALT-o and also ALT-O to o<ESC> and also o<ESC> I've attempted the adhering to in my .vimrc map <M-o> o<ESC> map <M-O> O<ESC> and also map <ALT-o> ...
2019-12-04 00:55:33

vi command for including empty line?

In vi, I can make use of o or O to add an empty line and also enter into insertion setting. Yet what happens if I intend to remain in command setting, exists a command for this? In googling, I'm seeing pointers to add things to my vimrc, yet it feels like there need to be a less complicated means (that will certainly constantly function.)
2019-12-04 00:54:17

Vim keybinding to delete approximately (yet not consisting of) the next duration

I've seen an usual expression in my editing and enhancing is a need to delete every little thing approximately, yet not consisting of, the next duration. After a little looking into online, I located the adhering to command will certainly function (I really did not anticipate searches to function, yet so they do) : d/\. Then it highlights all ...
2019-12-04 00:42:57

Quit VIM is slow-moving, generally 2 secs, it reveals

On given up, vim reveals that : ".netrwhist" [Not modified ] - - No lines in barrier - - This procedure generally takes twos. Just how to transform this point off? - - - Update - - - I saw that netrw is mounted as system - vast. Use the code below to disable all of those plugins. se nolpl let x = &rtp se rtp-=$VIMRUNTIM...
2019-12-04 00:42:19

Why would certainly vim return non - absolutely no exit code if I exit quickly after opening up?

I'm facing a little a weird trouble w/ vim on Snow Leopard : I get a non - absolutely no exit code from merely running vim and afterwards giving up. $ vim # exit immediately using :q $ echo $? 1 However, if I make use of the complete course to vim, I do not see this actions $ /usr/bin/vim # exit immediately using :q $ echo $? 0 At first I as...
2019-12-04 00:40:52

How do I get simply the customer - guidebook for Vim

To get the vim customer - guidebook I am doing vi test and afterwards, once the documents is opened up, I do :aid customer - guidebook This opens a split window, that makes analysis hand-operated bothersome to read. Just how do I just open the customer - guidebook in the complete window?
2019-12-04 00:40:00

Turn NumLock on on start-up?

I generally modify in Vim , and also when pushing +, I would certainly instead relocate my hand to the appropriate component of the key-board where + stays as opposed to doing shift+=. Yet when NumLock is out, in Vim it simply opens up a new line over and also inserts the letter k . And also every single time I start my COMPUTER NumLock is o...
2019-12-04 00:33:40

Vim - barrier names in the cmd line location

When I modify documents with vim there is constantly this in the cmd line location, under the standing line, all barriers' names (photo : ) Is there any kind of means I can remove it?
2019-12-04 00:27:45

Is it feasible to execute a VIM manuscript in a non - interactive setting?

The Gnats bug tracker has a command (modify - public relations) that opens up a ticket in $EDITOR. My $EDITOR is VIM, and also when this command opens up the ticket in $EDITOR, I would certainly such as to instantly execute some scripted edits without needing to make any kind of added keystrokes. Exists a means to write a VIM manuscript that c...
2019-12-04 00:27:32

Is there a vim faster way for < name of existing documents >?

In vim, if I'm working with a Python manuscript, I will generally type : :! python to execute the manuscript. Exists a faster way for the name of the existing documents? Otherwise, can I conveniently make one? I'm new at vim, and also I'm not exactly sure just how to google for this.
2019-12-04 00:03:31

Documentation for vifm?

vifm resembles an excellent file manager, yet it does not have documents. Exists a guidebook or pointers on just how to utilize it? I'm seeking details on copying/moving a dir, developing a new vacant documents, editing and enhancing a documents, developing sym/hardlink, etc
2019-12-04 00:03:17

vim/emacs plugin to watch recursive grep search search engine result?

Intend I have actually a documents formatted similar to this : file1:123 file2:4444 some/other/file:2233 This stands for the search engine result from a command grep (i.e. the layout file:line-number). I would certainly such as to have a vim plugin which would certainly permit me promptly check out those hits. It would certainly present a 2 ...
2019-12-03 23:56:39

ZSH tab conclusion : just full documents and also not binaries

Is it feasible to make a personalized zsh conclusion documents, so when striking tab for filenames it stays clear of finishing the binaries? As an example, I have 2 documents, myprogram.c and also myprogram, the binary, is it feasible so when I do vim myprog (tab) it automagically finishes it to myprogram.c, not myprogram? Many thanks beforehand!
2019-12-03 06:20:01

How to replicate from one vim instance to an additional making use of signs up

How can I select the + register? I have troubles adhering to the guidelines listed below to copy/paste message from vim to an additional vim : In the vim, highlight, select + register, and yank (save) to it: Shift-v "+y In the second vim, select + register, and paste from it: "+p I assume I'm pushing the incorrect keys. When it clai...
2019-12-02 03:10:18