Most voted "vim" questions
Vim is an advanced text editor successor to vi, used by many programmers for its versatility and ubiquity in Linux distributions.
Learn more…25 questions
Sort by count of
-
16
votes4
answers1969
viewsHow to save Ctrl+S to Vim?
When I use Vim in the terminal Ctrl+S, or the terminal hangs or something else strange happens. How to squeeze Ctrl+S is already almost an instinct to save, how to map this shortcut to save the…
-
10
votes6
answers3344
viewsHow is an agile way to add and remove code comments in VIM?
I don’t want to remove the entire line of code in VIM, what I want is to work with the comment codes. I have 3 purpose cases: Comments with which open and close (usually multiple lines): /*…
-
9
votes3
answers8997
viewsLike saving and getting out on VIM?
I have a problem (I think it’s a problem) in the text editor of vim. When I create a file readme.md and then I take command vim readme.md, open the editor and then the problem begins. When I type…
vimasked 7 years ago Matheus Macedo 135 -
7
votes2
answers7285
viewsHow to paste clipboard text into vim?
Researching the Cheat sheet of some places, I discovered how to see the transfer area (the Registers) no vim, :reg. However, I could not use these records, even using the commands demonstrated on…
-
4
votes2
answers246
viewsSwitch TAB indentation to spaces in Vim
I have a project where some files are indented with tab and others with 4 spaces. Is there any way in Vim to reindentate all files for 4 spaces?
-
2
votes3
answers280
viewsHow to Show the file path opened in VIM
Sometimes I leave the file open for a long time, and I don’t know which directory it is in because the environments of my application are separated by path. Ex: prod /loja/prod/app/index.php teste…
-
2
votes1
answer55
viewsHow to include one vim configuration file in another?
I am reorganizing/redoing my vim configuration files and would like to leave different language settings in separate files. Something like that: .vimrc .vimrc.python .vimrc.ruby .vimrc.cpp .vimrc.js…
-
2
votes1
answer69
viewsYourcompleteme did Enables Function error?
Good evening, it is the following, I installed the famous yourcompleteme of the came to assist me in some snippets that I configured in the editor and others of third, when I start the editor it…
vimasked 9 years, 6 months ago Caio Cutrim 21 -
2
votes2
answers501
viewsWhat is the way to configure VI to autocomplete and format the files in a standardized way according to each language?
I’ve been using VI for some years, I think about 20 years, at the time still in XCO Unix and Xenix, but I never took the initiative to make my environment fully parameterized to program in languages…
-
2
votes2
answers115
viewsWhat is the linux text editor command that I can see output in real time?
What is the linux text editor command that I can see output in real time? For example I want to give a "vim" in the access log of my apache I want to see GET entering the log in real time which…
-
2
votes1
answer46
viewsOpen recent files in vim
What is the most efficient way to open a file ever opened before in vim? I have using the following feature :browse oldfiles But you need to go to the bottom of the page to enter the document number…
vimasked 5 years, 7 months ago Thiago VedoVatto 23 -
2
votes1
answer96
viewsHow to add Dart syntactic highlight to VIM?
I am starting the studies of Flutter. For this, I am using as editor the vim. I consider it an option to use an IDE, but for quick and small things, use the vim is mandatory for how I am studying.…
-
1
votes1
answer100
viewsRemotely access another Unix machine with Vim
According to this video https://www.youtube.com/watch?v=pN-GCcnI9Es it is possible to access another Unix machine with Vim and continue to edit the file from where I left off. Like I can do?…
-
1
votes0
answers84
viewsVIM Ctrlp - Looking for files with the same name
I have a difficulty in using the VIM Ctrlp plugin, in case I have two files with the name "database", but Ctrlp only finds one of them as shown in the image. I am using the following setting in my .…
-
1
votes4
answers416
viewsHow to remove multiple blank lines in sequence with vim?
I have the following problem, I have a file with all scrambled code, many blank lines. I tried to remove the blank lines according to the post post about line deletion, but it removed all blank…
vimasked 7 years, 5 months ago Hans Zimermann 63 -
1
votes1
answer248
viewsUsing Vundle on VIM
I recently installed VIM 8.0 on my Ubuntu 18.10. Then, I installed via this tutorial https://github.com/VundleVim/Vundle.vim a plugin manager for vim. There is therefore the directory ~/.vim which…
-
0
votes1
answer93
viewsModify VIM cursor by running on Console2
I cannot change the cursor type of VIM when I enter Insert mode, when I use Console2. I wanted him to do as he does in the cmd, as the figure below: Does anyone know if it’s possible, and if it’s…
-
0
votes2
answers2109
viewsAutomatically indent all code in vim
It is possible to automatically make vim indent an entire file? For example, in Eclipse you can use the shortcut Ctrl+A + Ctrl+I.
-
0
votes1
answer74
viewsCorrection in the presentation of the status bar created with the Airline plugin
I installed the plugin Airline in order to have a custom status bar in my editor, as seen in the figure below: However, my editor’s status bar is displaying the <, >> and <symbols. How…
-
0
votes1
answer158
viewsHow can I leave him like that?
I would like to configure my vim to leave as in the image. I already have Macvim installed. My greatest need is the file explorer.…
vimasked 7 years, 2 months ago Álvaro Felipe 13 -
0
votes1
answer386
viewsGems autocomplete in text editor
Personal is it possible to get an autocomplete experience in some free text editor, similar to what Rubymine does by indexing the Gems code? I tried several alternatives in vscode, like using cTag,…
-
0
votes0
answers22
viewsI came keymap to paste something copied out in normal mode
I’m trying to make a shortcut to paste something copied from the outside in Vim in normal mode but I’m not getting it: nnoremap <C-S-p> i<C-S-v><ESC>
-
0
votes0
answers18
viewsProblems with VIM editor
Hello, I’m having a simple problem at VIM that I just noticed. When trying to select a block of content to crop (using x or d in view mode), and later try to paste into an external file using p key…
-
0
votes1
answer34
viewsHow to put two words in the same line?
Good morning, community! I’m studying what I came for. I would like to put two words (right to left and left to right) on the same line on vim. For example: def br(esq, dir): would like to put with…
-
-4
votes2
answers157
viewsHow to save a file in Vim
I am logging into the UOL hosting by SSH to schedule a task with cron. I can type in the schedule, only I don’t know how to save, give a CTRL+S on the terminal I think it doesn’t work and I don’t…