ナビゲーション
FrontPage
FreeBSD
Linux
Citrix XenServer
VMware ESXi
Unixコマンド
MySQL
PostgreSQL
Windows
CMS/CRM
クラウド
用語
PHPスクリプト
Bashシェルスクリプト
Rubyスクリプト
開発日記
検索
ツールボックス
新しいページの作成
バックアップの表示
外部のリンク元
最近更新したページ
全ページ
ヘルプ
凍結
アップロード
ページ名の変更
最新の40件
2016-08-17
Linux/NagiosQL
Linux/CentOSチューニング
2016-02-23
Linux/ソフトウェアRAID復旧手順
2016-02-18
FreeBSD/DHCP
FreeBSD/squid
2016-02-15
Unixコマンド/file
2016-02-05
FreeBSD/DynaBook
FreeBSD/Linux compatibility
2016-01-21
PHPスクリプト/PEAR DBインストールできない
PHPスクリプト/PEAR DB
2016-01-20
PHP/フレームワーク/Zend Framework
PHP/フレームワーク
FreeBSD/Postfix+amavisd+clamav
2016-01-15
FreeBSD/sl
2015-12-04
Unixコマンド/dig
Unixコマンド/nslookup
Unixコマンド/traceroute
Linux/rsync
FreeBSD/rsync
Unixコマンド/vipw
2015-11-25
Linux/Postfix+MySQL+Postfix AdminによるバーチャルSMTPサーバの構築
Linux/Postfix + postgrey
2015-11-24
Linux/Postfix + amavisd + clamav
2015-05-25
Unixコマンド/ifconfig
2015-05-23
Unixコマンド/netstat
Unixコマンド/route
Unixコマンド/lsof
Unixコマンド/disown
Unixコマンド/time
Unixコマンド/crontab
2015-05-22
Unixコマンド/nohup
Unixコマンド/fgとbg
Unixコマンド/nice
Unixコマンド/kill
Unixコマンド/jobs
Unixコマンド/restor
Unixコマンド/dump
Unixコマンド/uncompress
Unixコマンド/compress
Unixコマンド/zcat
total:
3517
today:
1
yesterday:
0
now:
1
本文
ノート
?
編集
差分
一覧
FreeBSD/vim の編集
*vim [#u86f3851] [[dokuwiki.fl8.jp転載済み>http://dokuwiki.fl8.jp/doku.php/02_freebsd/99_%E3%81%9D%E3%81%AE%E4%BB%96/vim]] vimは6.x系以上からUTF-8を6.x系以上でUTF-8ファイルを利用できます。 #contents **バージョン [#rff9b22b] -FreeBSD 6.2-RELEASE -vim version 7.1.116 **インストール [#p1beec11] # cd /usr/ports/editors/vim # make install NO_GUI=yes **ソースからインストール [#tae15c41] &color(Blue){※/home/matsukaze/localにインストールする場合}; $ wget ftp://ftp.jp.vim.org/pub/vim/unix/vim-7.1.tar.bz2 $ tar jxvf vim-7.1.tar.bz2 $ cd vim71 $ ./configure --prefix=/home/matsukaze/local --without-x $ make $ make install **.vimrc [#x783f28b] set nobackup if v:lang =~ "^ko" set fileencodings=euc-kr set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-* elseif v:lang =~ "^ja_JP" set fileencodings=euc-jp set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-* elseif v:lang =~ "^zh_TW" set fileencodings=big5 set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0 elseif v:lang =~ "^zh_CN" set fileencodings=gb2312 set guifontset=*-r-* endif if v:lang =~ "utf8$" || v:lang =~ "UTF-8$" set fileencodings=utf-8,latin1 endif set nocompatible " Use Vim defaults (much better!) set bs=2 " allow backspacing over everything in insert mode "set ai " always set autoindenting on "set backup " keep a backup file set viminfo='20,\"50 " read/write a .viminfo file, don't store more " than 50 lines of registers set history=50 " keep 50 lines of command line history set ruler " show the cursor position all the time " Only do this part when compiled with support for autocommands if has("autocmd") " In text files, always limit the width of text to 78 characters autocmd BufRead *.txt set tw=78 " When editing a file, always jump to the last cursor position autocmd BufReadPost * \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe "normal g'\"" | \ endif endif " Don't use Ex mode, use Q for formatting map Q gq " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. if &t_Co > 2 || has("gui_running") syntax on set hlsearch endif if &term=="xterm" set t_Co=8 set t_Sb=^[4%dm set t_Sf=^[3%dm endif " some extra commands for HTML editing nmap ,mh wbgueyei<<ESC>ea></<ESC>pa><ESC>bba nmap ,h1 _i<h1><ESC>A</h1><ESC> nmap ,h2 _i<h2><ESC>A</h2><ESC> nmap ,h3 _i<h3><ESC>A</h3><ESC> nmap ,h4 _i<h4><ESC>A</h4><ESC> nmap ,h5 _i<h5><ESC>A</h5><ESC> nmap ,h6 _i<h6><ESC>A</h6><ESC> nmap ,hb wbi<b><ESC>ea</b><ESC>bb nmap ,he wbi<em><ESC>ea</em><ESC>bb nmap ,hi wbi<i><ESC>ea</i><ESC>bb nmap ,hu wbi<u><ESC>ea</i><ESC>bb nmap ,hs wbi<strong><ESC>ea</strong><ESC>bb nmap ,ht wbi<tt><ESC>ea</tt><ESC>bb nmap ,hx wbF<df>f<df> **使用方法 [#ebc810bb] [[Unixコマンド/vi]]
タイムスタンプを変更しない
*vim [#u86f3851] [[dokuwiki.fl8.jp転載済み>http://dokuwiki.fl8.jp/doku.php/02_freebsd/99_%E3%81%9D%E3%81%AE%E4%BB%96/vim]] vimは6.x系以上からUTF-8を6.x系以上でUTF-8ファイルを利用できます。 #contents **バージョン [#rff9b22b] -FreeBSD 6.2-RELEASE -vim version 7.1.116 **インストール [#p1beec11] # cd /usr/ports/editors/vim # make install NO_GUI=yes **ソースからインストール [#tae15c41] &color(Blue){※/home/matsukaze/localにインストールする場合}; $ wget ftp://ftp.jp.vim.org/pub/vim/unix/vim-7.1.tar.bz2 $ tar jxvf vim-7.1.tar.bz2 $ cd vim71 $ ./configure --prefix=/home/matsukaze/local --without-x $ make $ make install **.vimrc [#x783f28b] set nobackup if v:lang =~ "^ko" set fileencodings=euc-kr set guifontset=-*-*-medium-r-normal--16-*-*-*-*-*-*-* elseif v:lang =~ "^ja_JP" set fileencodings=euc-jp set guifontset=-misc-fixed-medium-r-normal--14-*-*-*-*-*-*-* elseif v:lang =~ "^zh_TW" set fileencodings=big5 set guifontset=-sony-fixed-medium-r-normal--16-150-75-75-c-80-iso8859-1,-taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0 elseif v:lang =~ "^zh_CN" set fileencodings=gb2312 set guifontset=*-r-* endif if v:lang =~ "utf8$" || v:lang =~ "UTF-8$" set fileencodings=utf-8,latin1 endif set nocompatible " Use Vim defaults (much better!) set bs=2 " allow backspacing over everything in insert mode "set ai " always set autoindenting on "set backup " keep a backup file set viminfo='20,\"50 " read/write a .viminfo file, don't store more " than 50 lines of registers set history=50 " keep 50 lines of command line history set ruler " show the cursor position all the time " Only do this part when compiled with support for autocommands if has("autocmd") " In text files, always limit the width of text to 78 characters autocmd BufRead *.txt set tw=78 " When editing a file, always jump to the last cursor position autocmd BufReadPost * \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe "normal g'\"" | \ endif endif " Don't use Ex mode, use Q for formatting map Q gq " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. if &t_Co > 2 || has("gui_running") syntax on set hlsearch endif if &term=="xterm" set t_Co=8 set t_Sb=^[4%dm set t_Sf=^[3%dm endif " some extra commands for HTML editing nmap ,mh wbgueyei<<ESC>ea></<ESC>pa><ESC>bba nmap ,h1 _i<h1><ESC>A</h1><ESC> nmap ,h2 _i<h2><ESC>A</h2><ESC> nmap ,h3 _i<h3><ESC>A</h3><ESC> nmap ,h4 _i<h4><ESC>A</h4><ESC> nmap ,h5 _i<h5><ESC>A</h5><ESC> nmap ,h6 _i<h6><ESC>A</h6><ESC> nmap ,hb wbi<b><ESC>ea</b><ESC>bb nmap ,he wbi<em><ESC>ea</em><ESC>bb nmap ,hi wbi<i><ESC>ea</i><ESC>bb nmap ,hu wbi<u><ESC>ea</i><ESC>bb nmap ,hs wbi<strong><ESC>ea</strong><ESC>bb nmap ,ht wbi<tt><ESC>ea</tt><ESC>bb nmap ,hx wbF<df>f<df> **使用方法 [#ebc810bb] [[Unixコマンド/vi]]
テキスト整形のルールを表示する
ログインまたはアカウント作成