vim (Vi IMproved) is a text editor supporting different editing modes.
3
votes
2answers
35 views
Can't do backward search with big N in vim, some plugins override it
I just found I couldn't do the backward search with N anymore, it looks like to be overridden by some other plugins,
Not sure how that happened, how do I find out which plugin got this?
3
votes
0answers
41 views
Vim colorize edit mode
I'm trying to tailor vim to my needs and I would like vim to visually indicate when it is in some kind of edit mode (insert/replace) by, for example, coloring the background red. Is there any way to ...
4
votes
2answers
189 views
How to compile a c program without leaving the editor?
I am using vim editor on Linux mint. I want to know if there is any way to compile c program without leaving the editor.
4
votes
4answers
62 views
Export terminal display to PDF
I want to include the display of my terminal in a beamer presentation. Simply taking a screenshot, however, produces a fairly low-resolution png that looks poor in the presentation. I would like it ...
4
votes
3answers
64 views
vim: How to switch to the directory listing from file view?
I have opened a dir vim some/dir. I can navigate within the tree, yet once I opened a file I wonder, how do I close the file view in order to go back to the directory listing to navigate to another ...
1
vote
1answer
18 views
Vim, netrw plugin tmp files not uploaded at server
If I connect via sftp with netrw plugin and open the file, filepath looks like sftp://.. In current session if I close this file and reopen it, netrw loads file from /tmp/.. and after saving this file ...
3
votes
1answer
46 views
vim latex: disable quickfix
How can I disable latex's quickfix feature when editing tex files (having vimlatex installed). But I want to keep it for any other language…
Pretty sure this is just a small flag, didn't find it ...
1
vote
1answer
26 views
Can't use mouse properly when running vim in tmux
I'm running VIM in tmux,
When I'm try to select a range of texts in VIM, the mouse kept resetting its position, thus I can only select one line (the last line where mouse occurs).
Does anyone know ...
3
votes
1answer
59 views
Only one file name allowed error
Sometimes I forget to do sudo vim and open files to which I don't have write permission. I saw this post and it was really helpful.
When I did :w !sudo tee % it asked me for a password and then the ...
2
votes
2answers
39 views
Shortcut for tabn & tabp in vim/vi
When I open several files using vim+tabf, switching across the files will involve using tabp & tabn.
Can I have a quicker way to do so?
1
vote
2answers
74 views
concat file content horizontally in vi/vim
I have a text file that contains a big matrix, that columns are split like the following example:
col1 col2 col3
row1 .. .. ..
row2 .. .. ..
row3 .. .. ..
row4 .. .. ..
row5 ...
4
votes
1answer
67 views
vim - open file and goto line number using <filename>:<line nbr>:
Several tools such as grep, py.test, etc ... use the pattern <FileName>:<line number>: to point to errors. For example:
; grep -Hn Common setup.cfg
setup.cfg:11: Common
How can I ...
4
votes
2answers
48 views
vim customized with emacs commands (edition mode only)
I was an emacs user, and I have to switch to vim. But I miss some basic emacs commands in vim edition mode:
C-A
C-E
C-K
C-Y
C-x C-s
... and some other
I know that I can press Escape and then press ...
1
vote
0answers
107 views
gnome-terminal overrides Vim color setting
I'm in gnome-terminal on Linux Mint 13. (Mate)
Whatever color scheme I set for the terminal overrides the color scheme i have set for Vim.
How can i stop that from happening?
I have read this: ...
3
votes
1answer
62 views
How to configure vim to interact with interactive command line shells?
From time to time I want to use vim as scratch pad for commands that I would like to send to a command line shell like psql (Postgres), ghci (Haskell programming language), octave ('calculator'), ...