Linked Questions

-2
votes
1answer
29 views

autocmd vs augroup example [duplicate]

Is there any difference between the following two commands: autocmd FileType html,htmldjango inoremap <buffer> <leader>1 &nbsp; And converted to an autocmd: augroup filetype_html ...
4
votes
1answer
2k views

What's the difference between autocmd {cmd} and autocmd! {cmd}

For example, what's the difference between calling this command this way: autocmd BufWritePre * call StripTrailingWhitespace() vs. this way (with the bang after autocmd): autocmd! BufWritePre * ...
3
votes
1answer
2k views

Triggering a function with BufEnter

I'm trying to reverse engineer how a .vimrc file works. One of the lines is this: autocmd BufEnter *.p[lm] nmap <buffer> ;t :call RunPerlTests()<CR> The only part I'm unclear on is the ...
3
votes
1answer
1k views

Vim slows down with multiple buffers etc

I think noticing a slow redrawing and slow cursor movement on a fastest PC, is one of the popular frustrations with Vim. Here I am as a yet another instance. I have a fresh installation of VIM, with ...
2
votes
1answer
704 views

Gvim : Statusline is loading but not its colours

I have been experimenting with colours for my statusline recently and I put the plugin file in the bundle directory. I use pathogen which loads everything up from that directory. But, Even though the ...
1
vote
0answers
1k views

How to hide terminal buffer without closing it?

I want to make toggleable window with terminal buffer similar to every IDE terminal feature. Currently i have mapped: noremap <F4> :botright 8split term://bash<CR> tnoremap <F4> &...
2
votes
4answers
284 views

Defining mappings for files of the “null” type through /ftplugin

For files of a certain filetype, specifying "file-type-specific" mappings is simple. If Vim opens a fill and return filetype=python after issuing command :set filetype? through command-line (native ...
1
vote
1answer
318 views

Why set ft is not working?

I have au BufRead,BufNewFile *.vm set ft=velocity in vimrc. But if open .vm file and run :set filetype?, still get filetype=conf. How to fix this?
3
votes
2answers
119 views

How do I disable a a key in Tagbar

I've mapped 'L' and 'H' to change buffers in vim. I often end up hitting these keys in NERDTree and Tagbar. I'm able to use NERDTreeAddKeyMap to make NERDTree ignore keys. Tagbar only allows the use ...
1
vote
2answers
148 views

Loading source file with :tabe

My .vimrc includes the following lines: if filereadable("my_source") :source my_source endif That is, if the file 'my_source' exists in the folder where I open vim and it is readable, it is ...
0
votes
1answer
58 views

How to set a command as a file type specific autocommand

I would like the :Toc command to call :Voom in R markdown files and :VimtexTocOpen in latex files. First try: au BufRead,BufNewFile *.Rmd command! Toc Voom au BufRead,BufNewFile *.tex command! Toc ...
1
vote
1answer
40 views

Start vim-coverage when opening a python file

If I run the command CoverageShow coverage.py when I have a python file open and a .coverage report in my directory it does a nice job of showing me which lines are included in my testing. I would ...
0
votes
0answers
31 views

vimrc post buffer bash script

I have a script that is called when I open a file with fileA extension in vim: autocmd BufWritePost *fileA !/usr/bin/named_check_vim %:p script named_checkvim checks for errors in a file, if errors ...