How to turn off Auto highlight text in Vim editor? [closed] - vim

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 months ago.
Improve this question
In VIM text editor, everytime whenever I type ''typedef '', it gets highlighted automatically. How to fix this?
I want to turn off word highlighting property in vim.

Looks like you have the "highlight search" flag on and the last search was for typedef. You can turn the flag off with :set nohls.
You can inspect all settings with :set all.
You can read the help for highlight search with :help hls.

Related

Paste path in clipboard modified to be relative to current buffer in vim [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'd like to copy a path from the current buffer (or actually any other source) and paste it in to another buffer, but have the path automatically modified to be relative to the location of the target buffer. Does anyone have a script that can do this, or know of a plugin before I try and write my own? Thanks!
Assuming unnamed register already contains absolute path,
:put =fnamemodify(##, ':.')
See also :h filename-modifiers. Note that the current working directory and the current file's directory may differ (see :h 'autochdir', :h :cd etc.).
Also Vim automatically converts names from buflist / arglist.

How do i fast press enter in vim editor [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
It is a naive question. Because the enterkey in my keyboard is too far, so it's unconvience to press it.
Is there a key that is similar with enter in vim, so i could press it alternative enter.
Thank you very much.
I personally use a remap key that is below:
for enter -> inoremap kk <enter>
for escape -> inoreamp jj <esc>

Vim Tab switching weird behaviour [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm very new to vim and might be asking a very dumb question, but I've added a keyboard shortcut to switch between tabs, but when I do switch this happens
Instead of the tab indicator moving it moves everything, I don't know how to explain this with words but I think you get my point with the gif. Is there any way of changing this to a normal tab switching like browsers do?
The shortcuts I'm using are:
:noremap <C-n> :bnext<CR>
:noremap <C-n> :bprevious<CR>
Just fixed it by changing from bnext and bprevious to tabn and tabp....

How to enable vim-latex-suite plugin in markdown? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
In vim, the latex-suite plugin is for tex filetype. I want to apply the convenience of vim latex-suite plugin for markdown filetype. How can I do it?
EDIT: I want to use markdown syntax to take notes. But It's not convenient for me to type formula in the markdown file. It will be very convenient If the latex-suite macros/shortcuts can be used in markdown file(with the markdown highlight syntax).
In vim I set this
:set ft=tex
:set syntax=markdown
and then I have all the latex-suite macros and shortcuts working, while the syntax highlighting is set to markdown.

How to save registers in VIM [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am new to VIM and I use the command
qa
to start recording the operations in register a and the following command
q
to stop saving. And the following command to use the operations in a:
#a
But the problem is that, when I close the VIM, all these registers are deleted. Is there any way to save these operations and use it later in other sessions of VIM?
If you don't run Vim in compatible mode (only masochists would run Vim in compatible mode), named registers, "a to "z, are remembered across sessions.
Do you run Vim without a ~/.vimrc? What is the output of :set viminfo? :set compatible? (with the question mark)?
You could create a map in your .vimrc
map <F2> [your macro]
If the macro is already at register 'a', you can also use it, that is, instead of repeating [your macro], you can type <C-r>a while in insert mode.
You could also try marvim.

Resources