Tomek wrote:
The Windows distribution of Vim which I use, gVim 7.3, has support for
NSIS
syntax coloring. The syntax kicks in correctly when opening a .nsi
file,
but it's not the case with .nsh (NSIS header) files.
For an intermediate vimer like myself, it's a little pesk:
- copy filetype.vim out of %ProgramFiles(x86)%
- edit the line with "setf nsis"
- save and copy back to original place
(cannot edit under Program Files folder)
This could however overwhelm some newbies, so whom can I ask to
add this to some upcoming release?
This procedure is also the wrong way to go about it. Instead,
- while in vim, echo $HOME (I'll refer to it as $HOME below)
- in that directory, if you don't already have it, create a directory
called vimfiles (this is for Windows; on most systems it'd be .vim)
- in the $HOME\vimfiles directory, in a file called filetype.vim,
include the line
au BufNewFile,BufReadPost *.nsh setf nsis
As a General Rule -- don't modify the distribution. Your mods will just
go away the next time you update, and likely that need to do redo your
modifications will deter you from updating.
For example, if some syntax file isn't quite doing what you want, copy
it to $HOME\vimfiles\syntax\ and modify your copy.
Regards,
Chip Campbell
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php