vimvimの拡張子によるfiletypeの自動判定を追加する場合、今までは適当な場所にaoutcommandを定義していたけど、ちゃんと用意されている正しい方法を調べてみました。filetype on が実行されると、$VIMRUNTIME/filetype.vim が読み込まれる。(:h filetype)filetype.vimでは、ユーザのために以下を実行している。 runtime! ftdetect/*.vim そのため、filetypeを設定する正しいと思われる方法は、以下のようでした。filetypeの設定方法windowsの場合は、$HOME/vimfiles/ftdetect/ft.vim。unixの場合は、$HOME/.vim/ftdetect/ft.vim を用意する。拡張子が、vmならファイル名は何でもいい。ft.vimにfiletypeの決定のためのautocom
macbookにgitの環境を設定するところから。ただしgit自体はmacportsでインストールしている ユーザ設定 $ git config user.name tenkoma error: could not lock config file .git/configうえ。とりあえず、ディレクトリつくってみま。 $ mkdir .git $ git config user.name tenkoma $ git config user.email hogehoge@tenkoma.net $ git config core.editor vim $ git config core.pager lessうまくいった。 githubに追加しておいたリポジトリをとってくる とってくるのは簡単にできた。 $ mkdir git # リポジトリを入れておくディレクトリ $ git clone gi
今日は以前の「Ubuntuのvimを快適にする」の続きとして、今日は文字コードの自動判別の設定を紹介します。 最近のディストリビューションでは、デフォルトのロケールが UTF-8 になっているので、CJKフォント(China, Japan, Korea……要はアジア系文字のフォント)さえ入っていれば、いちいちロケールを切り替えなくても、日本語でも韓国語でも表示できてしまいます。なので、コマンドの出力などでは、特に意識しなくとも、文字化けすることは殆どありません。 vimも標準で文字コードの自動判別や変換に対応していますので、どのような文字コードで書かれたファイルでもきちんと読み書きできるのですが、自動判別を上手く効かせるためには、多少設定してやる必要があります。 .vimrc の設定 私が使っている自動判別の設定は以下の通りです。~/.vimrc ファイルの末尾に追加してみてください。 :
VimClojure — a filetype plugin for Vim Description VimClojure consists of a set of plugin for Vim to enhance the editing of Clojure files. It provides syntax highlighting and indenting. It was merged with the former Gorilla project and now provides also interactive features like… omni completion macro expansion code evaluation docstring lookup javadoc lookup Here a screenshot of omni completion in
This package contains a filetype, a syntax and an indent plugin for the Clojure (http://clojure.org) programming language. Since version 2.0, it also contains the interactive part formerly known as "Gorilla". This includes: * docstring lookup * javadoc lookup * repl in a vim buffer * omni completion
Note Vim 8.1 has been released. Many people are happily using Vim without any problems. Nevertheless, the usual disclaimers apply: We take no responsibility for any trouble that is caused by Vim. For known problems type ":help todo" in Vim. If you find a problem, please report it on the vim-dev maillist. Or send it to bugs AT vim DOT org. Vim and ICCF Holland supporters: Collectiveray.com is happy
VimwikiはVimスクリプトで作られた個人用Wikiシステムです。 他のシステムや環境に依存せず、Vimエディタ上で単独動作します。 作成し記録したWikiのページからHTML形式のドキュメントを生成したり、TODO項目を管理する、 といった機能もあります。 (Windows, Mac) 概要 Vimwiki : Personal Wiki for Vim http://www.vim.org/scripts/script.php?script_id=2226 VimwikiはVimスクリプトで作られた個人用Wikiシステムです。 他のシステムや環境に依存せず、Vimエディタ上で単独動作します。 作成し記録したWikiのページからHTML形式のドキュメントを生成したり、TODO項目を管理する、 といった機能もあります。 プラグインのインストール Vimwikiプラグイン はVimbal
*textobj-user* is a Vim plugin to SUPPORT writing user-defined text objects, especially, simple text objects which can be defined by regular expression. Note that this plugin only provides functions to support writing user-defined text objects, and this plugin does not provide any useful text objects. That is your work. Requirements: - Vim 7.0 or later Latest version: http://github.com/kana/vim-t
これまでvimスクリプトをインストールするには、vim onlineでダウンロードして、書いてあるインストール手順に従って、時にはそのまま、時にはzipを解凍して.vim(windowsならvimfiles)に自前でコピーするのが一般的でした。おそらく自動化されている方もいるかもしれませんが、特有のスクリプト専用の更新ツールくらいかと思います。 Perlを知っている方ならばCPAN、rubyを知っている方ならばgemにあたる物がvimには無かったんです。 配布物が統一されていない為、無理だろうな...とも思ってました。 が、そこに登場したのがVimana(Vim script manager)です。 Vimana(3) User Contributed Perl Documentation Vimana(3) NAME Vimana - Vim
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く