Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under vim...

v0n says...

Voici quelques options pour contourner cet affreux beep système qui nous agace lors des complétions ou erreurs en console.

1) Afficher les complétions possibles plutôt que biper

Cette option diminue fortement les beep système en ne sonnant que sur de vraies erreurs (comme un mauvais nom de fichier tapé) et permet en plus de n'appuyer qu'une seule fois sur <TAB> pour les auto-complétions.
Éditez votre fichier ~/.inputrc (créez-le s'il n'existe pas) et ajouter l'option suivante :

# Show all if ambigious
set show-all-if-ambiguous on

2) Supprimer tout beep système

Si ça vous convient toujours pas, vous pouvez bourriner en supprimer tout beep de la console avec l'option (toujours dans votre fichier ~/.inputrc) :

# do not bell on tab-completion
set bell-style none

3) Supprimer l'affreux beep système sous Vim

Pour les utilisateurs de Vim, ça devient vite agaçant le beep erreur...
Pour remédier à ça, éditez votre fichier ~/.vimrc et ajoutez-y l'option :

set visualbell

Ceci remplacera le beep par un clignotement de la console.

3 bis) Empecher Vim de clignoter sur une erreur

Si vous trouvez ce clignotement moisi (il y a de forte chance) vous pouvez le désactiver en rajoutant (toujours dans votre fichier ~/.vimrc) :
set t_vb=

4) Faire clignoter une fenêtre sur une erreur sous Ubuntu

Une option sympa que j'ai rajouté sous Ubuntu qui permet d'ajouter un effet visuel (sympa cette fois) sur une fenêtre lors d'une erreur :
Système / préférences / Son, onglet Son. À "Alerte visuelle" choisir "Faire clignoter la fenêtre".

Voilà de quoi rendre plus agréable l'utilisation de la console.
Personnellement, j'utilise tout !

Filed under: Linux, Ubuntu, Vim

plugawy says...

Use this little thingie:

(License: you can use this script only for GOOD, never for evil. If
you really must - contact me, we can talk about the price)

Filed under: productivity, programming, vim

hdknr says...

hdknr@debian:~$ sudo update-alternatives --config editor

`editor' を提供する 3 個の alternatives があります。

選択肢 alternative
-----------------------------------------------
1 /bin/ed
*+ 2 /bin/nano
3 /usr/bin/vim.tiny

デフォルト[*] のままにするには Enter、さもなければ選択肢の番号のキーを押
してください: 3
'editor' を提供するために '/usr/bin/vim.tiny' を使います。

Filed under: Debina, Vim

abhi says...

I like writing in Vim! It is one of those things that I am so used to
that every other text editor feels unnatural and going against the
grain. So I thought I'd write a small plugin to post to Posterous. Add
the following code to your .vimrc. Also make sure you have python
enabled in vim as well as have markdown2 for python installed.

The following need to be changed: blog_email, blog_password, and
site_id. site_id can be grabbed by running the following on the
terminal:

 
curl -u my@email.com:mYpA$$W0RD http://posterous.com/api/getsites 

Substitute the email and password. You will get a list of your blogs
so choose the id of the blog you want to post to.

The format of the text should be as follows: the first line is the
title and the proceeding lines are the body:

 
This is the title of the post 
 
This is the body of the post. 

This code is pretty straightforward and sparse because I am using this
to post code snippets to a private blog. Check out the Posterous API to add more
options and whatnot. Also take this as a start and expand upon it.

Filed under: code, plugin, posterous, vim

hdknr says...

vi・vimビジュアルモード

他Windows用エディタの[Shift]を押しながら文字を選択するように 文字単位で選択したい場合は、ビジュアルモードを使用します。 ビジュアルモードで文字を選択したすれば、削除コマンドや ヤンクコマンド等がより便利につかえることになります。 ノーマルモードからビジュアルモードに移るコマンドを紹介します。

キー動作
vビジュアルモードになる。文字列選択の開始、終了。
V行単位で選択のビジュアルモードになる。文字列の選択開始、終了。
Ctrl + v矩形選択(ボックス選択)のビジュアルモードになる。文字列の選択開始、終了。

ビジュアルモードにより、文字列を選択し選択範囲に、削除やコピー(ヤンク)等の命令を実行することが出来ます。 下記に例を示します。

キー動作
dビジュアルモードで範囲選択後、実行で、選択範囲を削除する。
cビジュアルモードで範囲選択後、実行で、選択範囲を削除して、インサートモードになる。
yビジュアルモードで範囲選択後、実行で、選択範囲をコピー(ヤンク)する。

Filed under: Vim

hdknr says...

GitHubが提供するコードスニペットサービス(という言い方で良いのかな?)、「Gist」をvimから扱えるvimscript「Gist.vim」を書いた。
内部はcurlコマンドを使っており
  • 一覧
  • 閲覧
  • ポスト
  • プライベートポスト

Filed under: gist, gist.vim, vim

Derek Wyatt uploaded a series of screencasts about vim. A must-watch for all vim fans and wannabes.

Filed under: link, screencast, tutorial, video, vim

plugawy says...

" ~/.vimrc
set smartinden
set autoindent
set noexpandtab
set tabstop=4
set shiftwidth=4    
set softtabstop=4

These settings finally make my vim behave properly.

Filed under: geeky, programming, vim

plugawy says...

Filed under: geeky, photo, vim

plugawy says...

Filed under: geeky, mac, programming, technology, vim