Apr
23
2012
Éverton Arruda
Today i found out about a nice way to learn how to use VIM[0], it’s called VIM Adventures[1].
As is said in VIM’s website:
VIM is an advanced text editor that seeks to provide the power of the de-facto Unix editor ‘Vi’, with a more complete feature set. (…)
VIM Adventures is an interactive way to learn how to use VIM. It’s a web game in which you have to use VIM commands to pass the levels.
If you want to learn how to use VIM, i recommend you to start by playing a game
Links:
[0] http://www.vim.org
[1] http://vim-adventures.com
no comments | tags: Free Software, vim, vim-adventures | posted in Debian, Free Software, Linux, News, Planet PSL-AM
Jul
16
2009
Éverton Arruda
I’ve been looking for a way to use less with syntax highlight and ended up in a page of Ubuntu Tutorials[0] website with a very good tip: Using VIM as a syntax highlighting pager[1].
All you’ll need is the package vim-full, só, in Debian-like systems, you’ll need to execute:
1
| # aptitude install vim-full |
Then, you’ll have to execute:
1
| $ vim -u /usr/share/vim/vim72/macros/less.vim <FILE> |
And you have it working!
NOTE: Depending on the version of your VIM, the path to less.vim might be different.
You can make this command simpler by creating an alias and adding it to your .bashrc file:
1
| $ echo "alias vless=\"vim -u /usr/share/vim/vim72/macros/less.vim\"" >> ~/.bashrc |
Now the system will need to re-read your .bashrc file, so the changes may be applied:
And after this you can test vless:
[0] http://ubuntu-tutorials.com
[1] http://ubuntu-tutorials.com/2008/07/14/use-vim-as-a-syntax-highlighting-pager/
:wq
no comments | tags: code highlight, Free Software, HowTo, Linux, vim, vless | posted in HowTo, Linux, Planet INdT