From 7c4f55e295582639e6c6b613480b69980012973b Mon Sep 17 00:00:00 2001 From: Richard Torruellas Date: Fri, 31 Jan 2014 00:31:38 -0700 Subject: [PATCH 1/3] removing tools that were not being used --- Gruntfile.js | 96 ++++++-------------------------------------------- app/index.html | 2 +- package.json | 3 -- 3 files changed, 11 insertions(+), 90 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 37d3a639..e737ee4e 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -25,18 +25,6 @@ module.exports = function (grunt) { grunt.initConfig({ yeoman: yeomanConfig, watch: { - coffee: { - files: ['<%= yeoman.app %>/scripts/{,*/}*.coffee'], - tasks: ['coffee:dist'] - }, - coffeeTest: { - files: ['test/spec/{,*/}*.coffee'], - tasks: ['coffee:test'] - }, - compass: { - files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'], - tasks: ['compass:server'] - }, livereload: { options: { livereload: LIVERELOAD_PORT @@ -125,75 +113,6 @@ module.exports = function (grunt) { } } }, - coffee: { - dist: { - files: [ - { - expand: true, - cwd: '<%= yeoman.app %>/scripts', - src: '{,*/}*.coffee', - dest: '.tmp/scripts', - ext: '.js' - } - ] - }, - test: { - files: [ - { - expand: true, - cwd: 'test/spec', - src: '{,*/}*.coffee', - dest: '.tmp/spec', - ext: '.js' - } - ] - } - }, - compass: { - options: { - sassDir: '<%= yeoman.app %>/styles', - cssDir: '.tmp/styles', - generatedImagesDir: '.tmp/images/generated', - imagesDir: '<%= yeoman.app %>/images', - javascriptsDir: '<%= yeoman.app %>/scripts', - fontsDir: '<%= yeoman.app %>/styles/fonts', - importPath: '<%= yeoman.app %>/bower_components', - httpImagesPath: '/images', - httpGeneratedImagesPath: '/images/generated', - httpFontsPath: '/styles/fonts', - relativeAssets: false - }, - dist: {}, - server: { - options: { - debugInfo: true - } - } - }, - // not used since Uglify task does concat, - // but still available if needed - /*concat: { - dist: {} - },*/ - requirejs: { - dist: { - // Options: https://github.com/jrburke/r.js/blob/master/build/example.build.js - options: { - // `name` and `out` is set by grunt-usemin - baseUrl: yeomanConfig.app + '/scripts', - optimize: 'none', - // TODO: Figure out how to make sourcemaps work with grunt-usemin - // https://github.com/yeoman/grunt-usemin/issues/30 - //generateSourceMaps: true, - // required to support SourceMaps - // http://requirejs.org/docs/errors.html#sourcemapcomments - preserveLicenseComments: false, - useStrict: true, - wrap: true - //uglify2: {} // https://github.com/mishoo/UglifyJS2 - } - } - }, rev: { dist: { files: { @@ -285,6 +204,15 @@ module.exports = function (grunt) { // Put files not handled in other tasks here copy: { dist: { + styles: { + expand: true, + cwd: '<%= yeoman.app %>', + dest: '.tmp/', + src: [ + 'styles/{,*/}*.css', + 'bower_components/boostrap/dist/css/bootstrap.min.css' + ] + }, files: [ { expand: true, @@ -311,15 +239,11 @@ module.exports = function (grunt) { }, concurrent: { server: [ - 'compass', - 'coffee:dist' + ], test: [ - 'coffee' ], dist: [ - 'coffee', - 'compass', 'imagemin', 'svgmin', 'htmlmin' diff --git a/app/index.html b/app/index.html index 08bc3d14..874592bd 100644 --- a/app/index.html +++ b/app/index.html @@ -6,8 +6,8 @@ Vim Cheat Sheet - + diff --git a/package.json b/package.json index ac0322ef..0659338d 100644 --- a/package.json +++ b/package.json @@ -6,16 +6,13 @@ "grunt": "~0.4.1", "grunt-contrib-copy": "~0.4.1", "grunt-contrib-concat": "~0.1.3", - "grunt-contrib-coffee": "~0.6.5", "grunt-contrib-uglify": "~0.2.0", - "grunt-contrib-compass": "~0.2.0", "grunt-contrib-jshint": "~0.4.1", "grunt-contrib-cssmin": "~0.6.0", "grunt-contrib-connect": "~0.2.0", "grunt-contrib-clean": "~0.4.0", "grunt-contrib-htmlmin": "~0.1.3", "grunt-bower-requirejs": "~0.4.1", - "grunt-contrib-requirejs": "~0.4.0", "grunt-contrib-imagemin": "~0.1.3", "grunt-contrib-watch": "~0.4.0", "grunt-rev": "~0.1.0", From d6b2fc448a46b6f3055a3c5270ce8e4178618c2d Mon Sep 17 00:00:00 2001 From: Richard Torruellas Date: Fri, 31 Jan 2014 00:45:59 -0700 Subject: [PATCH 2/3] adding official release of bootstrap --- Gruntfile.js | 2 +- app/index.html | 2 +- app/styles/main.css | 9 ++++++++- bower.json | 4 ++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index e737ee4e..cfe51c35 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -210,7 +210,7 @@ module.exports = function (grunt) { dest: '.tmp/', src: [ 'styles/{,*/}*.css', - 'bower_components/boostrap/dist/css/bootstrap.min.css' + 'bower_components/bootstrap/dist/css/bootstrap.min.css' ] }, files: [ diff --git a/app/index.html b/app/index.html index 874592bd..925da203 100644 --- a/app/index.html +++ b/app/index.html @@ -7,7 +7,7 @@ - + diff --git a/app/styles/main.css b/app/styles/main.css index d10e8c59..52e1e0a6 100644 --- a/app/styles/main.css +++ b/app/styles/main.css @@ -26,7 +26,6 @@ h2 { ul { padding: 0; - padding-left: 5px; } li { @@ -38,9 +37,17 @@ li { } #footer { + margin-top: 15px; text-align: center; } kbd { + font-family: monospace,serif; + font-size: 1em; + color: #333; + background-color: #fafafa; + border-radius: 0; + box-shadow: none; font-weight: bold; + padding: 0; } diff --git a/bower.json b/bower.json index 52498964..18d40e88 100644 --- a/bower.json +++ b/bower.json @@ -2,9 +2,9 @@ "name": "vim-cheat-sheet", "version": "0.0.0", "dependencies": { - "boostrap": "git@github.com:twbs/bootstrap.git#3.0.0-rc1", "modernizr": "~2.6.2", - "jquery": "~1.9.1" + "jquery": "~1.9.1", + "bootstrap": "~3.1.0" }, "devDependencies": {} } From b2fccdf23ef3850ac280cd7a51c74154a58f7b86 Mon Sep 17 00:00:00 2001 From: Richard Torruellas Date: Fri, 31 Jan 2014 00:50:42 -0700 Subject: [PATCH 3/3] fixing medium size --- app/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/index.html b/app/index.html index 925da203..3483c7e6 100644 --- a/app/index.html +++ b/app/index.html @@ -19,12 +19,12 @@
-
+

VIM

-
+

Cursor movement

  • h - move cursor left
  • @@ -58,7 +58,7 @@

    Insert mode - inserting/appending text

  • Esc - exit insert mode
-
+

Editing

  • r - replace a single character
  • @@ -96,7 +96,7 @@

    Visual commands

  • ~ - switch case
-
+

Cut and paste

  • yy - yank (copy) a line
  • @@ -132,7 +132,7 @@

    Search and replace

-
+

Working with multiple files

  • :e filename - edit a file in a new buffer
  • @@ -147,7 +147,7 @@

    Working with multiple files

  • Ctrl + wv - split window vertically
-
+

Tabs

  • :tabnew filename or :tabn filename - open a file in a new tab