You can use :map <buffer> ...
to make a local mapping just for the active buffer. This requires that your Vim was compiled with +localmap
.
So you can do something like
autocmd FileType python map <buffer> <C-G> ...
More Related Contents:
- How do I exit the Vim editor?
- Using Vim’s tabs like buffers
- Vim and Ctags tips and tricks [closed]
- How to paste yanked text into the Vim command line
- Why do Vim experts prefer buffers over tabs? [closed]
- How do I exit Vim?
- What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in Vim?
- Vim 80 column layout concerns
- Why should I use an IDE? [closed]
- Turning off auto indent when pasting text into vim
- How do I run a terminal inside of Vim?
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- Why ci” and ci(, ci{…. behave differently?
- Move entire line up and down in Vim
- A more useful statusline in vim? [closed]
- How can I automatically add some skeleton code when creating a new file with vim
- How to add line numbers to range of lines in Vim?
- Vim auto-generate ctags
- Indenting in VIM with all the files in Folder
- How to effectively work with multiple files in Vim
- Why is \r a newline for Vim?
- How to edit multi-gigabyte text files? Vim doesn’t work =( [closed]
- Auto-open NERDTree in “EVERY” tab
- Vim – how to run a command immediately when starting vim?
- How to map Ctrl+A and Ctrl+Shift+A differently?
- Get rid of Vim’s highlight after searching text
- Vim: Pipe selected text to shell cmd and receive output on vim info/command line
- Pathogen does not load plugins
- How to open a file in a list of files in Vim?
- Enabling markdown highlighting in Vim