Docsets are offline and searchable docs that you can browse using Dash. Recently, Meteor's docset has been added. Now, even when you are offline, you can easily browse your favorite framework's docs.
You can even call Dash within Vim using the Vimdash plugin.
Affichage des articles dont le libellé est Vim. Afficher tous les articles
Affichage des articles dont le libellé est Vim. Afficher tous les articles
4 juin 2014
20 avr. 2014
Jade syntax highlighting for meteor-jade in Vim
Owing to a hack, your initial Jade file in Meteor using Meteor-Jade needs to be called with a double extension
Note: I've shared my dotfiles on Github: https://github.com/PEM--/dotfiles
myApp.jade.html. This breaks the basic syntax highlighting mechanism based on file extension. Thankfully, we can teach Vim to handle these weird extensions. Here is how I set it up in my ~/.vimrc:
Bundle 'digitaltoad/vim-jade' au BufNewFile,BufRead,BufReadPost *.jade.html set filetype=jade
Note: I've shared my dotfiles on Github: https://github.com/PEM--/dotfiles
19 avr. 2014
Nice indentation guides in Vim
When you use language that rely on indentation (such as Python, CoffeeScript, Sass, Stylus, Jade, Slim, ...), having indentation guide in Vim prevents you from headaches. indentLine does just that in a nicely fashion:
Installing it with Vundle is a one liner in your
Note: I've shared my dotfiles on Github: https://github.com/PEM--/dotfiles
Installing it with Vundle is a one liner in your
~/.vimrc:Bundle 'Yggdroot/indentLine'
Note: I've shared my dotfiles on Github: https://github.com/PEM--/dotfiles
Choose your colors while editing code in Vim
Choosing the appropriate colors on your UI is a delicate job. ColorV and colorizer are 2 plugins for Vim that help a lot. I use them on almost every kind of source that I manipulate.
Importing them in you
Note: I've shared my dotfiles on Github: https://github.com/PEM--/dotfiles
Importing them in you
~/.vimrc is pretty easy if you use a plugin importer. I'm using Vundle and here is the extract that imports these plugins:Bundle 'Rykka/colorv.vim' let g:colorv_preview_ftype='css,html,js,coffee,sass,scss,less,styl,svg' Bundle 'lilydjwg/colorizer'
Note: I've shared my dotfiles on Github: https://github.com/PEM--/dotfiles
16 févr. 2014
Ini files are just gray... Color them all in vim
I've just found that whenever I edit a
To add other extension to its syntax highlighting capability, just add the following line:
*.conf or a *.cnf file, they just appear without syntax highlighting though Vim has anything to do it properly... Except that it waits for a *.ini extension.To add other extension to its syntax highlighting capability, just add the following line:
au BufReadPost *.conf,*.cnf set filetype=dosini
Don't sudo vim
Each time you attempt to perform a
There are different ways of achieving a proper
My preferred move is to completely avoid using sudo vim and simply hit the following command whenever I need a proper right upgrade:
sudo vim, you end up into the configuration of root. Therefore, you loose some of your personal plugins that requires local commands. That, and a warning message.There are different ways of achieving a proper
sudo vim (providing a new $HOME via -H or using your /etc/sudoers), but still, there are situations when you have forgotten to use sudo and you end up stuck with a file that you can't overwrite.My preferred move is to completely avoid using sudo vim and simply hit the following command whenever I need a proper right upgrade:
:w !sudo tee %
11 févr. 2014
Get CLI results in Vim
Still a nice trick. When you need to get the results from a command line into your documentation, you can use Vim's ability to run Bash / Zsh commands and read their outputs.
For instance, I want to list all the files contained into a directory:
Another nice example, I want to show the directory tree of my project into my documentation :
Note : On OSX, you can install
For instance, I want to list all the files contained into a directory:
:r ! ls -l my_dir
Another nice example, I want to show the directory tree of my project into my documentation :
:r ! tree -d
Note : On OSX, you can install
tree with Homebrew easily:brew install tree
22 déc. 2013
Ma configuration personnelle de Vim, Git, Zsh et Tmux
J'ai publié mes doftfiles sur GitHub. On y retrouve ma configuration personnelle sur OSX pour mes outils quotidiens :
- Vim
- Git
- Zsh
- Tmux
Note : Mes fichiers de configuration sont très orientés développements C++, HTML5 & Python. Ces langages étant l'essentiel de mon utilisation personnelle.
Inscription à :
Articles (Atom)



