LoginSignup
8
9

More than 5 years have passed since last update.

ハイフン区切りのワードを選択しやすくする

Last updated at Posted at 2012-02-04
.vim/ftplugin/css.vim
" * での検索や text-object 等での選択時に - で切らない
setlocal iskeyword& iskeyword+=-

セレクタの命名規則にはハイフン区切り、アンダースコア区切り、キャメルケース等ありますが
デフォルトの設定ではハイフン区切りのワードを選択しづらいため、命名規則にハイフン区切りを採用する場合には
iskeyword にハイフンを追加すれば色々と捗る。

8
9
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
9