That is the example directory for Team Fortress 2, but it should be similiar for CSS, DOD: S, HL2DM or Garrys Mod. In this config file, add the binds you wish to save, then save it. These should be added into your game.
I can't remember if that way still works or if you need to create an autoexec when the game launches. Let me know how you get on. If it doesn't work the other way definitely does...
I found this somewhere awhile ago. It's part of a longer toturial. If anyone know who or where this is from, please let me know so I can give credit where credit due.
Also, I haven't gotten around to trying it yet, do I have no clue as to weather or not it works...
What we’re going to do is write our commands not in the console but within a custom autoexec.cfg file. This file will contain all of your commands that you’d normally enter through the console into a handy Notepad file . By placing our new options and other changes into the autoexec.cfg file, we’ve essentially made it a permanent setting. To make an autoexec.cfg, just create a new notepad file on your desktop and naming it “autoexec.cfg”. Make sure that you agree when Window’s asks if you really want to change it into a different file type. If you ever want to read .cfg file in the future, you’ll merely need to right click and choose to open them with Notepad or Wordpad.
After you have written down what commands you’d like to add, place the autoexec.cfg into your “cfg” fold inside of your Source game of choice. Let’s assume you made this for Half-Life 2, in this case it would go into C:\Program File\Steam\yoursteamname\SteamApps\half-life 2\hl2\cfg folder by default. Once you’ve done this, open up Steam and head to the My Games menu. From here right click on the game you placed the config in, in our case Half-Life 2, and click properties. From the properties menu, click the “Set Launch Options” button. Now on the command prompt input the following “+exec autoexec.cfg –toconsole –novid”. Remember that the +/- matter as do spaces. With these commands, the game will load the autoexec you created and skip the intro videos while launching you straight to the main menu with the console open.
Yeah, that's the other way I mentioned Crash, thanks for finding the tutorial on how to put it together fully, it's been a while since I've used one. This thread should be a good reference for the future & anyone else looking for this solution.