This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName: 'Ember Twiddle' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| augroup startup | |
| autocmd! | |
| autocmd VimEnter * call PreventNestedNeovim() | |
| augroup END | |
| function! PreventNestedNeovim() | |
| if !empty($NVIM_LISTEN_ADDRESS) && $NVIM_LISTEN_ADDRESS !=# v:servername | |
| let g:r=sockconnect('pipe', $NVIM_LISTEN_ADDRESS, {'rpc':v:true}) | |
| let g:f=fnameescape(expand('%:p')) | |
| noautocmd bwipe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rake' | |
| require 'rake/clean' | |
| task :default => :pdf | |
| task :pdf => "book-draft1.pdf" | |
| file "book-draft1.tex" => "book-draft1.md" do | |
| sh "pandoc book-draft1.md -s -o book-draft1.tex" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "*.js": { | |
| "indent": "tabs:3" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "app/routes/*.js": { | |
| "type": "route", | |
| "alternate": "app/templates/{}.hbs" | |
| }, | |
| "app/templates/*.hbs": { | |
| "type": "controllerTemplate", | |
| "alternate": "app/controllers/{}.js" | |
| }, | |
| "app/controllers/*.js": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ -n "$NVIM_LISTEN_ADDRESS" ]; then | |
| alias nvim='echo "No nesting!"' | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %s/}\ \\label/}\\label/ge | |
| %s/\ \\ref/\~\\ref/ge | |
| %s/\ "/\ ``/ge | |
| %s/"\ /''\ /ge | |
| %s/",/'',/ge | |
| %s/"\./''\./ge | |
| %s/")/'')/ge | |
| %s/i\.e\.\ /i\.e\.\\\ /ge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function! MyFunction() | |
| %s/ch/cx/ge | |
| endfunction | |
| " You can call the function as: | |
| " :call MyFunction() | |
| command! MyCommand call MyFunction() | |
| " You can call the command as: | |
| " :MyCommand |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if has('nvim') | |
| tnoremap <expr> <C-R> '<C-\><C-N>"'.nr2char(getchar()).'pi' | |
| tnoremap <C-v><C-r> <C-r> | |
| endif |
NewerOlder