Questions tagged as 'vim'

4
answers

How to make Ctrl + S save on Vim?

When I use Vim on the terminal and I run Ctrl + S , or the terminal hangs or something strange happens.     
asked by 12.12.2013 / 02:45
6
answers

How is an agile way of adding and removing code comments in VIM?

I do not want to remove the entire line of code in VIM, what I want is to work with the comment codes. I have 3 cases: Comments that open and close (usually multiple lines): /* doSomething(); */ Comments with 2 characters in the line of...
asked by 24.02.2014 / 15:33
2
answers

How to save and exit in VIM?

I have a problem (I think it's a problem) in the vim text editor. When I create a file readme.md and then I make the command vim readme.md , it opens the editor and then the problem starts. When I type something in there, I do...
asked by 10.11.2017 / 16:27
2
answers

How to paste text from clipboard into vim?

Searching the cheat sheet of some places, I discovered how to see the clipboard (the registers ) in vim, :reg . However, I was not able to use these records, even using the commands displayed on the sites. How do I paste t...
asked by 05.04.2017 / 21:41
2
answers

Change the indentation of TAB 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 reinden all files to 4 spaces?     
asked by 29.01.2014 / 19:14
2
answers

What 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 the GET entering the log in real time what is the parameter that I use?     
asked by 30.08.2016 / 16:03
1
answer

How to include a vim configuration file in another?

I am reorganizing / remapping my vim configuration files and would like to leave different language settings in separate files. Something like this: .vimrc .vimrc.python .vimrc.ruby .vimrc.cpp .vimrc.js ... I do not need the language settin...
asked by 16.11.2014 / 04:26
3
answers

How to show the file path opened in VIM

Sometimes I leave the file open for a long time, and I do not know which directory it is in, because the environment of my application is separated by path. Ex: prod /loja/prod/app/index.php teste /loja/teste/app/index.php I wanted to s...
asked by 04.10.2014 / 00:15
2
answers

How to configure the VI to autocomplete and format the files in a standardized way according to each language?

I've been using VI for a few years, I think about 20 years, still XCO Unix and Xenix, but I never took the initiative to make my environment totally parameterized to programming in languages like C / C ++, PHP and Java . I would like to prepa...
asked by 20.06.2015 / 16:52
1
answer

YourCompleteMe vim enables function error?

Good night, it's the following, I installed the famous yourcompleteme of vim to help me in some snippets that I configured in the editor and others of third, when I start the editor it returns me this warning of the screen with the following mes...
asked by 07.05.2015 / 02:30